From owner-freebsd-current@FreeBSD.ORG Fri Mar 9 18:31:33 2012 Return-Path: Delivered-To: freebsd-current@FreeBSD.org Received: from [127.0.0.1] (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by hub.freebsd.org (Postfix) with ESMTP id 3FCC71065680; Fri, 9 Mar 2012 18:31:33 +0000 (UTC) (envelope-from jkim@FreeBSD.org) From: Jung-uk Kim To: freebsd-current@FreeBSD.org Date: Fri, 9 Mar 2012 13:31:19 -0500 User-Agent: KMail/1.6.2 References: <4F594BF4.9060802@FreeBSD.org> In-Reply-To: <4F594BF4.9060802@FreeBSD.org> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201203091331.22124.jkim@FreeBSD.org> Cc: Dimitry Andric , Jia-Shiun Li Subject: Re: boot2 overflow when building with clang X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Mar 2012 18:31:33 -0000 On Thursday 08 March 2012 07:16 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. :) As jhb pointed out, it does not work because BSS for boot2 is not automatically cleared. I fixed this in my branch: http://svn.freebsd.org/changeset/base/232736 http://svn.freebsd.org/changeset/base/232737 Jung-uk Kim