aboutsummaryrefslogtreecommitdiff
path: root/tccelf.c
diff options
context:
space:
mode:
Diffstat (limited to 'tccelf.c')
-rw-r--r--tccelf.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/tccelf.c b/tccelf.c
index 45c0265..f5f9eed 100644
--- a/tccelf.c
+++ b/tccelf.c
@@ -1500,7 +1500,11 @@ static void tcc_output_binary(TCCState *s1, FILE *f,
}
}
-#if 1 // this allow valgrind to work on linux //defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
+// making this evaluate to true allow valgrind to work on linux
+// but when compiled with debug info and then striped
+// the compiled programs segfault
+// more tought must be applyed here
+#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
#define HAVE_PHDR 1
#define EXTRA_RELITEMS 14