From: Wolfgang Denk Date: Thu, 10 Nov 2011 06:32:45 +0100 Subject: [U-Boot] ppc -Os and _restgpr_##_x errors In-Reply-To: <201111092310.56181.vapier@gentoo.org> References: <201111092310.56181.vapier@gentoo.org> Message-ID: <20111110053245.20C90189301C@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Mike Frysinger, In message <201111092310.56181.vapier@gentoo.org> you 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 ? No, we should not. You should switch to a compiler version where this problem has been fixed. See second entry at http://www.denx.de/wiki/U-Boot/GccBugsAndIssues Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de He is truly wise who gains wisdom from another's mishap.