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

后端 未结 4 1663
我寻月下人不归
我寻月下人不归 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:49

    Try objcopy --writable-text on the compiled library, according to the documentation it should make .text writable.

提交回复
热议问题