From owner-freebsd-current@FreeBSD.ORG Mon Apr 28 16:31:22 2014 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 15FA6791 for ; Mon, 28 Apr 2014 16:31:22 +0000 (UTC) Received: from mail.ignoranthack.me (ujvl.x.rootbsd.net [199.102.79.106]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id D1DA612C7 for ; Mon, 28 Apr 2014 16:31:21 +0000 (UTC) Received: from [10.73.214.37] (nat-dip32-wl-f.cfw-a-gci.corp.yahoo.com [66.228.162.52]) (using SSLv3 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: sbruno@ignoranthack.me) by mail.ignoranthack.me (Postfix) with ESMTPSA id A2CD01928E4; Mon, 28 Apr 2014 16:31:20 +0000 (UTC) Subject: Re: boot2 too large when built with BTX_SERIAL=yes From: Sean Bruno To: Ryan Stone In-Reply-To: References: Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-wnQOTG84dPmXe4Yuawmj" Date: Mon, 28 Apr 2014 09:31:19 -0700 Message-ID: <1398702679.3200.0.camel@powernoodle.corp.yahoo.com> Mime-Version: 1.0 X-Mailer: Evolution 2.32.1 FreeBSD GNOME Team Port Cc: FreeBSD Current X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list Reply-To: sbruno@freebsd.org List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Apr 2014 16:31:22 -0000 --=-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--