Re: boot2 overflow when building with clang

2012-03-09 Thread John Baldwin
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.

Re: boot2 overflow when building with clang

2012-03-09 Thread Jung-uk Kim
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. Si

Re: boot2 overflow when building with clang

2012-03-08 Thread Dimitry Andric
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

Re: boot2 overflow when building with clang

2012-03-08 Thread Jung-uk Kim
On Thursday 08 March 2012 10:46 am, John Baldwin wrote: > On Wednesday, March 07, 2012 7:18:56 pm Jung-uk Kim wrote: > > On Tuesday 06 March 2012 11:51 pm, 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 b

Re: boot2 overflow when building with clang

2012-03-08 Thread John Baldwin
On Wednesday, March 07, 2012 7:18:56 pm Jung-uk Kim wrote: > On Tuesday 06 March 2012 11:51 pm, 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. > > > > ===> sys/boot/i

Re: boot2 overflow when building with clang

2012-03-08 Thread Peter Wemm
On Wed, Mar 7, 2012 at 4:18 PM, Jung-uk Kim wrote: > On Tuesday 06 March 2012 11:51 pm, 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. >> >> ===> sys/boot/i386/boot2 (a

Re: boot2 overflow when building with clang

2012-03-07 Thread Jung-uk Kim
On Tuesday 06 March 2012 11:51 pm, 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. > > ===> sys/boot/i386/boot2 (all) > objcopy -S -O binary boot1.out boot1 > dd if=/dev/zer

Re: boot2 overflow when building with clang

2012-03-07 Thread Dimitry Andric
On 2012-03-07 20:36, Derek Tattersall wrote: >>From sources csup'ed this morning, I have the same problem. > Is there a fix for folks that don't use SVN? Assuming you are using CVS, use: "cvs up -r 1.99 sys/boot/i386/boot2/boot2.c" ___ freebsd-current@fr

Re: boot2 overflow when building with clang

2012-03-07 Thread Derek Tattersall
>From sources csup'ed this morning, I have the same problem. Is there a fix for folks that don't use SVN? -- Best regards, Derek Tattersall d...@mebtel.net dlt...@yahoo.com dtatt...@gmail.com ___ freebsd-current@freebsd.org mailin

boot2 overflow when building with clang

2012-03-06 Thread Jia-Shiun Li
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. ===> sys/boot/i386/boot2 (all) objcopy -S -O binary boot1.out boot1 dd if=/dev/zero of=boot2.ldr bs=512 count=1 clang -Os -fno-guess-branch-probabili