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

Kumar Gala galak at kernel.crashing.org
Fri May 2 23:28:05 EST 2008


On May 2, 2008, at 6:54 AM, Segher Boessenkool 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.
>>
>> To workaround this issue, we just stole the save/restore code from  
>> gcc
>> and simplified it down for our needs (integer only).
>
> Why can't we link with libgcc, instead?

we possibly could, the problem is knowing the path of libgcc to link  
with.  This seemed easier to me than the makefile headaches to ensure  
that we get that right.

- k



More information about the Linuxppc-dev mailing list