diff options
Diffstat (limited to 'src/strip.c')
-rw-r--r-- | src/strip.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/strip.c b/src/strip.c index 7858e8bf..1e61911a 100644 --- a/src/strip.c +++ b/src/strip.c @@ -843,7 +843,7 @@ handle_elf (int fd, Elf *elf, const char *prefix, const char *fname, if (discard_section) debugshdr.sh_type = SHT_NOBITS; - if (unlikely (gelf_update_shdr (scn, &debugshdr)) == 0) + if (unlikely (gelf_update_shdr (scn, &debugshdr) == 0)) /* There cannot be any overflows. */ INTERNAL_ERROR (fname); @@ -881,7 +881,7 @@ handle_elf (int fd, Elf *elf, const char *prefix, const char *fname, debugehdr->e_flags = ehdr->e_flags; debugehdr->e_shstrndx = ehdr->e_shstrndx; - if (unlikely (gelf_update_ehdr (debugelf, debugehdr)) == 0) + if (unlikely (gelf_update_ehdr (debugelf, debugehdr) == 0)) { error (0, 0, gettext ("%s: error while creating ELF header: %s"), debug_fname, elf_errmsg (-1)); @@ -1547,7 +1547,7 @@ handle_elf (int fd, Elf *elf, const char *prefix, const char *fname, }; /* Finally write the file. */ - if (unlikely (elf_update (debugelf, ELF_C_WRITE)) == -1) + if (unlikely (elf_update (debugelf, ELF_C_WRITE) == -1)) { error (0, 0, gettext ("while writing '%s': %s"), debug_fname, elf_errmsg (-1)); @@ -1772,3 +1772,6 @@ cannot set access and modification date of '%s'"), fname); return result; } + + +#include "debugpred.h" |