aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf.c
diff options
context:
space:
mode:
authorMaks Naumov <maksqwe1@ukr.net>2014-07-11 23:55:30 +0930
committerAlan Modra <amodra@gmail.com>2014-07-12 00:02:06 +0930
commit17ca87fc69f554aecc4a7f8d6d354a6ad9bec7be (patch)
tree5309d0c2b84057daec30b1241421d2cfe252f7d6 /bfd/elf.c
parent808f7ab1fc88da40007c17a20e49928359f27491 (diff)
downloadgdb-17ca87fc69f554aecc4a7f8d6d354a6ad9bec7be.zip
gdb-17ca87fc69f554aecc4a7f8d6d354a6ad9bec7be.tar.gz
gdb-17ca87fc69f554aecc4a7f8d6d354a6ad9bec7be.tar.bz2
Fix typo in _bfd_elf_strtab_add
PR 17141 * elf.c (_bfd_elf_strtab_add): Check strtab name for failure.
Diffstat (limited to 'bfd/elf.c')
-rw-r--r--bfd/elf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/elf.c b/bfd/elf.c
index 3f377d1..9dc6b6d 100644
--- a/bfd/elf.c
+++ b/bfd/elf.c
@@ -5298,7 +5298,7 @@ prep_headers (bfd *abfd)
elf_tdata (abfd)->shstrtab_hdr.sh_name =
(unsigned int) _bfd_elf_strtab_add (shstrtab, ".shstrtab", FALSE);
if (elf_tdata (abfd)->symtab_hdr.sh_name == (unsigned int) -1
- || elf_tdata (abfd)->symtab_hdr.sh_name == (unsigned int) -1
+ || elf_tdata (abfd)->strtab_hdr.sh_name == (unsigned int) -1
|| elf_tdata (abfd)->shstrtab_hdr.sh_name == (unsigned int) -1)
return FALSE;