1
0
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:
John Reiser
2006-12-17 17:39:47 -08:00
parent d9f5e2bb08
commit a8fe529814

View File

@ -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