Openembedded Core Discussions
 help / color / mirror / Atom feed
From: Mark Hatle <mark.hatle@windriver.com>
To: Denys Dmytriyenko <denis@denix.org>
Cc: openembedded-core@lists.openembedded.org
Subject: Re: meta-toolchain doesn't compile working binaries
Date: Tue, 6 May 2014 16:49:09 -0500	[thread overview]
Message-ID: <536958D5.2090806@windriver.com> (raw)
In-Reply-To: <20140506214430.GG11339@denix.org>

On 5/6/14, 4:44 PM, Denys Dmytriyenko wrote:
> On Tue, May 06, 2014 at 04:25:15PM -0500, Mark Hatle wrote:
>> On 5/6/14, 3:56 PM, Khem Raj wrote:
>>> On Tue, May 6, 2014 at 1:55 PM, Denys Dmytriyenko <denis@denix.org> wrote:
>>>> Do you know that OE toolchain is not relocatable?
>>>
>>> is that true ?
>>>
>>
>> It's the load path of the executables, they use the libc-nativesdk,
>> so they need a hard path to the correct ld.so to get started.
>
> More specifically, it's PT_INTERP section of the ELF header in every binary
> that hardcodes the full path to our own dynamic linker/loader (i.e. mentioned
> libc-nativesdk). I wish it would support the use of $ORIGIN similar to RPATH
> and RUNPATH for libraries, but I bet there are all kinds of corner cases with
> that... :)
>

$ORIGIN, RPATH and RUNPATH are all implemented by the ld.so, there is no way to 
dynamically assign the interpreter (ld.so).

--Mark


  reply	other threads:[~2014-05-06 23:00 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-06  8:14 meta-toolchain doesn't compile working binaries Björn Krombholz
2014-05-06 17:01 ` Khem Raj
2014-05-06 20:55 ` Denys Dmytriyenko
2014-05-06 20:56   ` Khem Raj
2014-05-06 20:59     ` Denys Dmytriyenko
2014-05-06 21:25     ` Mark Hatle
2014-05-06 21:40       ` Khem Raj
2014-05-06 21:44         ` Mark Hatle
2014-05-06 21:49           ` Denys Dmytriyenko
2014-05-07 12:54           ` Björn Krombholz
2014-05-07 14:37             ` Mark Hatle
2014-05-07 14:58             ` Björn Krombholz
2014-05-07 17:13               ` Björn Krombholz
2014-05-06 21:44       ` Denys Dmytriyenko
2014-05-06 21:49         ` Mark Hatle [this message]
2014-05-06 21:59           ` Denys Dmytriyenko
2014-05-07 15:27             ` Richard Purdie

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=536958D5.2090806@windriver.com \
    --to=mark.hatle@windriver.com \
    --cc=denis@denix.org \
    --cc=openembedded-core@lists.openembedded.org \
    /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