[PATCH] [POWERPC] Fix bootwrapper builds with newer gcc versions

Josh Boyer jwboyer at linux.vnet.ibm.com
Fri May 2 23:53:04 EST 2008


On Fri, 2 May 2008 08:32:12 -0500
Kumar Gala <galak at kernel.crashing.org> wrote:

> 
> On May 2, 2008, at 7:13 AM, Josh Boyer wrote:
> 
> > On Fri, 2008-05-02 at 03:11 -0500, Kumar Gala wrote:
> >> GCC 4.4.x looks to be adding support for generating out-of-line  
> >> register
> >> saves/restores based on:
> >>
> >> http://gcc.gnu.org/ml/gcc-patches/2008-04/msg01678.html
> >>
> >> This breaks the bootwrapper as we'd need to link with libgcc to get  
> >> the
> >> implementation of the register save/restores.
> >
> > We don't link with libgcc anywhere in the kernel.  Is this going to  
> > have
> > similar impacts for building the vmlinux itself?
> 
> Not by default.  The issue only shows up with -Os.  Not sure if we can  
> build the kernel that way.

We can.  See CONFIG_CC_OPTIMIZE_FOR_SIZE.  That's set in at least
pseries_defconfig and ps3_defconfig.  It's also something I've been
thinking about trying with 4xx.

Seems we need a bit more than just the bootwrapper.

josh



More information about the Linuxppc-dev mailing list