aboutsummaryrefslogtreecommitdiff
path: root/elfcpp/elfcpp.h
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2015-04-08 10:27:55 -0700
committerH.J. Lu <hjl.tools@gmail.com>2015-04-08 10:28:35 -0700
commit91fb4b1a83cb06e3e6d7b90075f4d8fda0a709d4 (patch)
tree880326f7e13be86c66e04f0f9a5bdbf7f528d6c4 /elfcpp/elfcpp.h
parent31b94bbb7b178be4e688bd250a111b0848af5b76 (diff)
downloadgdb-91fb4b1a83cb06e3e6d7b90075f4d8fda0a709d4.zip
gdb-91fb4b1a83cb06e3e6d7b90075f4d8fda0a709d4.tar.gz
gdb-91fb4b1a83cb06e3e6d7b90075f4d8fda0a709d4.tar.bz2
Add SHF_COMPRESSED and ELFCOMPRESS_XXX to elfcpp.h
* elfcpp.h (SHF): Add SHF_COMPRESSED. (ELFCOMPRESS_ZLIB): New. (ELFCOMPRESS_LOOS): Likewise. (ELFCOMPRESS_HIOS): Likewise. (ELFCOMPRESS_LOPROC): Likewise. (ELFCOMPRESS_HIPROC): Likewise.
Diffstat (limited to 'elfcpp/elfcpp.h')
-rw-r--r--elfcpp/elfcpp.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/elfcpp/elfcpp.h b/elfcpp/elfcpp.h
index 327aeb2..f5a3efc 100644
--- a/elfcpp/elfcpp.h
+++ b/elfcpp/elfcpp.h
@@ -429,6 +429,7 @@ enum SHF
SHF_OS_NONCONFORMING = 0x100,
SHF_GROUP = 0x200,
SHF_TLS = 0x400,
+ SHF_COMPRESSED = 0x800,
SHF_MASKOS = 0x0ff00000,
SHF_MASKPROC = 0xf0000000,
@@ -451,6 +452,17 @@ enum SHF
SHF_X86_64_LARGE = 0x10000000
};
+// Values which appear in the first Elf_WXword of the section data
+// of a SHF_COMPRESSED section.
+enum
+{
+ ELFCOMPRESS_ZLIB = 1,
+ ELFCOMPRESS_LOOS = 0x60000000,
+ ELFCOMPRESS_HIOS = 0x6fffffff,
+ ELFCOMPRESS_LOPROC = 0x70000000,
+ ELFCOMPRESS_HIPROC = 0x7fffffff,
+};
+
// Bit flags which appear in the first 32-bit word of the section data
// of a SHT_GROUP section.