mirror of
https://github.com/mirror/tinycc.git
synced 2025-02-04 06:30:10 +08:00
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
This commit is contained in:
parent
c025478d7c
commit
5c233f2cf3
6
tccelf.c
6
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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user