aboutsummaryrefslogtreecommitdiff
path: root/elf.h
diff options
context:
space:
mode:
authorMichael Matz <matz@suse.de>2017-05-06 07:30:44 +0200
committerMichael Matz <matz@suse.de>2017-05-06 07:30:44 +0200
commit600018ce474b1ecb7ea51f9fa0b005000ccc9101 (patch)
tree9eeb05995e746c1aba6cba8235fd986815757f5e /elf.h
parentff998900b163e96c52a4fefc71736ed34626ed86 (diff)
downloadtinycc-600018ce474b1ecb7ea51f9fa0b005000ccc9101.tar.gz
tinycc-600018ce474b1ecb7ea51f9fa0b005000ccc9101.tar.bz2
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.
Diffstat (limited to 'elf.h')
-rw-r--r--elf.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/elf.h b/elf.h
index d761747..68f3990 100644
--- a/elf.h
+++ b/elf.h
@@ -376,6 +376,7 @@ typedef struct
required */
#define SHF_GROUP (1 << 9) /* Section is member of a group. */
#define SHF_TLS (1 << 10) /* Section hold thread-local data. */
+#define SHF_COMPRESSED (1 << 11) /* Section with compressed data. */
#define SHF_MASKOS 0x0ff00000 /* OS-specific. */
#define SHF_MASKPROC 0xf0000000 /* Processor-specific */
#define SHF_ORDERED (1 << 30) /* Special ordering requirement