search for: assignfileoffset

Displaying 3 results from an estimated 3 matches for "assignfileoffset".

Did you mean: assignfileoffsets
2020 Aug 13
2
Adding sections in a binary
...e an advanced binary rewriting tool, this is still doable, but definitely brittle. File offsets (p_offset,sh_offset) can be reconstructed from addresses. llvm-objcopy/ELF/Object.cpp layoutSections has some code. A more sophisticated implementation is in the linker: lld/ELF/Writer.cpp assignFileOffsets
2020 Aug 13
2
Adding sections in a binary
Hey, LLVM has logic to parse ELF and PE binaries using `llvm::object::createBinary`. I tried to search in the codebase to see if there's a possibility to add/remove sections after parsing a binary and re-write the binary to another location. Basically, like what llvm-objcopy does. Can you point me to the right classes to look into, if this is something that LLVM has? Many thanks Joseph
2014 Mar 14
4
[LLVMdev] Is lld the linker we need for our project ?
Hi, Thanks a lot for your answer. It seems lld is still the best solution, even if it does not work "right out of the box" for us today. We already have a solution for the "objcopy" part (added the required output format to llvm-objdump). The ScriptLayout class seems to be empty for now (on the master branch at least), but we do not need linker scripts today. All that is