!(fun) with tls

NZG ngustavson@emacinc.com
Mon Jun 5 15:42:00 GMT 2006


> copy all the glibc libs from your target (including ld-linux.so)
> and link with:
> gcc-3.4.3-glibc-2.3.2/i386-unknown-linux-gnu/bin/i386-unknown-linux-gnu-gcc
> -Blib/dynamic/ (make sure you have the same libs/links in lib/dynamic/ as
> you would in /lib/ and /usr/lib/ on the target ... dont go renaming things
> like 'libc-2.3.2.so' and try to link with '-lc-2.3.2'
Done, but I'm getting the same error.
make -k all 
../..//gcc-4.0.0-glibc-2.3.2/i386-unknown-linux-gnu/bin/i386-unknown-linux-gnu-gcc  -I../..//include  -g  -c 
hello.c 
../..//gcc-4.0.0-glibc-2.3.2/i386-unknown-linux-gnu/bin/i386-unknown-linux-gnu-gcc  
*.o -Wl -B../..//lib/dynamic/ -o hello -lc
../..//lib/dynamic/libc.so.6: undefined reference to 
`_dl_tls_symaddr@GLIBC_PRIVATE'
collect2: ld returned 1 exit status
make: *** [hello] Error 1
make: Target `all' not remade because of errors

../..//lib/dynamic/ is the location of all libraries and symlinks to them 
directly extracted from:
libc6_2.3.2.ds1-22_i386.deb

tls is there too, but sitting in it's own tls directory, unlinked to.

Currently I'm trying to figure out how to make the crosstool script use the 
existing glibc libraries from the target (or at least building it from the 
patched Debian source).
 
thank you for all your suggestions and tips so far,
NZG



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



More information about the crossgcc mailing list