summaryrefslogtreecommitdiffstats
path: root/src/strip.c
diff options
context:
space:
mode:
authorMark Wielaard <[email protected]>2016-08-25 20:43:42 +0200
committerMark Wielaard <[email protected]>2016-08-25 20:52:01 +0200
commit324cc566974470090ed4a86f38afafe231501320 (patch)
tree09b8ad2dc7ae8c3314ef60487cc067396a9619cb /src/strip.c
parentbe7e73f5aa879e7fb1b2a398e67f4bef644cd4ef (diff)
strip: Use ELF_CHF_FORCE to recompress any sections that were uncompressed.
Older gcc might create small .debug_pubtype. If such a section is compressed then strip should use ELF_CHF_FORCE to return it to compressed state after it is done with the section. Found by the run-strip-reloc.sh testcase on rhel6. Signed-off-by: Mark Wielaard <[email protected]>
Diffstat (limited to 'src/strip.c')
-rw-r--r--src/strip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/strip.c b/src/strip.c
index f56554f7..da093e97 100644
--- a/src/strip.c
+++ b/src/strip.c
@@ -1986,7 +1986,7 @@ handle_elf (int fd, Elf *elf, const char *prefix, const char *fname,
gelf_update_shdr (scn, shdr);
if (tcompress_type != 0)
- if (elf_compress (tscn, tcompress_type, 0) != 1)
+ if (elf_compress (tscn, tcompress_type, ELF_CHF_FORCE) != 1)
INTERNAL_ERROR (fname);
}
}