This is the mail archive of the binutils-cvs@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[binutils-gdb] Add SHF_COMPRESSED and ELFCOMPRESS_XXX to elfcpp.h


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=91fb4b1a83cb06e3e6d7b90075f4d8fda0a709d4

commit 91fb4b1a83cb06e3e6d7b90075f4d8fda0a709d4
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Wed Apr 8 10:27:55 2015 -0700

    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.

Diff:
---
 elfcpp/ChangeLog |  9 +++++++++
 elfcpp/elfcpp.h  | 12 ++++++++++++
 2 files changed, 21 insertions(+)

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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]