From: Wolfgang Denk Date: Thu, 05 Jan 2012 20:17:31 +0100 Subject: [U-Boot] [PATCH 1/2] tegra2: Always build with USE_PRIVATE_LIBGCC=yes. In-Reply-To: References: <1321524246-5187-1-git-send-email-thierry.reding@avionic-design.de> <1321524246-5187-2-git-send-email-thierry.reding@avionic-design.de> <20120105155033.52FFC1FC941@gemini.denx.de> <4F05D596.6030900@nvidia.com> Message-ID: <20120105191731.9CF1BB6F26@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 Simon Glass, In message you wrote: > > > The libraries included in the toolchain are built for the ARMv7 CPUs, > > and hence fail to operate correctly when used by the portion of U-Boot > > which runs on the ARMv4 CPU, presumably due to ISA differences. IIRC, > > there are overrides in the U-Boot build process such that some/all of > > U-Boot is built so it'll run on ARMv4 OK, which is why using libgcc > > built by U-Boot solves this. > > Yes that's right, but actually I have never delved into exactly why. > Perhaps it is an integer divide or internal memcpy() call early in the > code. We might be able to find the offending C library code, given > enough time, and perhaps arrange not to call it. A little fragile > though. That would be the totally wrong approach. Problems should be solved where they originate. Here this appears to be the tool chain, which does not provide a version of libgcc suitable for amv4t configurations. 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 All men should freely use those seven words which have the power to make any marriage run smoothly: You know dear, you may be right.