[U-Boot] ppc -Os and _restgpr_##_x errors

Scott Wood
2011-11-11T20:12:18Z

On 11/10/2011 01:47 PM, McClintock Matthew-B29882 wrote:
> On Wed, Nov 9, 2011 at 10:10 PM, Mike Frysinger <vapier@gentoo.org> wrote:
>> am i the only one seeing errors like:
>> board/esd/cpciiser4/libcpciiser4.o: In function `board_early_init_f':
>> board/esd/cpciiser4/cpciiser4.c:139: undefined reference to `_restgpr_26_x'
>>
>> i'm using a gcc-4.5.x toolchain here. should we import crtsavres.S from Linux
>> to fix this ?
>
> Some projects fix this manually. For example kexec adds this:
>
> https://github.com/horms/kexec-tools/blob/master/purgatory/arch/ppc/misc.S
>
> Not that this is a good approach....

Shouldn't libgcc provide this?

-Scott