History

Use CONFIG_TCC_LDDIR for ld.so on all linux archs

Thomas Preud'homme committed 15 years ago

Commit 5cf58711 parent 13121e21 file · +4 −4Browse files

Unified · Split

tccelf.c+4−4
@@ -1335,15 +1335,15 @@ ST_FUNC void tcc_add_linker_symbols(TCCState *s1) · 1334 unmodified lines
1335#if defined __FreeBSD__1335#if defined __FreeBSD__
1336static const char elf_interp[] = "/libexec/ld-elf.so.1";1336static const char elf_interp[] = "/libexec/ld-elf.so.1";
1337#elif defined __FreeBSD_kernel__1337#elif defined __FreeBSD_kernel__
1338static char elf_interp[] = "/lib/ld.so.1";1338static char elf_interp[] = CONFIG_TCC_LDDIR"/ld.so.1";
1339#elif defined TCC_ARM_EABI1339#elif defined TCC_ARM_EABI
1340static const char elf_interp[] = "/lib/ld-linux.so.3";1340static const char elf_interp[] = CONFIG_TCC_LDDIR"/ld-linux.so.3";
1341#elif defined(TCC_TARGET_X86_64)1341#elif defined(TCC_TARGET_X86_64)
1342static const char elf_interp[] = CONFIG_TCC_LDDIR"/ld-linux-x86-64.so.2";1342static const char elf_interp[] = CONFIG_TCC_LDDIR"/ld-linux-x86-64.so.2";
1343#elif defined(TCC_UCLIBC)1343#elif defined(TCC_UCLIBC)
1344static const char elf_interp[] = "/lib/ld-uClibc.so.0";1344static const char elf_interp[] = CONFIG_TCC_LDDIR"/ld-uClibc.so.0";
1345#else1345#else
1346static const char elf_interp[] = "/lib/ld-linux.so.2";1346static const char elf_interp[] = CONFIG_TCC_LDDIR"/ld-linux.so.2";
1347#endif1347#endif
1348 1348
1349static void tcc_output_binary(TCCState *s1, FILE *f,1349static void tcc_output_binary(TCCState *s1, FILE *f,

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