It is about mips64r6 and gcc-12.2.0.
I am trying to come up with custom ASAN runtime by implementing methods like:
__asan_report_load1, asan report, etc.
I left all methods empty, printing single log line and methods returning stack allocations are returning NULL, for example:
uptr __asan_stack_malloc_0(size_t s) { printf("%s\n", __func__); return NULL; }
Instrumented binary crashes so early that it is hard to reason about what exactly is happening.
I do not see any globals that I should have initialized, is there something obvious that I am missing or binary instrumentation itself is tightly coupled with Linux so reimplementing callbacks is not enough?
Thank you!