Have the glibc build use the cross-objdump, rather than the host one.
On some distros (eg. Fedora), the native objdump can not interpret objects not for the native system, and thus fail.
This commit adds a new patch against glibc-2.7 that introduces OBJDUMP_FOR_HOST, wich, if set, overides the detected objdump.
Note: bizarely enough, glibc already has code to detect the cross-objdump, but that does not work for an unknown reason... :-(
/trunk/patches/glibc/2.7/220-objdump_for_host.patch | 13 13 0 0 +++++++++
/trunk/scripts/build/libc_glibc.sh | 37 21 16 0 +++++++++++++++------------
2 files changed, 34 insertions(+), 16 deletions(-)
1 Original patch from gentoo: gentoo/src/patchsets/gcc/4.3.0/gentoo/74_all_sh-pr24836.patch
2 http://sourceforge.net/mailarchive/forum.php?thread_id=8959304&forum_id=5348
3 http://gcc.gnu.org/PR24836
5 diff -durN gcc-4.3.0.orig/gcc/configure gcc-4.3.0/gcc/configure
6 --- gcc-4.3.0.orig/gcc/configure 2008-06-10 14:44:21.000000000 +0200
7 +++ gcc-4.3.0/gcc/configure 2008-06-10 14:45:24.000000000 +0200
8 @@ -14700,7 +14700,7 @@
10 tls_as_opt="-m64 -Aesame --fatal-warnings"
12 - sh-*-* | sh[34]-*-*)
13 + sh-*-* | sh[34]*-*-*)
15 .section ".tdata","awT",@progbits
17 diff -durN gcc-4.3.0.orig/gcc/configure.ac gcc-4.3.0/gcc/configure.ac
18 --- gcc-4.3.0.orig/gcc/configure.ac 2008-06-10 14:44:21.000000000 +0200
19 +++ gcc-4.3.0/gcc/configure.ac 2008-06-10 14:45:24.000000000 +0200
22 tls_as_opt="-m64 -Aesame --fatal-warnings"
24 - sh-*-* | sh[34]-*-*)
25 + sh-*-* | sh[34]*-*-*)
27 .section ".tdata","awT",@progbits