From 244e3eafdf05ddef3b75c88c362ffc62ffbf2584 Mon Sep 17 00:00:00 2001 From: ptitSeb Date: Mon, 9 May 2022 18:05:51 +0200 Subject: Small fixes to the symbol name to avoid overriding by libs --- src/elfs/elfloader.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/elfs/elfloader.c b/src/elfs/elfloader.c index 941f094b..338a57ca 100755 --- a/src/elfs/elfloader.c +++ b/src/elfs/elfloader.c @@ -927,8 +927,8 @@ void AddSymbols(lib_t *maplib, kh_mapsymbols_t* mapsymbols, kh_mapsymbols_t* wea int libcef = (strstr(h->name, "libcef.so"))?1:0; //libcef.so is linked with tcmalloc staticaly, but this cannot be easily supported in box64, so hacking some "unlink" here const char* avoid_libcef[] = {"malloc", "realloc", "free", "calloc", "cfree", - "__libc_calloc", "__libc_cfree", "__libc_memallign", "__liv_pvalloc", - "__libcrealloc", "__libc_valloc", "__posix_memalign", + "__libc_malloc", "__libc_calloc", "__libc_free", "__libc_memallign", "__libc_pvalloc", + "__libc_realloc", "__libc_valloc", "__posix_memalign", "valloc", "pvalloc", "posix_memalign", "malloc_stats", "malloc_usable_size", /*"mallopt",*/ "localtime_r", //c++ symbol from libstdc++ too -- cgit 1.4.1