diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2015-09-21 10:19:25 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2015-09-21 10:19:25 -0700 |
commit | 7f7a1bce250bc286d23a4b895d684748bec03a71 (patch) | |
tree | a36dcf7213385fda262dde904e947621bff3fa7a /include/elf/external.h | |
parent | 4d9d419e0e0512c301eb1ffcb793828451653024 (diff) | |
download | gdb-7f7a1bce250bc286d23a4b895d684748bec03a71.zip gdb-7f7a1bce250bc286d23a4b895d684748bec03a71.tar.gz gdb-7f7a1bce250bc286d23a4b895d684748bec03a71.tar.bz2 |
Change ch_type in Elf64_External_Chdr to 4 bytes
The ch_type field in Elf64_External_Chdr is 4 bytes, followed by a
4-byte padding. This change doesn't introduce any functional change
since only the lower 32 bits of the ch_type field are used.
* external.h (Elf64_External_Chdr): Change ch_type to 4 bytes
and add ch_reserved.
Diffstat (limited to 'include/elf/external.h')
-rw-r--r-- | include/elf/external.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/elf/external.h b/include/elf/external.h index b6057b5..ffb00b8 100644 --- a/include/elf/external.h +++ b/include/elf/external.h @@ -144,7 +144,8 @@ typedef struct { } Elf32_External_Chdr; typedef struct { - unsigned char ch_type[8]; /* Type of compression */ + unsigned char ch_type[4]; /* Type of compression */ + unsigned char ch_reserved[4]; /* Padding */ unsigned char ch_size[8]; /* Size of uncompressed data in bytes */ unsigned char ch_addralign[8]; /* Alignment of uncompressed data */ } Elf64_External_Chdr; |