I don't think clang/llvm provides much in the way of infrastructure
that would help with that task. I've seen things like that done with
https://github.com/microsoft/detours fwiw.

On Fri, Jul 24, 2020 at 7:34 AM Mahmood Naderan via cfe-users
<cfe-users@lists.llvm.org> wrote:
>
> Hi,
> I would like to know if it is possible to modify a binary file with
> some custom assembly instructions. Specifically, I want to add some
> jump instruction at the end of some basic blocks that I want to
> reorder. Is there any starting point for that?
>
> Regards,
> Mahmood
> _______________________________________________
> cfe-users mailing list
> cfe-users@lists.llvm.org
> https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-users
_______________________________________________
cfe-users mailing list
cfe-users@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-users

Reply via email to