ELFkickers
ELFkickers copied to clipboard
A collection of programs that access and manipulate ELF files.
This changes allow to build the code with a different toolchain. The increased buffers avoid compiler warnings on x86_64-linux -- Regards ... Detef
Gcc 13 warns: elfls.c:587:25: warning: ‘%d’ directive writing between 1 and 10 bytes into a region of size 7 [-Wformat-overflow=] sprintf(sizefmt, "%%%dlX", i); ^~ note: directive argument in the range...
See https://github.com/corsix/polyfill-glibc/issues/3 for an example of ELF files where e_phoff != sizeof(ELF header).