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: !(fun) with tls


On Monday 05 June 2006 12:11, NZG wrote:

you still have a desync here

> -dynamic-linker /lib/ld-linux.so.2

you'll need to override this:
-Wl,-dynamic-linker,../../lib/dynamic/ld-linux.so.2

> /home/nathan/workspace-new/SIB2.0-SDK/gcc-4.0.0-glibc-2.3.2/i386-unknown-li
>nux-gnu/bin/../lib/gcc/i386-unknown-linux-gnu/4.0.0/../../../../i386-unknown
>-linux-gnu/lib/crt1.o succeeded
> /home/nathan/workspace-new/SIB2.0-SDK/gcc-4.0.0-glibc-2.3.2/i386-unknown-li
>nux-gnu/bin/../lib/gcc/i386-unknown-linux-gnu/4.0.0/../../../../i386-unknown
>-linux-gnu/lib/crti.o succeeded

you'll also need to copy over the stuff glibc typically installs into /usr/lib

so things like the crt objects (seen above)

> attempt to open ../..//lib/dynamic/libc.so failed

the glibc libc.so linker script seen here

> attempt to open ../..//lib/dynamic/libc_nonshared.a failed

the small archive of objects glibc links into every object seen here

> /home/nathan/workspace-new/SIB2.0-SDK/gcc-4.0.0-glibc-../..//lib/dynamic/li
>bc.so.6: undefined reference to `_dl_tls_symaddr@GLIBC_PRIVATE'

without actually poring through the sources, my guess is that this symbol is 
provided by the ldso ... and since you have a mismatch between the libc.so 
and ldso, things fall apart
-mike

Attachment: pgp00000.pgp
Description: PGP signature


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