elf: Ignore SHF_COMPRESSED sections
commit600018ce474b1ecb7ea51f9fa0b005000ccc9101
authorMichael Matz <matz@suse.de>
Sat, 6 May 2017 05:30:44 +0000 (6 07:30 +0200)
committerMichael Matz <matz@suse.de>
Sat, 6 May 2017 05:30:44 +0000 (6 07:30 +0200)
tree9eeb05995e746c1aba6cba8235fd986815757f5e
parentff998900b163e96c52a4fefc71736ed34626ed86
elf: Ignore SHF_COMPRESSED sections

some newer systems have debug sections compressed by default, which
includes those in the crt[1in].o startup files.  These can't simply
be concatenated like all others (which leads to invalid section contents
ultimately making gdb fail) but need special handling.

Instead of that special handling (decompressing, which in turn requires
linking against zlib) let's just ignore such sections, even though that
means to also ignore all other debug sections from that particular input
file.  Our own generated files of course don't have the problem.
elf.h
tccelf.c