public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@false.org>
To: Andrew STUBBS <andrew.stubbs@st.com>
Cc: binutils <binutils@sources.redhat.com>
Subject: Re: Cross linking dynamic executables
Date: Wed, 15 Dec 2004 14:42:00 -0000	[thread overview]
Message-ID: <20041215144149.GA13362@nevyn.them.org> (raw)
In-Reply-To: <41C04BD6.E752FF3E@st.com>

On Wed, Dec 15, 2004 at 02:36:06PM +0000, Andrew STUBBS wrote:
> When cross compiling a dynamic executable, the linker attempts to find
> the dynamic linker in the 'standard places' (just as it does when
> compiling nativly). This behaviour is rather irritating when the linker
> tries to link an SH object file (in my case) against the x86 dynamic
> linker on the build system.
> 
> I do not know whether my solution is acceptable to other people, but I
> have attached a patch which attempts to solve the problem. It makes much
> more sense to me that the linker should look for cross dynamic linkers
> in the same place it looks for cross dynamic libraries. If it does not
> find it with the libraries it still continues to look in the standard
> places.

This is inconsistent with the rest of the rpath/rpath-link handling,
IIRC.

I recommend you try --with-sysroot, which should change where we search
for the dynamic linker.

-- 
Daniel Jacobowitz

  reply	other threads:[~2004-12-15 14:42 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-12-15 14:40 Andrew STUBBS
2004-12-15 14:42 ` Daniel Jacobowitz [this message]
2004-12-15 17:12   ` Andrew STUBBS

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=20041215144149.GA13362@nevyn.them.org \
    --to=drow@false.org \
    --cc=andrew.stubbs@st.com \
    --cc=binutils@sources.redhat.com \
    /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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).