From 68310299b67bef763ba1622dac2aec534e096bf1 Mon Sep 17 00:00:00 2001 From: grischka Date: Sat, 16 May 2009 22:29:40 +0200 Subject: ulibc: #define TCC_UCLIBC and load elf_interp --- tccelf.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tccelf.c') diff --git a/tccelf.c b/tccelf.c index 5971442..4020e24 100644 --- a/tccelf.c +++ b/tccelf.c @@ -1272,17 +1272,17 @@ static void tcc_add_linker_symbols(TCCState *s1) } /* name of ELF interpreter */ -#ifdef __FreeBSD__ +#if defined __FreeBSD__ static char elf_interp[] = "/usr/libexec/ld-elf.so.1"; -#else -#ifdef TCC_ARM_EABI +#elif defined TCC_ARM_EABI static char elf_interp[] = "/lib/ld-linux.so.3"; #elif defined(TCC_TARGET_X86_64) static char elf_interp[] = "/lib/ld-linux-x86-64.so.2"; +#elif defined(TCC_UCLIBC) +static char elf_interp[] = "/lib/ld-uClibc.so.0"; #else static char elf_interp[] = "/lib/ld-linux.so.2"; #endif -#endif static void tcc_output_binary(TCCState *s1, FILE *f, const int *section_order) -- cgit v1.3.1