[llvm-dev] Adding sections in a binary

David Blaikie via llvm-dev llvm-dev at lists.llvm.org
Thu Aug 13 09:03:06 PDT 2020


Sounds like the llvm-objcopy source code (llvm/tools/llvm-objcopy) is
probably a good place to start.

On Thu, Aug 13, 2020 at 8:11 AM Joseph via llvm-dev
<llvm-dev at lists.llvm.org> wrote:
>
> 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
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev


More information about the llvm-dev mailing list