How can I make GCC compile the .text section as writable in an ELF binary?

后端 未结 4 1660
我寻月下人不归
我寻月下人不归 2020-12-01 17:18

I would like to be able to dynamically change the executable code within a library I am using. Essentially, I would like to dynamically NOP out certain functions if they are

4条回答
  •  时光说笑
    2020-12-01 17:44

    The easiest way i found (binutils 2.22) is to link with -N That can be passes to gcc with gcc -XN

提交回复
热议问题