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 <mjw@redhat.com>
+2016-08-25 Mark Wielaard <mjw@redhat.com>
+
+ * strip.c (handle_elf): Recompress with ELF_CHF_FORCE.
+
2016-08-06 Mark Wielaard <mjw@redhat.com>
* strip.c (handle_elf): Uncompress and recompress relocation target
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);
}
}