From: Ian Lance Taylor Date: Sat, 11 Sep 1999 20:14:57 +0000 (+0000) Subject: * elfcode.h (write_relocs): Handle an absolute symbol in REL X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=eeaf533e61c0bdf736992f32b7ee7d25a4ba458b;p=binutils-gdb.git * elfcode.h (write_relocs): Handle an absolute symbol in REL relocs as we do for RELA relocs. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 4028e7c5026..e358175656e 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +1999-09-11 Ian Lance Taylor + + * elfcode.h (write_relocs): Handle an absolute symbol in REL + relocs as we do for RELA relocs. + 1999-09-11 Donn Terry * cofflink.c (coff_link_add_symbols): Don't warn about symbol type diff --git a/bfd/elfcode.h b/bfd/elfcode.h index adbafd84ff7..d98c07a5b22 100644 --- a/bfd/elfcode.h +++ b/bfd/elfcode.h @@ -857,6 +857,8 @@ write_relocs (abfd, sec, data) if (sym == last_sym) n = last_sym_idx; + else if (bfd_is_abs_section (sym->section) && sym->value == 0) + n = STN_UNDEF; else { last_sym = sym;