mirror of
https://github.com/frida/tinycc
synced 2025-01-12 14:49:18 +03:00
This allow valgrind to work on linux, some how the PHDR is missing and then valgrind complain with:
Inconsistency detected by ld.so: rtld.c: 1284: dl_main: Assertion `_rtld_local._dl_rtld_map.l_libname' failed!
This commit is contained in:
parent
14bb8302c4
commit
0ba7c8670c
2
tccelf.c
2
tccelf.c
@ -1500,7 +1500,7 @@ static void tcc_output_binary(TCCState *s1, FILE *f,
|
||||
}
|
||||
}
|
||||
|
||||
#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
|
||||
#if 1 // this allow valgrind to work on linux //defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
|
||||
#define HAVE_PHDR 1
|
||||
#define EXTRA_RELITEMS 14
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user