This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH 0 of 2] Static toolchain support


On Mon, Oct 18, 2010 at 6:49 PM, Arnaud Lacombe <lacombar@gmail.com> wrote:
> Hi,
>
> On Mon, Oct 18, 2010 at 5:12 PM, Bryan Hundven <bryanhundven@gmail.com> wrote:
>> These commits add support for statically linked toolchains.
>> You must turn on CT_EXPERIMENTAL to use this toolchain, as there
>> is still one problem left to solve.
>>
>> The toolchain that is produced builds static and dynamic binaries
>> with the (GNU/Linux) elf header rather then the expected (SYSV) elf header.
>>
>> I have found two articles on the topic where one says it is a problem with
>> binutils, and the other says it is a problem with (e)glibc.
>>
>> Any suggestions on fixing this?
>>
> Not yet, but having articles' URLs might be helpful.
>
> Â- Arnaud
>

When building ct-ng with (e)glibc >= 2.11 and building either a
statically linked toolchain or the normal dynamically linked
toolchain, I still notice that the elf OSABI is "(GNU/Linux) - 3" and
not "(SYSV) - 0"

bryan@flubber:~/x-tools/i686-nptl-linux-gnu$ find . | xargs file |
grep '(GNU/Linux)'
./i686-nptl-linux-gnu/sys-root/sbin/sln:
                   ELF 32-bit LSB executable, Intel 80386, version 1
(GNU/Linux), statically linked, for GNU/Linux 2.6.30, not stripped
./i686-nptl-linux-gnu/sys-root/sbin/ldconfig:
                   ELF 32-bit LSB executable, Intel 80386, version 1
(GNU/Linux), statically linked, for GNU/Linux 2.6.30, not stripped
./i686-nptl-linux-gnu/sys-root/lib/libm-2.12.1.so:
   ELF 32-bit LSB shared object, Intel 80386, version 1 (GNU/Linux),
dynamically linked (uses shared libs), for GNU/Linux 2.6.30, not
stripped
./i686-nptl-linux-gnu/sys-root/lib/libc-2.12.1.so:
   ELF 32-bit LSB shared object, Intel 80386, version 1 (GNU/Linux),
dynamically linked (uses shared libs), for GNU/Linux 2.6.30, not
stripped

I have tried adding binutils-2.20.51 (snapshot) to my local version of
ct-ng, but this produced the same results.

Does anyone have suggestions on how to (e)glibc to build as "(SYSV)"
and not "(GNU/Linux)"?

-Bryan

--
For unsubscribe information see http://sourceware.org/lists.html#faq


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]