Unified · Split
| @@ -1,8 +1,10 @@ | ||
| 1 | 1 | version 0.9.25: |
| 2 | 2 | |
| 3 | −- split tcc.c into tcc.h libtcc.c tccpp.c tccgen.c tcc.c | |
| 4 | 3 | - first support for x86-64 target (Shinichiro Hamaji) |
| 4 | +- support �Clibc | |
| 5 | +- split tcc.c into tcc.h libtcc.c tccpp.c tccgen.c tcc.c | |
| 5 | 6 | - improved preprocess output with linenumbers and spaces preserved |
| 7 | +- tcc_relocate now copies code into user buffer | |
| 6 | 8 | - fix bitfields with non-int types and in unions |
| 7 | 9 | - improve ARM cross-compiling (Daniel Glöckner) |
| 8 | 10 | - link stabstr sections from multiple objects |
| @@ -58,6 +58,11 @@ endif · 57 unmodified lines | ||
| 58 | 58 | endif |
| 59 | 59 | endif |
| 60 | 60 | |
| 61 | +ifneq ($(wildcard /lib/ld-uClibc.so.0),) | |
| 62 | +NATIVE_TARGET+=-DTCC_UCLIBC | |
| 63 | +BCHECK_O= | |
| 64 | +endif | |
| 65 | + | |
| 61 | 66 | ifdef CONFIG_USE_LIBGCC |
| 62 | 67 | LIBTCC1= |
| 63 | 68 | endif |
| @@ -1272,17 +1272,17 @@ static void tcc_add_linker_symbols(TCCState *s1) · 1271 unmodified lines | ||
| 1272 | 1272 | } |
| 1273 | 1273 | |
| 1274 | 1274 | /* name of ELF interpreter */ |
| 1275 | −#ifdef __FreeBSD__ | |
| 1275 | +#if defined __FreeBSD__ | |
| 1276 | 1276 | static char elf_interp[] = "/usr/libexec/ld-elf.so.1"; |
| 1277 | −#else | |
| 1278 | −#ifdef TCC_ARM_EABI | |
| 1277 | +#elif defined TCC_ARM_EABI | |
| 1279 | 1278 | static char elf_interp[] = "/lib/ld-linux.so.3"; |
| 1280 | 1279 | #elif defined(TCC_TARGET_X86_64) |
| 1281 | 1280 | static char elf_interp[] = "/lib/ld-linux-x86-64.so.2"; |
| 1281 | +#elif defined(TCC_UCLIBC) | |
| 1282 | +static char elf_interp[] = "/lib/ld-uClibc.so.0"; | |
| 1282 | 1283 | #else |
| 1283 | 1284 | static char elf_interp[] = "/lib/ld-linux.so.2"; |
| 1284 | 1285 | #endif |
| 1285 | −#endif | |
| 1286 | 1286 | |
| 1287 | 1287 | static void tcc_output_binary(TCCState *s1, FILE *f, |
| 1288 | 1288 | const int *section_order) |