Skip to contentSkip to conversation

Cross compilation fix (2.5)

Linux-ia64 Peter Chubb 1 participant 1 message Apr 17, 2003

lore
Share & tools
lore
#0 lore raw

To cross-compile Linux 2.5, you need this small patch, otherwise the native objdump is used instead of one that understands elf-ia64 images.

=== arch/ia64/scripts/check-gas 1.1 vs edited ==--- 1.1/arch/ia64/scripts/check-gas Sat Jan 25 14:45:37 2003
+++ edited/arch/ia64/scripts/check-gas Fri Apr 11 13:59:11 2003
@@ -2,7 +2,7 @@
dir=$(dirname $0)
CC=$1
$CC -c $dir/check-gas-asm.S
-res=$(objdump -r --section .data check-gas-asm.o | fgrep 00004 | tr -s ' ' |cut -f3 -d' ') +res=$(${CROSS_COMPILE}objdump -r --section .data check-gas-asm.o | fgrep 00004 | tr -s ' ' |cut -f3 -d' ')
if [ $res != ".text" ]; then
echo buggy
else