Need advise on GCC instrumentation, asan and memory reference hooking
I’m trying to create some sort of poor man’s mmap() on a platform that does not support generic mmap directly (we’re talking about esp32s3). I realize that this approach will have a significant impact on performance, but nevertheless I would like to give it a try in specific places in the project. The idea is to generate code around each memory load, check the pointer value and decide if the load should happen from other address.