[coreboot] Patch file for ld/fedora 8 more issues...

ron minnich rminnich at gmail.com
Wed Jan 23 02:42:29 CET 2008


It fails on ubuntu. I just did an svn up and:

nput/output = 130304/53382 = 2.441
cp coreboot_ram.nrv2b coreboot_ram.rom
echo '/*ldoptions*/' > ldscript.ld; cat ldoptions >> ldscript.ld ; for
file in  /home/rminnich/src/bios/coreboot-v2/src/arch/i386/init/ldscript.lb
/home/rminnich/src/bios/coreboot-v2/src//cpu/x86/32bit/reset32.lds
/home/rminnich/src/bios/coreboot-v2/src//southbridge/sis/sis966/id.lds
; do echo /\* $file \*/ >> ldscript.ld; cat $file >> ldscript.ld ;
done
gcc -m32  -nostdlib -nostartfiles -static -o coreboot -T ldscript.ld crt0.o
crt0.o: In function `number':
cache_as_ram_auto.c:(.rom.text+0x4f3): undefined reference to `__stack_chk_fail'
crt0.o: In function `train_DqsRcvrEn':
cache_as_ram_auto.c:(.rom.text+0x2741): undefined reference to
`__stack_chk_fail'
crt0.o: In function `sdram_set_spd_registers':
cache_as_ram_auto.c:(.rom.text+0x5156): undefined reference to
`__stack_chk_fail'
crt0.o: In function `sdram_initialize':
cache_as_ram_auto.c:(.rom.text+0x6565): undefined reference to
`__stack_chk_fail'
collect2: ld returned 1 exit status
make[1]: *** [coreboot] Error 1
make[1]: Leaving directory
`/home/rminnich/src/bios/coreboot-v2/targets/gigabyte/ga_2761gxdk/ga_2761gxdk/normal'

This is rev. 3073.

But note:
grep stack *settings */*settings
Makefile.settings:DISTRO_CFLAGS+=-fno-stack-protector
failover/Makefile.settings:DISTRO_CFLAGS+=-fno-stack-protector
fallback/Makefile.settings:DISTRO_CFLAGS+=-fno-stack-protector
normal/Makefile.settings:DISTRO_CFLAGS+=-fno-stack-protector
<oot-v2/targets/gigabyte/ga_2761gxdk/ga_2761gxdk$

So I will have to dig further.

ron




More information about the coreboot mailing list