History

This allow valgrind to work on linux, some how the PHDR is missing and then valgrind complain with: Inconsistency detected by ld.so: rtld.c: 1284: dl_main: Assertion `_rtld_local._dl_rtld_map.l_libname' failed!

mingodad committed 12 years ago

Commit 0ba7c861 parent 14bb8301 file · +1 −1Browse files

Unified · Split

tccelf.c+1−1
@@ -1500,7 +1500,7 @@ static void tcc_output_binary(TCCState *s1, FILE *f, · 1499 unmodified lines
1500 }1500 }
1501}1501}
1502 1502
1503#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)1503#if 1 // this allow valgrind to work on linux //defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
1504#define HAVE_PHDR 11504#define HAVE_PHDR 1
1505#define EXTRA_RELITEMS 141505#define EXTRA_RELITEMS 14
1506 1506

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