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 About ten times, various people have noticed that 'make dep' uses
2 really, really long commandlines. This breaks sh even on linux sometimes.
5 http://marc.theaimsgroup.com/?l=linux-kernel&m=96589814004919&w=2
6 http://marc.theaimsgroup.com/?l=linux-kernel&m=96589814004919&q=p3
7 http://www.xraylith.wisc.edu/~khan/software/gnu-win32/cygwin-to-linux-cross-howto.txt
8 http://www.uclinux.org/pub/uClinux/archive/1728.html
10 Fixes error when building linux kernel for some default arm configurations:
12 scripts/mkdep -- `find /home/dank/wk/crosstool-0.28-rc36/build/arm-unknown-linux-gnu/gcc-3.3.4-glibc-2.3.2/linux-2.4.26/include/asm /home/dank/wk/crosstool-0.28-rc36/build/arm-unknown-linux-gnu/gcc-3.3.4-glibc-2.3.2/linux-2.4.26/include/linux /home/dank/wk/crosstool-0.28-rc36/build/arm-unknown-linux-gnu/gcc-3.3.4-glibc-2.3.2/linux-2.4.26/include/scsi /home/dank/wk/crosstool-0.28-rc36/build/arm-unknown-linux-gnu/gcc-3.3.4-glibc-2.3.2/linux-2.4.26/include/net /home/dank/wk/crosstool-0.28-rc36/build/arm-unknown-linux-gnu/gcc-3.3.4-glibc-2.3.2/linux-2.4.26/include/math-emu \( -name SCCS -o -name .svn \) -prune -o -follow -name \*.h ! -name modversions.h -print` > .hdepend
13 /bin/sh: line 1: scripts/mkdep: Argument list too long
14 make: *** [dep-files] Error 126
18 --- linux-2.4.26/Makefile.old 2004-04-14 06:05:41.000000000 -0700
19 +++ linux-2.4.26/Makefile 2004-09-13 21:27:39.000000000 -0700
21 ifdef CONFIG_MODVERSIONS
22 $(MAKE) update-modverfile
24 - scripts/mkdep -- `find $(FINDHPATH) \( -name SCCS -o -name .svn \) -prune -o -follow -name \*.h ! -name modversions.h -print` > .hdepend
25 + find $(FINDHPATH) \( -name SCCS -o -name .svn \) -prune -o -follow -name \*.h ! -name modversions.h -print | xargs scripts/mkdep | cat > .hdepend
26 scripts/mkdep -- init/*.c > .depend
28 ifdef CONFIG_MODVERSIONS