History

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

mingodad committed 12 years ago

Commit 5c233f21 parent c0254781 file · +5 −1Browse files

Unified · Split

tccelf.c+5−1
@@ -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#define HAVE_PHDR 11508#define HAVE_PHDR 1
1505#define EXTRA_RELITEMS 141509#define EXTRA_RELITEMS 14
1506 1510

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t