Unified · Split
| @@ -1500,7 +1500,11 @@ static void tcc_output_binary(TCCState *s1, FILE *f, · 1499 unmodified lines | ||
| 1500 | 1500 | } |
| 1501 | 1501 | } |
| 1502 | 1502 | |
| 1503 | −#if 1 // this allow valgrind to work on linux //defined(__FreeBSD__) || defined(__FreeBSD_kernel__) | |
| 1503 | +// making this evaluate to true allow valgrind to work on linux | |
| 1504 | +// but when compiled with debug info and then striped | |
| 1505 | +// the compiled programs segfault | |
| 1506 | +// more tought must be applyed here | |
| 1507 | +#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) | |
| 1504 | 1508 | #define HAVE_PHDR 1 |
| 1505 | 1509 | #define EXTRA_RELITEMS 14 |
| 1506 | 1510 | |