From: Ian Lance Taylor Date: Wed, 20 Sep 1995 16:10:18 +0000 (+0000) Subject: * aoutx.h (NAME(aout,swap_ext_reloc_out)): Don't set r_extern for X-Git-Tag: gdb-4_18~10811 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f69e888e4dfa4d47bfc8eefe67ea6ae36455981c;p=thirdparty%2Fbinutils-gdb.git * aoutx.h (NAME(aout,swap_ext_reloc_out)): Don't set r_extern for a reloc against a local symbol, even if it's not a section. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 07f68e3fcdb..9deb0644ced 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +Wed Sep 20 12:03:26 1995 Ian Lance Taylor + + * aoutx.h (NAME(aout,swap_ext_reloc_out)): Don't set r_extern for + a reloc against a local symbol, even if it's not a section. + Tue Sep 19 17:02:26 1995 Ian Lance Taylor * targets.c (bfd_target): Remove unused align_power_min field. diff --git a/bfd/aoutx.h b/bfd/aoutx.h index 2a44a1fb015..e41f7240e4b 100644 --- a/bfd/aoutx.h +++ b/bfd/aoutx.h @@ -2050,7 +2050,11 @@ NAME(aout,swap_ext_reloc_out) (abfd, g, natptr) } else if ((sym->flags & BSF_SECTION_SYM) == 0) { - r_extern = 1; + if (bfd_is_und_section (bfd_get_section (sym)) + || (sym->flags & BSF_GLOBAL) != 0) + r_extern = 1; + else + r_extern = 0; r_index = (*(g->sym_ptr_ptr))->KEEPIT; } else