(original) (raw)

Hello,

I’m working on getting the address sanitizer working on a baremetal OS for an embedded ARM device.

It seems like ASAN was built with an expectation that POSIX calls and pthreads will be present in the underlying environment. And on linking with libclang\_rt.asan-aarch64.a; I am getting a whole bunch of missing symbols (as expected).

What I would like to know is, what would I have to do to build ASAN without pthread support? Is it just a matter of playing around with the asan\_interceptors.cc and the sanitizer\_common\_interceptors.cc? From what I’ve read online there doesn’t seem to be a switch to just turn off pthreads and TLS.

Thank you in advance for your assistance in this matter.

Regards,

Nikhil Gupta