Compiling glibc with memory sanitizer / ABI compatibility of sanitizers

Hi everyone,

the documentation of the memory sanitizer states that “MemorySanitizer requires that all program code is instrumented. This also includes any libraries that the program depends on, even libc”, and that the interceptors are just a workaround if one does not have an instrumented libc. However, to my knowledge it is currently not possible to build glibc with clang, so my question is: Are the Clang and GCC sanitizers ABI compatible, i.e. can I build glibc with GCC and enabled memory sanitizer and use it when building sanitized applications with Clang and libc++? If I do so, do I need to set some flags to disable the interceptors?

Thank you