[coreboot] [LinuxBIOS] Qemu compile for LinuxBIOSV2
Myles Watson
myles at pel.cs.byu.edu
Fri Feb 1 01:00:18 CET 2008
I know this should tell me something more than it does, but I'm hoping
it helps someone else.
Building v3 and v2 for Qemu fails for me on FC6 with binutils updated
to 2.18.50, but succeeds on FC6-64-bit with the same binutils built
from source.
The error messages are similar
Since they're both targeting the same architecture, that struck me as strange.
Any suggestions?
Thanks,
Myles
v2's failure:
echo '/*ldoptions*/' > ldscript.ld; cat ldoptions >> ldscript.ld ; for
file in /home/myles/test/buildrom/buildrom-devel/work/coreboot/svn/src/arch/i386/init/ldscript.lb
/home/myles/test/buildrom/buildrom-devel/work/coreboot/svn/src//cpu/x86/16bit/entry16.lds
/home/myles/test/buildrom/buildrom-devel/work/coreboot/svn/src//cpu/x86/32bit/entry32.lds
/home/myles/test/buildrom/buildrom-devel/work/coreboot/svn/src//cpu/x86/16bit/reset16.lds
/home/myles/test/buildrom/buildrom-devel/work/coreboot/svn/src//arch/i386/lib/id.lds
; do echo /\* $file \*/ >> ldscript.ld; cat $file >> ldscript.ld ;
done
gcc -m32 -nostdlib -nostartfiles -static -o linuxbios -T ldscript.ld crt0.o
/usr/bin/ld: linuxbios: section `.id' can't be allocated in segment 1
LOAD: .id .reset
/usr/bin/ld: final link failed: Bad value
collect2: ld returned 1 exit status
make[2]: *** [linuxbios] Error 1
make[2]: Leaving directory
`/home/myles/test/buildrom/buildrom-devel/work/coreboot/svn/targets/emulation/qemu-i386/qemu-i386/image'
make[1]: *** [image/linuxbios.rom] Error 1
make[1]: Leaving directory
`/home/myles/test/buildrom/buildrom-devel/work/coreboot/svn/targets/emulation/qemu-i386/qemu-i386'
v3's failure:
make[1]: Entering directory
`/home/myles/test/buildrom/buildrom-devel/work/coreboot-v3/svn'
CP build/config.h
GEN build/build.h
CC build/stage0.init
/usr/bin/ld: /home/myles/test/buildrom/buildrom-devel/work/coreboot-v3/svn/build/stage0.o:
section `.stage0_1' can't be allocated in segment 0
LOAD: .stage0_1 .resetvector
/usr/bin/ld: final link failed: Bad value
collect2: ld returned 1 exit status
make[1]: *** [/home/myles/test/buildrom/buildrom-devel/work/coreboot-v3/svn/build/stage0.init]
Error 1
make[1]: Leaving directory
`/home/myles/test/buildrom/buildrom-devel/work/coreboot-v3/svn'
More information about the coreboot
mailing list