aboutsummaryrefslogtreecommitdiff
path: root/bfd/elflink.c
diff options
context:
space:
mode:
authorThomas Schwinge <tschwinge@gnu.org>2010-09-24 11:59:19 +0000
committerThomas Schwinge <tschwinge@gnu.org>2010-09-24 11:59:19 +0000
commit2c2fa401c554831bacec9c920678ddda8ce69519 (patch)
tree1d76cc674ead048b61e6b033db0b8703ef55c071 /bfd/elflink.c
parent96a8853a477148534aa29ba97c791f3f23e55452 (diff)
downloadgdb-2c2fa401c554831bacec9c920678ddda8ce69519.zip
gdb-2c2fa401c554831bacec9c920678ddda8ce69519.tar.gz
gdb-2c2fa401c554831bacec9c920678ddda8ce69519.tar.bz2
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.
Diffstat (limited to 'bfd/elflink.c')
-rw-r--r--bfd/elflink.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/elflink.c b/bfd/elflink.c
index 4351e28..bdd6966 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