diff options
| author | mingodad <mingodad@gmail.com> | 2014-03-28 21:07:06 +0000 |
|---|---|---|
| committer | mingodad <mingodad@gmail.com> | 2014-03-28 21:07:06 +0000 |
| commit | 5c233f2cf37a7bbf00b12df606f876c7275ef98f (patch) | |
| tree | d5fd773a42a68e15fd09fe249793b45d454d0722 /tccelf.c | |
| parent | c025478d7c03eb8d32022f1aec4537bd0a75a743 (diff) | |
| download | tinycc-5c233f2cf37a7bbf00b12df606f876c7275ef98f.tar.gz tinycc-5c233f2cf37a7bbf00b12df606f876c7275ef98f.tar.bz2 | |
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
Diffstat (limited to 'tccelf.c')
| -rw-r--r-- | tccelf.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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 |
