From: H.J. Lu Date: Fri, 1 Sep 2017 13:14:39 +0000 (-0700) Subject: Import latest fixes to libiberty from GCC X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=376dc015f275575e0aa7be9c46476db5506ff836;p=binutils-gdb.git Import latest fixes to libiberty from GCC Fix warning for simple-object-elf.c. 2017-09-01 Martin Liska * simple-object-elf.c (simple_object_elf_copy_lto_debug_sections): Remove duplicite declaration. --- diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog index 191a3116bb7..8c469710f8e 100644 --- a/libiberty/ChangeLog +++ b/libiberty/ChangeLog @@ -1,3 +1,8 @@ +2017-09-01 Martin Liska + + * simple-object-elf.c (simple_object_elf_copy_lto_debug_sections): + Remove duplicite declaration. + 2017-08-31 Richard Biener PR lto/81968 diff --git a/libiberty/simple-object-elf.c b/libiberty/simple-object-elf.c index 9799e725465..6774eb273c9 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;