From: Wolfgang Denk <wd@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 1/2] tegra2: Always build with USE_PRIVATE_LIBGCC=yes.
Date: Thu, 05 Jan 2012 20:17:31 +0100 [thread overview]
Message-ID: <20120105191731.9CF1BB6F26@gemini.denx.de> (raw)
In-Reply-To: <CAPnjgZ2wCqF2tPWwFUdKG7y_xDeYhbFrEnqXxRJG6eU7yj9Xug@mail.gmail.com>
Dear Simon Glass,
In message <CAPnjgZ2wCqF2tPWwFUdKG7y_xDeYhbFrEnqXxRJG6eU7yj9Xug@mail.gmail.com> 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.
next prev parent reply other threads:[~2012-01-05 19:17 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-17 10:04 [U-Boot] [PATCH 0/2] tegra2: Fixes for running mainline U-Boot Thierry Reding
2011-11-17 10:04 ` [U-Boot] [PATCH 1/2] tegra2: Always build with USE_PRIVATE_LIBGCC=yes Thierry Reding
2011-11-17 23:08 ` Simon Glass
2012-01-05 15:50 ` Wolfgang Denk
2012-01-05 16:53 ` Stephen Warren
2012-01-05 17:07 ` Simon Glass
2012-01-05 17:17 ` Tom Warren
2012-01-05 19:17 ` Wolfgang Denk [this message]
2012-01-05 19:16 ` Wolfgang Denk
2012-01-05 19:40 ` Stephen Warren
2012-01-05 20:17 ` Wolfgang Denk
2012-01-05 20:42 ` Simon Glass
2012-01-05 20:53 ` Stephen Warren
2012-01-05 23:20 ` Wolfgang Denk
2011-11-17 10:04 ` [U-Boot] [PATCH 2/2] tegra2: Change CONFIG_SYS_TEXT_BASE to 0x00108000 Thierry Reding
2011-11-21 22:37 ` Simon Glass
2011-11-17 18:08 ` [U-Boot] [PATCH 0/2] tegra2: Fixes for running mainline U-Boot Stephen Warren
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20120105191731.9CF1BB6F26@gemini.denx.de \
--to=wd@denx.de \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox