We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3910b5b commit 0631330Copy full SHA for 0631330
source/loader/layers/sanitizer/linux/san_utils.cpp
@@ -12,8 +12,10 @@
12
*/
13
14
#include "common.hpp"
15
+
16
#include <asm/param.h>
17
#include <dlfcn.h>
18
+#include <gnu/lib-names.h>
19
#include <sys/mman.h>
20
21
extern "C" __attribute__((weak)) void __asan_init(void);
@@ -69,7 +71,7 @@ bool DestroyShadowMem() {
69
71
}
70
72
73
void *GetMemFunctionPointer(const char *FuncName) {
- void *handle = dlopen("libc.so.6", RTLD_LAZY);
74
+ void *handle = dlopen(LIBC_SO, RTLD_LAZY);
75
if (!handle) {
76
return (void *)nullptr;
77
0 commit comments