with gcc3 buildworld fails in sys/boot/i386/boot2

Peter Kadau peter.kadau at tuebingen.mpg.de
Sat Apr 10 04:42:02 PDT 2004


Hi !

Subject says it.
I use CCVER=gcc3 in make.conf.
The last relevant lines of builworld read:
[Cut: Wrapped and reindented]
rm -f boot2.s.tmp
as  -o boot2.o boot2.s
as  --defsym SIOPRT=0x3f8  --defsym SIOFMT=0x3  --defsym SIOSPD=9600
  /usr/src/sys/boot/i386/boot2/sio.s -o sio.o
ld -nostdlib -static -N --gc-sections -Ttext 0x2000 -o boot2.out
  /usr/obj/usr/src/world_i386/usr/src/sys/boot/i386/boot2/../btx/lib/crt0.o
  boot2.o sio.o
boot2.o(.text+0x28): In function `lookup':
: undefined reference to `__guard'
boot2.o(.text+0x18f): In function `lookup':
: undefined reference to `__guard'
boot2.o(.text+0x1a2): In function `lookup':
: undefined reference to `__stack_smash_handler'
boot2.o(.text+0x857): In function `load':
: undefined reference to `__guard'
boot2.o(.text+0xb9c): In function `load':
: undefined reference to `__guard'
boot2.o(.text+0xbaf): In function `load':
: undefined reference to `__stack_smash_handler'
boot2.o(.text+0xff4): In function `printf':
: undefined reference to `__guard'
boot2.o(.text+0x10a3): In function `printf':
: undefined reference to `__guard'
boot2.o(.text+0x10b3): In function `printf':
: undefined reference to `__stack_smash_handler'
*** Error code 1
Stop in /usr/src/sys/boot/i386/boot2.
*** Error code 1
[Cut]
Seems like it is trying to use the stack-protector.
The relevant commit - AFAICT - is rev 1.9 of gnu/usr.bin/cc3/Makefile.inc.
I'd say that the protector should be there by default, so I wouldn't
revert this.
Any ideas how to avoid this in the bootcode build ?

Cheers
Peter
--
<peter.kadau at xxxxxxxxxxxxxxxx>
Campus der Max-Planck-Institute Tübingen
Netzwerk- und Systemadministration
Tel: +49 7071 601 598
Fax: +49 7071 601 616




More information about the Bugs mailing list