public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: Richard Henderson <rth@redhat.com>
To: Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
Cc: Brad Lucier <lucier@math.purdue.edu>,
	gcc@gcc.gnu.org, Sehun Chun <schun@math.purdue.edu>,
	bangerth@dealii.org
Subject: Re: relocation truncated to fit error on alpha
Date: Sat, 05 Apr 2003 01:09:00 -0000	[thread overview]
Message-ID: <20030404214251.GD28309@redhat.com> (raw)
In-Reply-To: <87y92qngk8.fsf@student.uni-tuebingen.de>

On Fri, Apr 04, 2003 at 10:39:03PM +0200, Falk Hueffner wrote:
> sfsproac.o(.rodata+0xec):/tmp/sfs-0.7.2/async/str.h:180: relocation truncated to fit: GPREL32 *UND*

Ah.  These are all of the form

00000000000000d4 GPREL32           .gnu.linkonce.t._ZN13sfsauth_dbrec8set_typeE1
4sfsauth_dbtype+0x0000000000000040

i.e. this is part of a switch statement.

My guess is that _ZN13sfsauth_dbrec8set_typeE14sfsauth_dbtype was emitted
multiple times, and this copy was dropped, which left the relocations from
the tablejump pointing to nothing.

In the short term this could be "fixed" in the linker, so that it ignores
gprel32 relocations to sections that have been removed.

The most correct fix is to use section groups, such that the bits associated
with the function get discarded with it.  This is a lot of work all the way
through the toolchain though.


r~

  reply	other threads:[~2003-04-04 21:45 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-04-04 19:35 Brad Lucier
2003-04-04 20:39 ` Richard Henderson
2003-04-05  1:07   ` Falk Hueffner
2003-04-05  1:09     ` Richard Henderson [this message]
2003-04-05  6:26       ` Alan Modra
2003-04-05 12:17         ` Richard Henderson
2003-04-05 15:27           ` Alan Modra
2003-04-07  6:40             ` Brad Lucier
2003-04-07 20:34             ` Richard Henderson
2003-04-05  9:08       ` Brad Lucier
2003-04-05 23:08         ` Brad Lucier
2003-04-04 21:45 ` Wolfgang Bangerth

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=20030404214251.GD28309@redhat.com \
    --to=rth@redhat.com \
    --cc=bangerth@dealii.org \
    --cc=falk.hueffner@student.uni-tuebingen.de \
    --cc=gcc@gcc.gnu.org \
    --cc=lucier@math.purdue.edu \
    --cc=schun@math.purdue.edu \
    /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).