Bart De VOS pointed out that removing absolute paths from the libc linker scripts is plainly wrong.
It dates from dawn ages of the original crosstool code, and is not well explained. At that time, binutils might not understand the sysroot stuff, and it was necessary to remove absolute paths in that case.
/trunk/scripts/build/libc/glibc.sh | 14 2 12 0 ++------------
1 file changed, 2 insertions(+), 12 deletions(-)
2 ../sysdeps/wordsize-64/wcstol_l.c:11: error: '____wcstoll_l_internal' aliased to undefined symbol '____wcstol_l_internal'
3 ../sysdeps/wordsize-64/wcstol_l.c:12: error: '__wcstoll_l' aliased to undefined symbol '__wcstol_l'
4 ../sysdeps/wordsize-64/wcstol_l.c:13: error: 'wcstoll_l' aliased to undefined symbol '__wcstol_l'
5 make[2]: *** [/home/dkegel/queue/jobdir.produser_cpsm10/crosstool-0.32/build/x86_64-unknown-linux-gnu/gcc-4.0.0-20050410-glibc-2.3.4/build-glibc/wcsmbs/wcstoul_l.o] Error 1
7 https://www.redhat.com/archives/fedora-cvs-commits/2005-March/msg00408.html
9 +* Fri Mar 25 2005 Jakub Jelinek <jakub redhat com> 2.3.4-18
10 +- fix build on 64-bit arches with new GCC
12 Revision 1.4.2.1, Fri Mar 25 11:59:01 2005 UTC (3 weeks, 4 days ago) by jakub
14 CVS Tags: fedora-glibc-2_3_4-18
15 Changes since 1.4: +2 -0 lines
16 Diff to previous 1.4 (colored)
18 * sysdeps/wordsize-64/strtol_l.c: Don't add aliases if UNSIGNED.
19 * sysdeps/wordsize-64/wcstol_l.c: Likewise.
22 http://sourceware.org/cgi-bin/cvsweb.cgi/libc/sysdeps/wordsize-64/strtol_l.c.diff?r1=1.4&r2=1.4.2.1&cvsroot=glibc
23 http://sourceware.org/cgi-bin/cvsweb.cgi/libc/sysdeps/wordsize-64/wcstol_l.c.diff?r1=1.4&r2=1.4.2.1&cvsroot=glibc
25 ===================================================================
26 RCS file: /cvs/glibc/libc/sysdeps/wordsize-64/strtol_l.c,v
27 retrieving revision 1.4
28 retrieving revision 1.4.2.1
29 diff -u -r1.4 -r1.4.2.1
30 --- libc/sysdeps/wordsize-64/strtol_l.c 2003/03/03 09:45:12 1.4
31 +++ libc/sysdeps/wordsize-64/strtol_l.c 2005/03/25 11:59:01 1.4.2.1
33 #undef ____strtoll_l_internal
37 strong_alias (____strtol_l_internal, ____strtoll_l_internal)
38 libc_hidden_ver (____strtol_l_internal, ____strtoll_l_internal)
39 weak_alias (__strtol_l, __strtoll_l)
40 weak_alias (__strtol_l, strtoll_l)
42 ===================================================================
43 RCS file: /cvs/glibc/libc/sysdeps/wordsize-64/wcstol_l.c,v
44 retrieving revision 1.4
45 retrieving revision 1.4.2.1
46 diff -u -r1.4 -r1.4.2.1
47 --- libc/sysdeps/wordsize-64/wcstol_l.c 2002/08/08 11:44:51 1.4
48 +++ libc/sysdeps/wordsize-64/wcstol_l.c 2005/03/25 11:59:01 1.4.2.1
50 #undef ____wcstoll_l_internal
54 strong_alias (____wcstol_l_internal, ____wcstoll_l_internal)
55 weak_alias (__wcstol_l, __wcstoll_l)
56 weak_alias (__wcstol_l, wcstoll_l)
59 Signed-off-by: Robert P. J. Day <rpjday@mindspring.com>