aboutsummaryrefslogtreecommitdiff
path: root/elfcpp
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
parent31b94bbb7b178be4e688bd250a111b0848af5b76 (diff)
downloadfsf-binutils-gdb-91fb4b1a83cb06e3e6d7b90075f4d8fda0a709d4.zip
fsf-binutils-gdb-91fb4b1a83cb06e3e6d7b90075f4d8fda0a709d4.tar.gz
fsf-binutils-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')
-rw-r--r--elfcpp/ChangeLog9
-rw-r--r--elfcpp/elfcpp.h12
2 files changed, 21 insertions, 0 deletions
diff --git a/elfcpp/ChangeLog b/elfcpp/ChangeLog
index 5cc38cb..75681b1 100644
--- a/elfcpp/ChangeLog
+++ b/elfcpp/ChangeLog
@@ -1,3 +1,12 @@
+2015-04-08 H.J. Lu <hongjiu.lu@intel.com>
+
+ * elfcpp.h (SHF): Add SHF_COMPRESSED.
+ (ELFCOMPRESS_ZLIB): New.
+ (ELFCOMPRESS_LOOS): Likewise.
+ (ELFCOMPRESS_HIOS): Likewise.
+ (ELFCOMPRESS_LOPROC): Likewise.
+ (ELFCOMPRESS_HIPROC): Likewise.
+
2015-04-07 HC Yen <hc.yen@mediatek.com>
* arm.h: Add TAG_CPU_ARCH_V8 in Tag_CPU_arch EABI attribute.
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.