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

McClintock Matthew-B29882
2011-11-10T19:47:51Z

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

-M