From: Joseph K. <jk...@us...> - 2011-04-02 12:29:22
|
> I'm trying to modify the .text section of an existing elf executable, > however even the simplest elf_begin, elf_update, elf_end sequence > results in a non-functioning executable elf file. This is most likely a known bug [1]; the ELF_C_RDWR case has never worked properly. The (rather ugly) workaround is to create a new ELF object by copying over contents from the old one. Refs: 1: http://sourceforge.net/apps/trac/elftoolchain/ticket/269 -- Koshy |