summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2015-03-13 08:14:29 -0700
committerH.J. Lu <hjl.tools@gmail.com>2015-03-26 08:42:58 -0700
commit332f5759ac985415b721a72dab7475824253c0c6 (patch)
treef2f1495c828ff4a16591691675e0d958115e49ce
parent5ca28f792883afb409ae145666fc3662c3a3aed5 (diff)
downloadbinutils-gdb-332f5759ac985415b721a72dab7475824253c0c6.tar.gz
Add ELFOSABI_CLOUDABI and SHF_COMPRESSED
Update from gABI DRAFT - 10 June 2013. * common.h (ELFOSABI_CLOUDABI): New. (SHF_COMPRESSED): Likewise. (ELFCOMPRESS_ZLIB): Likewise. (ELFCOMPRESS_LOOS): Likewise. (ELFCOMPRESS_HIOS): Likewise. (ELFCOMPRESS_LOPROC): Likewise. (ELFCOMPRESS_HIPROC): Likewise.
-rw-r--r--include/elf/ChangeLog10
-rw-r--r--include/elf/common.h9
2 files changed, 19 insertions, 0 deletions
diff --git a/include/elf/ChangeLog b/include/elf/ChangeLog
index 41de600e967..2c7139d9215 100644
--- a/include/elf/ChangeLog
+++ b/include/elf/ChangeLog
@@ -1,3 +1,13 @@
+2015-03-26 H.J. Lu <hongjiu.lu@intel.com>
+
+ * common.h (ELFOSABI_CLOUDABI): New.
+ (SHF_COMPRESSED): Likewise.
+ (ELFCOMPRESS_ZLIB): Likewise.
+ (ELFCOMPRESS_LOOS): Likewise.
+ (ELFCOMPRESS_HIOS): Likewise.
+ (ELFCOMPRESS_LOPROC): Likewise.
+ (ELFCOMPRESS_HIPROC): Likewise.
+
2015-03-19 Nick Clifton <nickc@redhat.com>
* rl78.h (E_FLAG_RL78_G10): Redefine.
diff --git a/include/elf/common.h b/include/elf/common.h
index 70778bf42c5..25cfef2d6b1 100644
--- a/include/elf/common.h
+++ b/include/elf/common.h
@@ -73,6 +73,7 @@
#define ELFOSABI_NSK 14 /* Hewlett-Packard Non-Stop Kernel */
#define ELFOSABI_AROS 15 /* AROS */
#define ELFOSABI_FENIXOS 16 /* FenixOS */
+#define ELFOSABI_CLOUDABI 17 /* Nuxi CloudABI */
#define ELFOSABI_C6000_ELFABI 64 /* Bare-metal TMS320C6000 */
#define ELFOSABI_C6000_LINUX 65 /* Linux TMS320C6000 */
#define ELFOSABI_ARM 97 /* ARM */
@@ -506,6 +507,7 @@
#define SHF_OS_NONCONFORMING (1 << 8) /* OS specific processing required */
#define SHF_GROUP (1 << 9) /* Member of a section group */
#define SHF_TLS (1 << 10) /* Thread local storage section */
+#define SHF_COMPRESSED (1 << 11) /* Section with compressed data */
/* #define SHF_MASKOS 0x0F000000 *//* OS-specific semantics */
#define SHF_MASKOS 0x0FF00000 /* New value, Oct 4, 1999 Draft */
@@ -520,6 +522,13 @@
are not to be further
relocated. */
+/* Compression types */
+#define ELFCOMPRESS_ZLIB 1 /* Compressed with zlib. */
+#define ELFCOMPRESS_LOOS 0x60000000 /* OS-specific semantics, lo */
+#define ELFCOMPRESS_HIOS 0x6FFFFFFF /* OS-specific semantics, hi */
+#define ELFCOMPRESS_LOPROC 0x70000000 /* Processor-specific semantics, lo */
+#define ELFCOMPRESS_HIPROC 0x7FFFFFFF /* Processor-specific semantics, hi */
+
/* Values of note segment descriptor types for core files. */
#define NT_PRSTATUS 1 /* Contains copy of prstatus struct */