tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Tinycc-devel] Allow configuration of tcc libraries search path


From: grischka
Subject: Re: [Tinycc-devel] Allow configuration of tcc libraries search path
Date: Sun, 10 Jul 2011 18:05:57 +0200
User-agent: Thunderbird 2.0.0.24 (Windows/20100228)

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 ;)

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?

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]