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(-)
1 Original patch from gentoo: gentoo/src/patchsets/gdb/6.7.1/50_all_gdb-deleted-children.patch
2 -= BEGIN original header =-
3 http://bugs.gentoo.org/210636
4 http://sourceware.org/ml/gdb-patches/2007-11/msg00136.html
6 2007-11-07 Vladimir Prus <vladimir@codesourcery.com>
8 Fix crash when a variable object being deleted
9 has any of its children deleted previously.
11 * varobj.c (delete_variable_1): Don't recurse
12 into deleted children.
14 -= END original header =-
15 diff -durN gdb-6.7.1.orig/gdb/varobj.c gdb-6.7.1/gdb/varobj.c
16 --- gdb-6.7.1.orig/gdb/varobj.c 2007-08-31 21:01:17.000000000 +0200
17 +++ gdb-6.7.1/gdb/varobj.c 2008-06-17 23:27:45.000000000 +0200
19 for (i = 0; i < VEC_length (varobj_p, var->children); ++i)
21 varobj_p child = VEC_index (varobj_p, var->children, i);
24 if (!remove_from_parent_p)
26 delete_variable_1 (resultp, delcountp, child, 0, only_children_p);