All of lore.kernel.org
 help / color / mirror / Atom feed
From: Will Wagner <will_wagner@carallon.com>
To: buildroot@busybox.net
Subject: [Buildroot] problem with external toolchain with hard float
Date: Mon, 10 Jun 2013 15:08:05 +0100	[thread overview]
Message-ID: <51B5DDC5.1000709@carallon.com> (raw)
In-Reply-To: <51ADA9AA.4060506@carallon.com>

On 04/06/2013 09:47, Will Wagner wrote:
> Hello All,
>
> I'm trying to update a project to 2013.05. I have an external toolchain
> (build with ct-ng 1.18) for arm that is hard float.
>
> The problem I have is that the elf files being built for the target do
> not run. This is because in each elf file the program interpreter is set
> as /lib/ld-linux.so.3 but if I look in the target filesystem that is
> generated it has /lib/ld-linux-armhf.so.3
>
> So it seems like my toolchain is somehow building elf files that won't
> run with the toolchain which has me pretty confused. Do I just need  a
> suitable sym link in my target fs or is this something wrong with how
> things are being built. Could it be that the toolchain wrapper is
> somehow forcing soft float?
>
> Thanks
> Will
>

Hello,

I have sorted my problem, was more a bug with the toolchain ct-ng was 
building. In case anyone else runs into this problem, this is how I 
fixed the issue.

I could work around the problem by settings:

BR2_TARGET_OPTIMIZATION="-pipe -Wl,-dynamic-linker=/lib/ld-linux-armhf.so.3"

The better fix is to patch the building of GCC, see this page with 
details, including patch at the bottom.

https://wiki.linaro.org/OfficeofCTO/HardFloat/LinkerPathCallApr2012

Thanks
Will

-- 
------------------------------------------------------------------------
Will Wagner                                     will_wagner at carallon.com
Development Manager                      Office Tel: +44 (0)20 7471 9224
Carallon Ltd, Studio G20, Shepherds Building, Rockley Rd, London W14 0DA
------------------------------------------------------------------------

      parent reply	other threads:[~2013-06-10 14:08 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-04  8:47 [Buildroot] problem with external toolchain with hard float Will Wagner
2013-06-04 11:29 ` Patrick Ziegler
2013-06-10 14:08 ` Will Wagner [this message]

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=51B5DDC5.1000709@carallon.com \
    --to=will_wagner@carallon.com \
    --cc=buildroot@busybox.net \
    /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.