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 (C) 2007 Yann E. MORIN <yann.morin.1998@anciens.enib.fr>
4 Shut off a stupid warning: preffered-stack-boundary must be between 4 ad 12,
7 diff -dur glibc-2.5.orig/sysdeps/i386/Makefile glibc-2.5/sysdeps/i386/Makefile
8 --- glibc-2.5.orig/sysdeps/i386/Makefile 2005-03-06 01:18:16.000000000 +0100
9 +++ glibc-2.5/sysdeps/i386/Makefile 2007-05-27 17:49:37.000000000 +0200
12 sysdep-CFLAGS += -mpreferred-stack-boundary=4
14 -sysdep-CFLAGS += -mpreferred-stack-boundary=2
15 +sysdep-CFLAGS += -mpreferred-stack-boundary=4
16 # Likewise, any function which calls user callbacks
17 uses-callbacks += -mpreferred-stack-boundary=4
18 # Likewise, any stack alignment tests