This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[gold][PATCH] Add SHF_COMPRESSED and ELFCOMPRESS_XXX to elfcpp.h
- From: "H.J. Lu" <hongjiu dot lu at intel dot com>
- To: binutils at sourceware dot org, Cary Coutant <ccoutant at google dot com>
- Date: Wed, 8 Apr 2015 08:02:34 -0700
- Subject: [gold][PATCH] Add SHF_COMPRESSED and ELFCOMPRESS_XXX to elfcpp.h
- Authentication-results: sourceware.org; auth=none
- Reply-to: "H.J. Lu" <hjl dot tools at gmail dot com>
This patch adds SHF_COMPRESSED and ELFCOMPRESS_XXX to elfcpp.h. OK for
master?
H.J.
---
* elfcpp.h (SHF): Add SHF_COMPRESSED.
(ELFCOMPRESS_ZLIB): New.
(ELFCOMPRESS_LOOS): Likewise.
(ELFCOMPRESS_HIOS): Likewise.
(ELFCOMPRESS_LOPROC): Likewise.
(ELFCOMPRESS_HIPROC): Likewise.
---
elfcpp/elfcpp.h | 12 ++++++++++++
1 file changed, 12 insertions(+)
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.
--
1.9.3