summaryrefslogtreecommitdiff
path: root/bfd/elf32-i386.c
diff options
context:
space:
mode:
authorH.J. Lu <hjl@lucon.org>2009-06-20 00:43:21 +0000
committerH.J. Lu <hjl@lucon.org>2009-06-20 00:43:21 +0000
commitb2f820dea835be92813e3baba06eababd9c5e137 (patch)
treeff6d09f6bdfc35dd41af4730cb0b78a14cdd2a7a /bfd/elf32-i386.c
parentff464c6ec2390aa66a64635eab760ecae4118334 (diff)
downloadgdb-b2f820dea835be92813e3baba06eababd9c5e137.tar.gz
2009-06-19 H.J. Lu <hongjiu.lu@intel.com>
* elf32-i386.c (elf_i386_check_relocs): Properly check local symbol on error. * elf64-x86-64.c (elf64_x86_64_check_relocs): Likewise.
Diffstat (limited to 'bfd/elf32-i386.c')
-rw-r--r--bfd/elf32-i386.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/elf32-i386.c b/bfd/elf32-i386.c
index bac80e327eb..5ce7b2740c2 100644
--- a/bfd/elf32-i386.c
+++ b/bfd/elf32-i386.c
@@ -1538,7 +1538,7 @@ elf_i386_check_relocs (bfd *abfd,
tls_type |= old_tls_type;
else
{
- if (h->root.root.string)
+ if (h)
name = h->root.root.string;
else
name = bfd_elf_sym_name (abfd, symtab_hdr, isym,