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:
mingodad 2014-03-28 11:44:00 +00:00
parent 14bb8302c4
commit 0ba7c8670c

View File

@ -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