mirror of
https://github.com/ptitSeb/box86.git
synced 2024-11-27 03:44:40 +08:00
Added Faked libtcmalloc_minimal (empty wrapped, use regular malloc/new functions)
This commit is contained in:
parent
a9cb19933a
commit
6f00b50c6e
@ -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"
|
||||
)
|
||||
|
||||
|
@ -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)
|
||||
|
18
src/wrapped/wrappedtcmallocminimal.c
Executable file
18
src/wrapped/wrappedtcmallocminimal.c
Executable 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"
|
4
src/wrapped/wrappedtcmallocminimal_private.h
Executable file
4
src/wrapped/wrappedtcmallocminimal_private.h
Executable file
@ -0,0 +1,4 @@
|
||||
#if !(defined(GO) && defined(GOM) && defined(GO2) && defined(DATA))
|
||||
#error Meh...
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user