From: Stephen Warren <swarren@nvidia.com>
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 13:53:37 -0700 [thread overview]
Message-ID: <4F060DD1.9050907@nvidia.com> (raw)
In-Reply-To: <CAPnjgZ3kbX7tKJ0h2bdmBB4hxSG1USZ5f0uO9o7Jwi18ZuwXuw@mail.gmail.com>
On 01/05/2012 01:42 PM, Simon Glass wrote:
> Hi,
>
> On Thu, Jan 5, 2012 at 12:17 PM, Wolfgang Denk <wd@denx.de> wrote:
>> Dear Stephen Warren,
>>
>> In message <4F05FCBD.2040207@nvidia.com> you wrote:
>>>
>>>> No, this is NOT a solution, it is a workaround for an inappropriate
>>>> toolchain. If you want to build code for an armv4t system, you must
>>>> use a tool chain that supports it.
>>>
>>> But we don't want to generate code for ARMv4 in general, but rather
>>
>> Then just turn on the ARMv4 specific options (-march=armv4t -mno-thumb
>> -mthumb-interwork -mtune=arm920t ???) for the files that need it.
That's exactly what we've already done, but that doesn't affect code
that gets pulled in from libgcc, which is what USE_PRIVATE_LIBGCC
affects IIUC.
>> But as soon as any of these files liks code from libgcc you have to
>> decide.
>
> Perhaps we could adjust Tegra's config.mk to use ARMv4T when not
> building with the private libgcc?
I believe the relevant U-Boot source files are already built for ARMv4T,
it's just libgcc that's the issue.
>>> ARMv7 as the toolchain does. Only a tiny part of the code needs to be
>>> built for ARMv4, and in general we want to benefit from using ARMv7.
>>
>> Then you should probably still link against a ARMv4 specific libgcc.
>>
>> If you were building U-Boot's libgcc code with optimization set for
>> ARMv7 this would not fix anything.
>
> It might be possible to specify ARMv4T on the link flags and have it
> pick up the v4T library, even if nearly everything else is ARMv7?
I don't think we use any multilib toolchains, so I don't think that's
possible.
--
nvpublic
next prev parent reply other threads:[~2012-01-05 20:53 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
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 [this message]
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=4F060DD1.9050907@nvidia.com \
--to=swarren@nvidia.com \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.