aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormingodad <mingodad@gmail.com>2014-03-28 11:44:00 +0000
committermingodad <mingodad@gmail.com>2014-03-28 11:44:00 +0000
commit0ba7c8670c0ed178b857245609f5030d63ef2191 (patch)
tree75ac0a8600f28b5941829a36c8643670442c1a23
parent14bb8302c42576112472fdf7491dbb369c3e6db5 (diff)
downloadtinycc-0ba7c8670c0ed178b857245609f5030d63ef2191.tar.gz
tinycc-0ba7c8670c0ed178b857245609f5030d63ef2191.tar.bz2
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!
-rw-r--r--tccelf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tccelf.c b/tccelf.c
index 217c917..45c0265 100644
--- a/tccelf.c
+++ b/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