Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 08 Nov 1999 15:10:08 +0900
From:      "Daniel C. Sobral" <dcs@newsguy.com>
To:        Gary Jennejohn <garyj@muc.de>
Cc:        freebsd-current@FreeBSD.ORG, Mike Smith <mike@smith.net.au>, Robert Nordier <rnordier@nordier.com>, obrien@freebsd.org
Subject:   Re: show stopper for Gcc 2.95.2 conversion
Message-ID:  <38266940.FC115D61@newsguy.com>
References:  <199911072004.VAA01702@peedub.muc.de>

next in thread | previous in thread | raw e-mail | index | archive | help
Gary Jennejohn wrote:
> 
> >Mmmm... O'Brien, could you make sure the space-critical code in
> >sys/boot compiles ok?
> 
> I still have GCC 2.95.2 installed. This is what I get in /sys/boot:
> 
> ===> i386/boot2
> (cd /usr/src/sys/boot/i386/boot2; m4 -DFLAGS=0 boot1.m4 boot1.s) |  as  -o boot1.o
> ld -nostdlib -static -N -e start -Ttext 0x7c00 -o boot1.out boot1.o
> objcopy -S -O binary boot1.out boot1
> dd if=/dev/zero of=boot2.ldr bs=512 count=1 2>/dev/null
> cc -elf -I/usr/src/sys/boot/i386/boot2/../btx/lib -I. -fno-builtin  -Os -malign-functions=0 -malign-jumps=0 -malign-loops=0 -mrtd
> -Wall -Waggregate-return -Wbad-function-cast -Wcast-align  -Wmissing-declarations -Wmissing-prototypes -Wnested-externs
> -Wpointer-arith -Wshadow -Wstrict-prototypes -Wwrite-strings   -c boot2.c
> (cd /usr/src/sys/boot/i386/boot2; m4 -DSIOPRT=0x3f8  -DSIOFMT=0x3  -DSIOSPD=9600 sio.s) |  as  -o sio.o
> ld -nostdlib -static -N -Ttext 0x1000 -o boot2.out  /usr/src/sys/boot/i386/boot2/../btx/lib/crt0.o boot2.o sio.o
> objcopy -S -O binary boot2.out boot2.bin
> btxld -v -E 0x1000 -f bin -b /usr/src/sys/boot/i386/boot2/../btx/btx/btx -l boot2.ldr  -o boot2.ld -P 1 boot2.bin
> kernel: ver=1.01 size=700 load=9000 entry=9010 map=16M pgctl=1:1
> client: fmt=bin size=15c0 text=0 data=0 bss=0 entry=0
> output: fmt=bin size=1ec0 text=200 data=1cc0 org=0 entry=0
> -192 bytes available
> ^^^^^^^^^^^^^^^^^^^^

Well, the flags seem correct (in particular -Os). It would be
interesting to see what's the difference in the assembler code
generated by both. Unfortunately, I cannot upgrade my system for the
time being.

--
Daniel C. Sobral			(8-DCS)
dcs@newsguy.com
dcs@freebsd.org

	What y'all wanna do?
	Wanna be hackers? Code crackers? Slackers
	Wastin' time with all the chatroom yakkers?



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?38266940.FC115D61>