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 @@
11 version 0.9.25:
22
3−- split tcc.c into tcc.h libtcc.c tccpp.c tccgen.c tcc.c
43 - 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
56 - improved preprocess output with linenumbers and spaces preserved
7+- tcc_relocate now copies code into user buffer
68 - fix bitfields with non-int types and in unions
79 - improve ARM cross-compiling (Daniel Glöckner)
810 - link stabstr sections from multiple objects
Makefile+5−0
@@ -58,6 +58,11 @@ endif · 57 unmodified lines
5858 endif
5959 endif
6060
61+ifneq ($(wildcard /lib/ld-uClibc.so.0),)
62+NATIVE_TARGET+=-DTCC_UCLIBC
63+BCHECK_O=
64+endif
65+
6166 ifdef CONFIG_USE_LIBGCC
6267 LIBTCC1=
6368 endif
tccelf.c+4−4
@@ -1272,17 +1272,17 @@ static void tcc_add_linker_symbols(TCCState *s1) · 1271 unmodified lines
12721272 }
12731273
12741274 /* name of ELF interpreter */
1275−#ifdef __FreeBSD__
1275+#if defined __FreeBSD__
12761276 static char elf_interp[] = "/usr/libexec/ld-elf.so.1";
1277−#else
1278−#ifdef TCC_ARM_EABI
1277+#elif defined TCC_ARM_EABI
12791278 static char elf_interp[] = "/lib/ld-linux.so.3";
12801279 #elif defined(TCC_TARGET_X86_64)
12811280 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";
12821283 #else
12831284 static char elf_interp[] = "/lib/ld-linux.so.2";
12841285 #endif
1285−#endif
12861286
12871287 static void tcc_output_binary(TCCState *s1, FILE *f,
12881288 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