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.
This commit is contained in:
parent
4d9d419e0e
commit
7f7a1bce25
2 changed files with 7 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue