diff options
author | Kazu Hirata <kazu@codesourcery.com> | 2000-11-06 22:56:13 +0000 |
---|---|---|
committer | Kazu Hirata <kazu@codesourcery.com> | 2000-11-06 22:56:13 +0000 |
commit | 941f3cf6ddc31933f5b8f919a7922cfa8befb2a5 (patch) | |
tree | 5c964ded5cc6fc2875b3b8d4bd2eb1b8dd84e154 /bfd/aout-ns32k.c | |
parent | 0e5bed8897b0b4e6b3bcf34297644e2af656dd12 (diff) | |
download | gdb-941f3cf6ddc31933f5b8f919a7922cfa8befb2a5.tar.gz |
2000-11-06 Kazu Hirata <kazu@hxi.com>
* aout-adobe.c: Fix formatting.
* aout-arm.c: Likewise.
* aout-cris.c: Likewise.
* aout-encap.c: Likewise.
* aout-ns32k.c: Likewise.
* aout-target.h: Likewise.
* aout-tic30.c: Likewise.
Diffstat (limited to 'bfd/aout-ns32k.c')
-rw-r--r-- | bfd/aout-ns32k.c | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/bfd/aout-ns32k.c b/bfd/aout-ns32k.c index 05ac84e86bf..a0b7d7047b0 100644 --- a/bfd/aout-ns32k.c +++ b/bfd/aout-ns32k.c @@ -89,7 +89,7 @@ MY_swap_std_reloc_out PARAMS ((bfd *abfd, arelent *g, * */ -reloc_howto_type MY(howto_table)[] = +reloc_howto_type MY(howto_table)[] = { /* ns32k immediate operands */ HOWTO (BFD_RELOC_NS32K_IMM_8, 0, 0, 8, false, 0, true, @@ -146,7 +146,6 @@ reloc_howto_type MY(howto_table)[] = "PCREL_32", true, 0xffffffff,0xffffffff, false), }; - #define CTOR_TABLE_RELOC_HOWTO(BFD) (MY(howto_table) + 14) #define RELOC_STD_BITS_NS32K_TYPE_BIG 0x06 @@ -259,7 +258,6 @@ MY(bfd_reloc_type_lookup)(abfd,code) #undef ENTRY } - static void MY_swap_std_reloc_in (abfd, bytes, cache_ptr, symbols, symcount) bfd *abfd; @@ -295,10 +293,10 @@ MY_swap_std_reloc_out (abfd, g, natptr) asection *output_section = sym->section->output_section; r_addend = g->addend + (*(g->sym_ptr_ptr))->section->output_section->vma; - + /* name was clobbered by aout_write_syms to be symbol index */ - /* If this relocation is relative to a symbol then set the + /* If this relocation is relative to a symbol then set the r_index to the symbols index, and the r_extern bit. Absolute symbols can come in in two ways, either as an offset @@ -307,7 +305,7 @@ MY_swap_std_reloc_out (abfd, g, natptr) if (bfd_is_com_section (output_section) || output_section == &bfd_abs_section - || output_section == &bfd_und_section) + || output_section == &bfd_und_section) { if (bfd_abs_section.symbol == sym) { @@ -316,21 +314,21 @@ MY_swap_std_reloc_out (abfd, g, natptr) r_index = 0; r_extern = 0; } - else + else { /* Fill in symbol */ r_extern = 1; #undef KEEPIT #define KEEPIT udata.i r_index = (*(g->sym_ptr_ptr))->KEEPIT; -#undef KEEPIT +#undef KEEPIT } } - else + else { /* Just an ordinary section */ r_extern = 0; - r_index = output_section->target_index; + r_index = output_section->target_index; } MY_put_reloc (abfd, r_extern, r_index, g->address, g->howto, natptr); |