diff options
| author | Szabolcs Nagy <nsz@port70.net> | 2016-04-20 13:19:08 +0200 | 
|---|---|---|
| committer | Rich Felker <dalias@aerifal.cx> | 2016-07-03 16:15:12 -0400 | 
| commit | af17dc40dd91fbfc5a0ca487c52f6c419567f967 (patch) | |
| tree | cde834a7c3a48472b77ead2560da8059619a556f | |
| parent | 29a96c1980db9c6eee70e8935a9a4cb3a0ac954d (diff) | |
| download | musl-af17dc40dd91fbfc5a0ca487c52f6c419567f967.tar.gz | |
add SHF_COMPRESSED section flag to elf.h
following
http://www.sco.com/developers/gabi/latest/ch4.sheader.html
| -rw-r--r-- | include/elf.h | 23 | 
1 files changed, 23 insertions, 0 deletions
| diff --git a/include/elf.h b/include/elf.h index eefcbc11..223a3431 100644 --- a/include/elf.h +++ b/include/elf.h @@ -318,11 +318,34 @@ typedef struct {  #define SHF_GROUP	     (1 << 9)  #define SHF_TLS		     (1 << 10) +#define SHF_COMPRESSED	     (1 << 11)  #define SHF_MASKOS	     0x0ff00000  #define SHF_MASKPROC	     0xf0000000  #define SHF_ORDERED	     (1 << 30)  #define SHF_EXCLUDE	     (1U << 31) +typedef struct +{ +  Elf32_Word	ch_type; +  Elf32_Word	ch_size; +  Elf32_Word	ch_addralign; +} Elf32_Chdr; + +typedef struct +{ +  Elf64_Word	ch_type; +  Elf64_Word	ch_reserved; +  Elf64_Xword	ch_size; +  Elf64_Xword	ch_addralign; +} Elf64_Chdr; + +#define ELFCOMPRESS_ZLIB	1 +#define ELFCOMPRESS_LOOS	0x60000000 +#define ELFCOMPRESS_HIOS	0x6fffffff +#define ELFCOMPRESS_LOPROC	0x70000000 +#define ELFCOMPRESS_HIPROC	0x7fffffff + +  #define GRP_COMDAT	0x1  typedef struct { | 
