Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 9 Mar 2012 10:13:23 -0500
From:      John Baldwin <jhb@freebsd.org>
To:        Dimitry Andric <dim@freebsd.org>
Cc:        freebsd-current@freebsd.org, Jung-uk Kim <jkim@freebsd.org>, Jia-Shiun Li <jiashiun@gmail.com>
Subject:   Re: boot2 overflow when building with clang
Message-ID:  <201203091013.24174.jhb@freebsd.org>
In-Reply-To: <4F594BF4.9060802@FreeBSD.org>
References:  <CAHNYxxM%2BJSVZZG9KGRa%2BVAEj2yzkHTFv%2BtBZioXJ9G-3L2vUUQ@mail.gmail.com> <4F594BF4.9060802@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thursday, March 08, 2012 7:16:52 pm Dimitry Andric wrote:
> On 2012-03-07 05:51, Jia-Shiun Li wrote:
> > I am not familiar with boot2, but it looks like allocated size for
> > boot2 is not enough to hold code generated by clang. Reverting r232570
> > fixes it.
> 
> Please test the attached diff.  Since it modifies bsd.sys.mk, either run
> "make install" in share/mk, or use "make buildenv" before rebuilding
> sys/boot/i386/boot2.
> 
> It would also be nice if you could test the actual installation of the
> bootstrap, and its proper operation.  However, be sure to have some way
> of recovering the first 16 sectors of your disk before you do so. :)

The changes to boot2.c are all bugs unfortunately.  boot2's bss is not zero'd.


-- 
John Baldwin



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