Skip to contentSkip to conversation

arch/powerpc/boot/coff.o

PATCH New Olaf Hering 2 participants 2 messages May 25, 2007 – May 30, 2007 PowerPC

lore
Share & tools
lore
#0 lore raw

Does anyone happen to know where the arch/powerpc/boot/coff.o is supposed to come from? Current Linus tree fails since a while with the following commands.

tar xfz /mounts/mirror/kernel/v2.6/testing/linux-2.6.22-rc2.tar.gz cd linux-2.6.22-rc2/
mkdir ../O
cp arch/powerpc/configs/pmac32_defconfig ../O/.config make -kj42 O=../O menuconfig
make -kj42 O=../O

WRAP arch/powerpc/boot/zImage.coff
ld: arch/powerpc/boot/coff.o: No such file: No such file or directory
nm: 'arch/powerpc/boot/zImage.coff': No such file
objdump: 'arch/powerpc/boot/zImage.coff': No such file

#1 lore raw

PATCH 1/1 fix zImage.coff generation for pmac

Commit 9da82a6dee9db4cd5ae7a74ab4f51afb52b6efb9 inadvertently removed the platform override for zImage.coff to be generated
with pmaccoff. Rather than add a special makefile rule,
change the platform for which the wrapper platform uses the special rules.

---
Untested, and hopefully not too whitespace damaged. Against upstream after 2.6.22-rc3.

We could look for both coff and pmaccoff if someone has an external script calling wrapper with platform pmaccoff (change to coff|pmaccoff).

Quoted 11 lines · Olof Hering

Does anyone happen to know where the arch/powerpc/boot/coff.o is supposed to come from? Current Linus tree fails since a while with the following commands.

tar xfz /mounts/mirror/kernel/v2.6/testing/linux-2.6.22-rc2.tar.gz cd linux-2.6.22-rc2/
mkdir ../O
cp arch/powerpc/configs/pmac32_defconfig ../O/.config make -kj42 O=../O menuconfig
make -kj42 O=../O

Quoted 4 lines

WRAP arch/powerpc/boot/zImage.coff
ld: arch/powerpc/boot/coff.o: No such file: No such file or directory
nm: 'arch/powerpc/boot/zImage.coff': No such file
objdump: 'arch/powerpc/boot/zImage.coff': No such file

arch/powerpc/boot/wrapper +2 -2
index 5cedd90..b28161c 100755
@@ -129,7 +129,7 @@ case "$platform" in
 pmac|pseries|chrp)
     platformo=$object/of.o
     ;;
-pmaccoff)
+coff)
     platformo=$object/of.o
     lds=$object/zImage.coff.lds
     ;;
@@ -217,7 +217,7 @@ case "$platform" in
 pseries|chrp)
     $object/addnote "$ofile"
     ;;
-pmaccoff)
+coff)
     entry=`objdump -f "$ofile" | grep '^start address ' | \
 	cut -d' ' -f3`
     ${CROSS}objcopy -O aixcoff-rs6000 --set-start "$entry" "$ofile"