From mboxrd@z Thu Jan 1 00:00:00 1970 From: Scott Wood Date: Fri, 11 Nov 2011 14:12:18 -0600 Subject: [U-Boot] ppc -Os and _restgpr_##_x errors In-Reply-To: References: <201111092310.56181.vapier@gentoo.org> Message-ID: <4EBD81A2.7000402@freescale.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 11/10/2011 01:47 PM, McClintock Matthew-B29882 wrote: > On Wed, Nov 9, 2011 at 10:10 PM, Mike Frysinger 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