Skip to content

Commit 0631330

Browse files
committed
Using LIBC_SO macro
1 parent 3910b5b commit 0631330

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

source/loader/layers/sanitizer/linux/san_utils.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,10 @@
1212
*/
1313

1414
#include "common.hpp"
15+
1516
#include <asm/param.h>
1617
#include <dlfcn.h>
18+
#include <gnu/lib-names.h>
1719
#include <sys/mman.h>
1820

1921
extern "C" __attribute__((weak)) void __asan_init(void);
@@ -69,7 +71,7 @@ bool DestroyShadowMem() {
6971
}
7072

7173
void *GetMemFunctionPointer(const char *FuncName) {
72-
void *handle = dlopen("libc.so.6", RTLD_LAZY);
74+
void *handle = dlopen(LIBC_SO, RTLD_LAZY);
7375
if (!handle) {
7476
return (void *)nullptr;
7577
}

0 commit comments

Comments
 (0)