Instead of elf_memory() having to guess, which seems like it will confuse
future users (esp if its behavior is not documented), can we make a new
extended API routine elf_memory_mode() that takes in the mode, and clearly
document that the old legacy one assumes readonly (or read-write if you
change
Mark,
The draft patch you provided lets my section header updates happen in place.
This meets my needs.
I am working with Intel Ponte Vecchio GPU binaries, which are relocatables.
What I am trying to do is to (1) change the sh_addr field in the section
headers to make the sections non-overlapp
Hi,
So we changed elf_memory so it pretends the in-memory Elf image is
read with ELF_C_READ_MMAP. This helps when calling elf_memory on
read-only memory which still wants to change some things about the Elf
like uncompress some sections (which changes the section header).
With ELF_C_READ_MMAP lib