From eeaf533e61c0bdf736992f32b7ee7d25a4ba458b Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Sat, 11 Sep 1999 20:14:57 +0000 Subject: * elfcode.h (write_relocs): Handle an absolute symbol in REL relocs as we do for RELA relocs. --- bfd/elfcode.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'bfd/elfcode.h') 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; -- cgit v1.1