3 ms·
In elftoolchain you'll see some elfs having a size of 52 instead of 64 https://github.com/sergev/elftoolchain/search?utf8=%E2%9C%93&q=e_ehsize&type= https://gi
by molticrystal 9y ago
In elftoolchain you'll see some elfs having a size of 52 instead of 64
https://github.com/sergev/elftoolchain/search?utf8=%E2%9C%93&q=e_ehsize&type= https://github.com/sergev/elftoolchain/search?utf8=%E2%9C%93...
Also it is interesting that the powerpc elf loader verifies that the e_ehsize is the same size as the allocated buffer, perhaps they had an issue at one point.
https://github.com/torvalds/linux/blob/ba6d973f78eb62ffebb32f6ef3334fc9a3b33d22/arch/powerpc/kernel/kexec_elf_64.c#L175 https://github.com/torvalds/linux/blob/ba6d973f78eb62ffebb32...