diff options
author | Thomas Schwinge <tschwinge@gnu.org> | 2010-09-24 11:59:18 +0000 |
---|---|---|
committer | Thomas Schwinge <tschwinge@gnu.org> | 2010-09-24 11:59:18 +0000 |
commit | 1e26123001cd0ca128cb19fdfdd3ad179ade6401 (patch) | |
tree | d8394105ebe2a747dedf25e2f9e90f3018a8c223 | |
parent | 7beee5b96570f92d98e68d1d2d4423364a621a28 (diff) | |
download | binutils-redhat-1e26123001cd0ca128cb19fdfdd3ad179ade6401.tar.gz |
2010-09-24 Thomas Schwinge <thomas@codesourcery.com>
* elflink.c (bfd_elf_reloc_symbol_deleted_p): Compare the symbol index
to STN_UNDEF, not SHN_UNDEF.
-rw-r--r-- | bfd/ChangeLog | 5 | ||||
-rw-r--r-- | bfd/elflink.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 4c8d252002..22f9a2049f 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2010-09-24 Thomas Schwinge <thomas@codesourcery.com> + + * elflink.c (bfd_elf_reloc_symbol_deleted_p): Compare the symbol index + to STN_UNDEF, not SHN_UNDEF. + 2010-09-23 Bernd Schmidt <bernds@codesourcery.com> * elf32-tic6x.c (elf32_tic6x_fake_sections): New function. diff --git a/bfd/elflink.c b/bfd/elflink.c index 4351e28cfe..bdd69660a5 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 |