[LinuxBIOS] Link error on Fedora 8

Ed Swierk eswierk at arastra.com
Wed Nov 21 02:09:02 CET 2007

I'm having trouble building emulation/qemu-i386 in the latest
LinuxBIOSv2 snapshot on Fedora 8 (GNU ld version
20070731, gcc version 4.1.2 20070925 (Red Hat 4.1.2-33).

First, ld segfaults unless I apply the attached patch. That one was
fun to figure out :-)

Now, ld is unable to find a home for the ".id" section:

echo '/*ldoptions*/' > ldscript.ld; cat ldoptions >> ldscript.ld ; for
file in  /home/eswierk/LinuxBIOSv2-2976/src/arch/i386/init/ldscript.lb
/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 2
/usr/bin/ld: final link failed: Bad value
collect2: ld returned 1 exit status

Any clues about this one? The ldscript.ld is attached.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: linuxbios-ld-build-id.patch
Type: application/octet-stream
Size: 553 bytes
Desc: not available
URL: <http://www.coreboot.org/pipermail/coreboot/attachments/20071120/a343a923/attachment.obj>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ldscript.ld
URL: <http://www.coreboot.org/pipermail/coreboot/attachments/20071120/a343a923/attachment.ksh>

More information about the coreboot mailing list