The hack to allow valgrind works with tcc compiled programs

have the undesired side effect of programs compiled with
debug info segfaulting after debug info been striped
more tought must be done here
master
mingodad 2014-03-28 21:07:06 +00:00
parent c025478d7c
commit 5c233f2cf3
1 changed files with 5 additions and 1 deletions

View File

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