[cfe-users] Binary modifications

2020-07-24 Thread Mahmood Naderan via cfe-users
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


Re: [cfe-users] Binary modifications

2020-07-24 Thread David Blaikie via cfe-users
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
 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