crosstool-0.28-rc36: ld.so.1 undefined reference

Dan Kegel dank@kegel.com
Sun Sep 26 15:11:00 GMT 2004


ml@bitbash.net wrote:

> gcc-3.4.0-glibc-2.2.5 barfs with a few undefined refereces and multiple
> definitions. The follwing patch seems to take care of the undefined
> reference of __dl_runtime_resolve symbol. 
> 
> Filename: patches/glibc-2.2.5/glibc-2.2.5-mips-dl-machine-1.60.patch 

Looks good.  I'll try it, thanks.

> Looks like patches/glibs-2.3.2/glibc-2.3.2-allow-gcc-3.4-nounit.patch
> needs to be "ported" to glibc-2.2.5 to fix the multiple definitions of
> 'dummy' in build-glibc/csu/crtn.S and undefined reference to
> 'i_am_not_a_leaf' in build-glibc/csu/crti.S. Also, there are multiple
> definitions to '_init' and '_fini' in build-glibc/csu/crtn.S. The
> linuxthreads 2.3.2 nounit.patch should also be "ported" to linuxthreads
> 2.2.5 ??

Yes.  I haven't gotten around to that.

A simpler way to go for the moment is to simply add -fno-unit-at-a-time
to CFLAGS when building glibc-2.2.5 with gcc-3.4.x.
That's a bit awkward to add to my demo scripts at the moment.
Maybe I should add an EXTRA_TARGET_CFLAGS variable to crosstool.sh,
and set it only from toolcombo .dat files.  Then
gcc-3.4.2-glibc-2.2.5.dat could set 
EXTRA_TARGET_CFLAGS="-fno-unit-at-a-time"

- Dan


------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com



More information about the crossgcc mailing list