Re: boot2 overflow when building with clang

看板FB_current作者時間14年前 (2012/03/10 03:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串8/9 (看更多)
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 _______________________________________________ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
文章代碼(AID): #1FMbDkFY (FB_current)
討論串 (同標題文章)
文章代碼(AID): #1FMbDkFY (FB_current)