The linker suggests using -Wl,-z,notext.
Replaced assert by exit also fixed this.
After renaming, interceptor.c would be used to test interceptors in general by D101204.
Differential D101649
[dfsan] Rename and fix an internal test issue for mmap+calloc stephan.yichao.zhao on Apr 30 2021, 10:23 AM. Authored by
Details The linker suggests using -Wl,-z,notext. Replaced assert by exit also fixed this. After renaming, interceptor.c would be used to test interceptors in general by D101204.
Diff Detail
Event Timeline
Comment Actions replaced assert by exit.
Comment Actions still not sure why assert can cause link errors yet... |
This test-only change is fine with me, but why do we need it in the first place? What relocation do we have marked read-only?