mirror of
https://github.com/upx/upx.git
synced 2025-08-11 22:52:30 +08:00
arm-linux.kernel preserve .e_flags
This commit is contained in:
@ -743,10 +743,9 @@ void PackVmlinuxARM::pack(OutputFile *fo)
|
||||
ibuf.alloc(file_size);
|
||||
obuf.allocForCompression(file_size);
|
||||
|
||||
// .e_ident, .e_machine, .e_version
|
||||
// .e_ident, .e_machine, .e_version, .e_flags
|
||||
memcpy(&ehdro, &ehdri, sizeof(ehdro));
|
||||
ehdro.e_type = Elf32_Ehdr::ET_REL;
|
||||
ehdro.e_flags = 0;
|
||||
ehdro.e_entry = 0;
|
||||
ehdro.e_phoff = 0;
|
||||
ehdro.e_shoff = sizeof(ehdro); // later
|
||||
|
Reference in New Issue
Block a user