to make the whole .text section writable using mprotect() but everything I tried has failed.
Any idea how to get the start of the .text segment, its size (aligned with `getpagesize()`) in order to achieve this?
Will appreciate code snippets :)
Linux? If so, you can try reading: /proc/self/maps
extern const char* text; should give it normally
Обсуждают сегодня