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
13351335 #if defined __FreeBSD__
13361336 static const char elf_interp[] = "/libexec/ld-elf.so.1";
13371337 #elif defined __FreeBSD_kernel__
1338−static char elf_interp[] = "/lib/ld.so.1";
1338+static char elf_interp[] = CONFIG_TCC_LDDIR"/ld.so.1";
13391339 #elif defined TCC_ARM_EABI
1340−static const char elf_interp[] = "/lib/ld-linux.so.3";
1340+static const char elf_interp[] = CONFIG_TCC_LDDIR"/ld-linux.so.3";
13411341 #elif defined(TCC_TARGET_X86_64)
13421342 static const char elf_interp[] = CONFIG_TCC_LDDIR"/ld-linux-x86-64.so.2";
13431343 #elif defined(TCC_UCLIBC)
1344−static const char elf_interp[] = "/lib/ld-uClibc.so.0";
1344+static const char elf_interp[] = CONFIG_TCC_LDDIR"/ld-uClibc.so.0";
13451345 #else
1346−static const char elf_interp[] = "/lib/ld-linux.so.2";
1346+static const char elf_interp[] = CONFIG_TCC_LDDIR"/ld-linux.so.2";
13471347 #endif
13481348
13491349 static 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