I'm having trouble building emulation/qemu-i386 in the latest LinuxBIOSv2 snapshot on Fedora 8 (GNU ld version 2.17.50.0.18-1 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 /home/eswierk/LinuxBIOSv2-2976/src//c\ pu/x86/16bit/entry16.lds /home/eswierk/LinuxBIOSv2-2976/src//cpu/x86/32bit/entry32.lds /home/eswierk/LinuxBIOSv2-2976/src//cpu/x86/16bit/reset16.lds /home/eswierk/LinuxBIOSv2-2976\ /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.
--Ed
Quoting Ed Swierk eswierk@arastra.com:
I'm having trouble building emulation/qemu-i386 in the latest LinuxBIOSv2 snapshot on Fedora 8 (GNU ld version 2.17.50.0.18-1 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 /home/eswierk/LinuxBIOSv2-2976/src//c\ pu/x86/16bit/entry16.lds /home/eswierk/LinuxBIOSv2-2976/src//cpu/x86/32bit/entry32.lds /home/eswierk/LinuxBIOSv2-2976/src//cpu/x86/16bit/reset16.lds /home/eswierk/LinuxBIOSv2-2976\ /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.
--Ed
Ed, I was having problems building with FC7. I think it may have had to do with eithor binutils or gcc. I never ended up figuring it out and just did a fresh install choosing the "development" option and everything worked fine. Just a guess but maybe you need the binutils/gcc dev packages??
Thanks - Joe