diff options
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 05ac84e..a0b7d70 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); |