From: Thomas Schwinge Date: Fri, 24 Sep 2010 11:59:19 +0000 (+0000) Subject: 2010-09-24 Thomas Schwinge X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2c2fa401c554831bacec9c920678ddda8ce69519;p=binutils-gdb.git 2010-09-24 Thomas Schwinge * elflink.c (bfd_elf_reloc_symbol_deleted_p): Compare the symbol index to STN_UNDEF, not SHN_UNDEF. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 4c8d252002e..22f9a2049fe 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2010-09-24 Thomas Schwinge + + * elflink.c (bfd_elf_reloc_symbol_deleted_p): Compare the symbol index + to STN_UNDEF, not SHN_UNDEF. + 2010-09-23 Bernd Schmidt * elf32-tic6x.c (elf32_tic6x_fake_sections): New function. diff --git a/bfd/elflink.c b/bfd/elflink.c index 4351e28cfef..bdd69660a59 100644 --- a/bfd/elflink.c +++ b/bfd/elflink.c @@ -12196,7 +12196,7 @@ bfd_elf_reloc_symbol_deleted_p (bfd_vma offset, void *cookie) continue; r_symndx = rcookie->rel->r_info >> rcookie->r_sym_shift; - if (r_symndx == SHN_UNDEF) + if (r_symndx == STN_UNDEF) return TRUE; if (r_symndx >= rcookie->locsymcount