Added Faked libtcmalloc_minimal (empty wrapped, use regular malloc/new functions)

This commit is contained in:
ptitSeb 2020-06-20 11:45:16 +02:00
parent a9cb19933a
commit 6f00b50c6e
4 changed files with 24 additions and 0 deletions

View File

@ -289,6 +289,7 @@ set(WRAPPEDS
"${BOX86_ROOT}/src/wrapped/wrappeddbusglib1.c"
"${BOX86_ROOT}/src/wrapped/wrappedgudev1.c"
"${BOX86_ROOT}/src/wrapped/wrappedlibnm.c"
"${BOX86_ROOT}/src/wrapped/wrappedtcmallocminimal.c"
"${BOX86_ROOT}/src/wrapped/wrappedldlinux.c"
)

View File

@ -101,5 +101,6 @@ GO("libusb-1.0.so.0", libusb1)
GO("libncursesw.so.5", libncursesw)
GO("libformw.so.5", libformw)
GO("libtinfo.so.5", libtinfo)
GO("libtcmalloc_minimal.so.4", tcmallocminimal)
GO("ld-linux.so.2", ldlinux)

View File

@ -0,0 +1,18 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define _GNU_SOURCE /* See feature_test_macros(7) */
#include <dlfcn.h>
#include "wrappedlibs.h"
#include "wrapper.h"
#include "bridge.h"
#include "librarian/library_private.h"
#include "x86emu.h"
// Fake the lib for now, don't load it
const char* tcmallocminimalName = "";//"libtcmalloc_minimal.so.4";
#define LIBNAME tcmallocminimal
#include "wrappedlib_init.h"

View File

@ -0,0 +1,4 @@
#if !(defined(GO) && defined(GOM) && defined(GO2) && defined(DATA))
#error Meh...
#endif