mirror of
https://github.com/intel/llvm.git
synced 2026-01-31 16:29:50 +08:00
[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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user