public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
From: Jim Wilson <wilson@cygnus.com>
To: linux-ia64@vger.kernel.org
Subject: Re: [Linux-ia64] Cross compiling problem: relocation truncated to fit ...
Date: Fri, 28 Jul 2000 20:44:00 +0000	[thread overview]
Message-ID: <marc-linux-ia64-105590678205241@msgid-missing> (raw)
In-Reply-To: <marc-linux-ia64-105590678205239@msgid-missing>

You have an out-of-range branch.  Branches can only reach about 16MB directly,
after that they need linker help.

If you have a recent enough toolchain, then -Wl,-relax will make this work.
It should work automatically, but well, eventually it will.  The recent
TurboLinux distribution RPMS have the necessary patches.  I don't believe any
Red Hat distribution RPMS have it yet, but the next release will.

A 32-bit hosted cross compiler will generate worse code than a native compiler.
This is because it is harder to optimize 64-bit values on a 32-bit machine, so 
there are some cases where we just give up and don't perform the optimization
when on a 32-bit host.  Thus the cross compiled application will be bigger,
and more likely to have out-of-range branches.  Don't cross compile unless
you have to.

Jim



      parent reply	other threads:[~2000-07-28 20:44 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-07-28  8:06 [Linux-ia64] Cross compiling problem: relocation truncated to fit Nuesser, Wilhelm
2000-07-28 14:52 ` David Mosberger
2000-07-28 20:44 ` Jim Wilson [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=marc-linux-ia64-105590678205241@msgid-missing \
    --to=wilson@cygnus.com \
    --cc=linux-ia64@vger.kernel.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