aboutsummaryrefslogtreecommitdiff
path: root/libiberty/simple-object-elf.c
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2017-09-01 06:14:39 -0700
committerH.J. Lu <hjl.tools@gmail.com>2017-09-01 06:14:39 -0700
commit376dc015f275575e0aa7be9c46476db5506ff836 (patch)
tree913c3cd763e451357c5b06d96d019347dd14476b /libiberty/simple-object-elf.c
parente10c9c620c3335731bb0052987affdc40942fd71 (diff)
downloadfsf-binutils-gdb-376dc015f275575e0aa7be9c46476db5506ff836.zip
fsf-binutils-gdb-376dc015f275575e0aa7be9c46476db5506ff836.tar.gz
fsf-binutils-gdb-376dc015f275575e0aa7be9c46476db5506ff836.tar.bz2
Import latest fixes to libiberty from GCC
Fix warning for simple-object-elf.c. 2017-09-01 Martin Liska <mliska@suse.cz> * simple-object-elf.c (simple_object_elf_copy_lto_debug_sections): Remove duplicite declaration.
Diffstat (limited to 'libiberty/simple-object-elf.c')
-rw-r--r--libiberty/simple-object-elf.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/libiberty/simple-object-elf.c b/libiberty/simple-object-elf.c
index 9799e72..6774eb2 100644
--- a/libiberty/simple-object-elf.c
+++ b/libiberty/simple-object-elf.c
@@ -587,11 +587,6 @@ simple_object_elf_find_sections (simple_object_read *sobj,
/* Read the section names. */
- if (eor->shstrndx == 0)
- {
- XDELETEVEC (shdrs);
- return "ELF section header string table missing";
- }
shstrhdr = shdrs + (eor->shstrndx - 1) * shdr_size;
name_size = ELF_FETCH_FIELD (type_functions, ei_class, Shdr,
shstrhdr, sh_size, Elf_Addr);
@@ -1237,7 +1232,6 @@ simple_object_elf_copy_lto_debug_sections (simple_object_read *sobj,
off_t offset;
off_t length;
int ret;
- const char *errmsg;
simple_object_write_section *dest;
off_t flags;
unsigned char *buf;