diff options
author | Ian Lance Taylor <ian@airs.com> | 1999-09-11 20:14:57 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1999-09-11 20:14:57 +0000 |
commit | eeaf533e61c0bdf736992f32b7ee7d25a4ba458b (patch) | |
tree | fec592e6c9570767cbc34f1dc707991286373b1a /bfd/elfcode.h | |
parent | 5d3aaa749f12c06cb149e5ca20805e898a66e5e7 (diff) | |
download | gdb-eeaf533e61c0bdf736992f32b7ee7d25a4ba458b.zip gdb-eeaf533e61c0bdf736992f32b7ee7d25a4ba458b.tar.gz gdb-eeaf533e61c0bdf736992f32b7ee7d25a4ba458b.tar.bz2 |
* elfcode.h (write_relocs): Handle an absolute symbol in REL
relocs as we do for RELA relocs.
Diffstat (limited to 'bfd/elfcode.h')
-rw-r--r-- | bfd/elfcode.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bfd/elfcode.h b/bfd/elfcode.h index adbafd8..d98c07a 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; |