[compiler-rt] Restrict sanitizer_linux.cpp dlinfo(3) to FreeBSD

FreeBSD is currently the only user in this file.
Accessing this symbol on Linux does not work as is.
This commit is contained in:
Kamil Rytarowski
2020-02-11 10:57:16 +01:00
parent 92a1f65f17
commit b664321ff1

View File

@@ -736,8 +736,7 @@ uptr internal_getppid() {
}
int internal_dlinfo(void *handle, int request, void *p) {
#if SANITIZER_FREEBSD || (SANITIZER_LINUX && !SANITIZER_ANDROID) || \
SANITIZER_SOLARIS
#if SANITIZER_FREEBSD
return dlinfo(handle, request, p);
#else
UNIMPLEMENTED();