[llvm-dev] Adding sections in a binary

Joseph via llvm-dev llvm-dev at lists.llvm.org
Thu Aug 13 08:11:07 PDT 2020


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20200813/2c65f469/attachment.html>


More information about the llvm-dev mailing list