Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 Apr 2014 09:31:19 -0700
From:      Sean Bruno <sbruno@ignoranthack.me>
To:        Ryan Stone <rysto32@gmail.com>
Cc:        FreeBSD Current <freebsd-current@freebsd.org>
Subject:   Re: boot2 too large when built with BTX_SERIAL=yes
Message-ID:  <1398702679.3200.0.camel@powernoodle.corp.yahoo.com>
In-Reply-To: <CAFMmRNzHr3A9ZdhKfY9z4TLxwhpjLwed1a=AaGb=zzhkaLTB%2Bw@mail.gmail.com>
References:  <CAFMmRNzHr3A9ZdhKfY9z4TLxwhpjLwed1a=AaGb=zzhkaLTB%2Bw@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--=-wnQOTG84dPmXe4Yuawmj
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

On Sat, 2014-04-26 at 21:15 -0400, Ryan Stone wrote:
> I've been seeing the following build failure on HEAD when I set
> BTX_SERIAL=3Dyes in make.conf
>=20
> btxld -v -E 0x2000 -f bin -b
> /usr/obj/repos/users/rstone/freebsd/sys/boot/i386/boot2/../btx/btx/btx
> -l boot2.ldr  -o boot2.ld -P 1 boot2.bin
> kernel: ver=3D1.02 size=3D6c0 load=3D9000 entry=3D9010 map=3D16M pgctl=3D=
1:1
> client: fmt=3Dbin size=3D1551 text=3D0 data=3D0 bss=3D0 entry=3D0
> output: fmt=3Dbin size=3D1e11 text=3D200 data=3D1c11 org=3D0 entry=3D0
> --- boot2 ---
> --- rescue.all__D ---
> --- init_make ---
> (cd /repos/users/rstone/freebsd/rescue/rescue/../../sbin/init &&  make
> -DRESCUE CRUNCH_CFLAGS=3D-DRESCUE DIRPRFX=3Drescue/rescue/init/ depend &&
> make -DRESCUE CRUNCH_CFLAGS=3D-DRESCUE DIRPRFX=3Drescue/rescue/init/
> init.o)
> --- sys.all__D ---
> -17 bytes available


confirmed, and gross:
sed -e '/align/d' -e '/nop/d' < boot2.s.tmp > boot2.s
rm -f boot2.s.tmp
cc  -m32 -c boot2.s
cc -Os  -fomit-frame-pointer  -mrtd  -mregparm=3D3  -DUSE_XREAD
-DUFS1_AND_UFS2  -DFLAGS=3D0x80  -DSIOPRT=3D0x3f8  -DSIOFMT=3D0x3
-DSIOSPD=3D115200
-I/home/sbruno/bsd/head/sys/boot/i386/boot2/../../common
-I/home/sbruno/bsd/head/sys/boot/i386/boot2/../btx/lib -I.  -Wall
-Waggregate-return -Wbad-function-cast -Wcast-align
-Wmissing-declarations -Wmissing-prototypes -Wnested-externs
-Wpointer-arith -Wshadow -Wstrict-prototypes -Wwrite-strings  -Winline
-mstack-alignment=3D8 -mllvm -inline-threshold=3D3 -mllvm
-enable-load-pre=3Dfalse -mllvm -simplifycfg-dup-ret -march=3Di386
-ffreestanding -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3
-msoft-float -m32 -std=3Dgnu99 -Qunused-arguments      -m32
-c /home/sbruno/bsd/head/sys/boot/i386/boot2/sio.S
ld -static -N --gc-sections -m elf_i386_fbsd -Ttext 0x2000 -o
boot2.out /var/tmp/home/sbruno/bsd/head/sys/boot/i386/boot2/../btx/lib/crt0=
.o boot2.o sio.o
objcopy -S -O binary boot2.out boot2.bin
btxld -v -E 0x2000 -f bin
-b /var/tmp/home/sbruno/bsd/head/sys/boot/i386/boot2/../btx/btx/btx -l
boot2.ldr  -o boot2.ld -P 1 boot2.bin
kernel: ver=3D1.02 size=3D6c0 load=3D9000 entry=3D9010 map=3D16M pgctl=3D1:=
1
client: fmt=3Dbin size=3D1551 text=3D0 data=3D0 bss=3D0 entry=3D0
output: fmt=3Dbin size=3D1e11 text=3D200 data=3D1c11 org=3D0 entry=3D0
-17 bytes available
*** Error code 1

Stop.
make[2]: stopped in /home/sbruno/bsd/head/sys/boot/i386/boot2
*** Error code 1

Stop.
make[1]: stopped in /home/sbruno/bsd/head/sys/boot/i386
*** Error code 1

Stop.
make: stopped in /home/sbruno/bsd/head/sys/boot



--=-wnQOTG84dPmXe4Yuawmj
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQEcBAABAgAGBQJTXoJPAAoJEBkJRdwI6BaHejgH/i2FaIlAQOYN+nejnhKiihJk
dIkkUbkMrelRi1eA4c7tg2EHO/GjKvcilbcRnBnSAOyMq7LBlyYPCtyblMaC0T72
KNJQVcsMls6GbgC/evpBawXAWcWCM/6VQnPYd31rNuHtdRifG+yntTMwpqGQ8OCG
a8D1o+2T+5mmObyhROsHWTGURZvWINUIHyUTvoXlgxh6/wVit0HGolsxrczpykOJ
6SzybD1g/rVEAkQm1n3BHpRWZbdD0QEzLeXaOSgghLY6h87CAYH/04GYKI7X8YAj
XR5EwhZhV5C7A8wdi8Fnb+jA1k8EDJ+UpITZAL4L6pvRlSTm/9pZ+7ljO2W+nAs=
=c0PE
-----END PGP SIGNATURE-----

--=-wnQOTG84dPmXe4Yuawmj--




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