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. Since it

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. Since

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 j...@freebsd.org 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. ===

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/i386/boot2

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 by clang.

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 use

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

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 ___

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/zero