History

ulibc: #define TCC_UCLIBC and load elf_interp

grischka committed 17 years ago

Commit 68310291 parent bf8d8f53 files · +12 −5Browse files

Unified · Split

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

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