[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Tinycc-devel] Allow configuration of tcc libraries search path
From: |
Thomas Preud'homme |
Subject: |
Re: [Tinycc-devel] Allow configuration of tcc libraries search path |
Date: |
Mon, 11 Jul 2011 15:58:44 +0200 |
User-agent: |
KMail/1.13.7 (Linux/2.6.39-2-amd64; KDE/4.6.4; x86_64; ; ) |
Le dimanche 10 juillet 2011 18:05:57, grischka a écrit :
> Thomas Preud'homme wrote:
> > I wrote the code yesterday. Please take a look. Still missing is the
> > handling of elf_interp but this must be added anyway without this
> > option.
>
> Well, to me the better patches are those that make the code smaller
> rather than bigger ;)
Ok.
>
> As I understand it is possible to support multilib without any special
> code in tcc. Without CONFIG_TCC_MULTILIB_SUBDIR, AFF_MULTILIB,
> CONFIG_TCC_EXTRA_LDDIR, CONFIG_TCC_INCSUBDIR, just without anything
> "MULTI_EXTRA_SUB" whatsoever.
>
> Do you think that is possible?
Yes, I think so if the include and library path can be colon seperated. I
understand your concern about tcc to stay tiny. Without touching tcc itself,
would it be ok to add a --multilib-subdir switch in configure which would set
the library and include path correctly? That way the compiler itself would
stay small but give a convenient interface at build time.
>
> > By the way, is this normal that only X86_64 ld.so uses CONFIG_TCC_LDDIR
> > or does the other ld.so also lack the use of this macro?
>
> Likely lack:
> $ git checkout release_0_9_25 tccelf.c
>
> /* name of ELF interpreter */
> #if defined __FreeBSD__
> static char elf_interp[] = "/usr/libexec/ld-elf.so.1";
> #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
>
> --- grischka
signature.asc
Description: This is a digitally signed message part.
- Re: [Tinycc-devel] Allow configuration of tcc libraries search path, (continued)
- Re: [Tinycc-devel] Allow configuration of tcc libraries search path, Thomas Preud'homme, 2011/07/07
- Re: [Tinycc-devel] Allow configuration of tcc libraries search path, Thomas Preud'homme, 2011/07/07
- Re: [Tinycc-devel] Allow configuration of tcc libraries search path, Thomas Preud'homme, 2011/07/07
- Re: [Tinycc-devel] Allow configuration of tcc libraries search path, grischka, 2011/07/07
- Re: [Tinycc-devel] Allow configuration of tcc libraries search path, Thomas Preud'homme, 2011/07/08
- Re: [Tinycc-devel] Allow configuration of tcc libraries search path, Thomas Preud'homme, 2011/07/08
- Re: [Tinycc-devel] Allow configuration of tcc libraries search path, grischka, 2011/07/09
- Re: [Tinycc-devel] Allow configuration of tcc libraries search path, Thomas Preud'homme, 2011/07/10
- Re: [Tinycc-devel] Allow configuration of tcc libraries search path, grischka, 2011/07/10
- Re: [Tinycc-devel] Allow configuration of tcc libraries search path,
Thomas Preud'homme <=
- Re: [Tinycc-devel] Allow configuration of tcc libraries search path, grischka, 2011/07/11
- Re: [Tinycc-devel] Allow configuration of tcc libraries search path, Rob Landley, 2011/07/08
- Re: [Tinycc-devel] Allow configuration of tcc libraries search path, grischka, 2011/07/09
- Re: [Tinycc-devel] Allow configuration of tcc libraries search path, Ivo van Poorten, 2011/07/11
- Re: [Tinycc-devel] Allow configuration of tcc libraries search path, Rob Landley, 2011/07/11
- Re: [Tinycc-devel] Allow configuration of tcc libraries search path, grischka, 2011/07/12
Re: [Tinycc-devel] Allow configuration of tcc libraries search path, Thomas Preud'homme, 2011/07/08