From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3507 invoked by alias); 4 Apr 2003 21:45:24 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 3500 invoked from network); 4 Apr 2003 21:45:24 -0000 Received: from unknown (HELO mx2.redhat.com) (12.150.115.133) by sources.redhat.com with SMTP; 4 Apr 2003 21:45:24 -0000 Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx2.redhat.com (8.11.6/8.11.6) with ESMTP id h34Lb3P25956; Fri, 4 Apr 2003 16:37:03 -0500 Received: from potter.sfbay.redhat.com (potter.sfbay.redhat.com [172.16.27.15]) by int-mx2.corp.redhat.com (8.11.6/8.11.6) with ESMTP id h34LjDW03504; Fri, 4 Apr 2003 16:45:14 -0500 Received: from dot.sfbay.redhat.com (dot.sfbay.redhat.com [172.16.24.7]) by potter.sfbay.redhat.com (8.11.6/8.11.6) with ESMTP id h34LjD501158; Fri, 4 Apr 2003 13:45:13 -0800 Received: (from rth@localhost) by dot.sfbay.redhat.com (8.11.6/8.11.6) id h34Lgph28342; Fri, 4 Apr 2003 13:42:51 -0800 X-Authentication-Warning: dot.sfbay.redhat.com: rth set sender to rth@redhat.com using -f Date: Sat, 05 Apr 2003 01:09:00 -0000 From: Richard Henderson To: Falk Hueffner Cc: Brad Lucier , gcc@gcc.gnu.org, Sehun Chun , bangerth@dealii.org Subject: Re: relocation truncated to fit error on alpha Message-ID: <20030404214251.GD28309@redhat.com> Mail-Followup-To: Richard Henderson , Falk Hueffner , Brad Lucier , gcc@gcc.gnu.org, Sehun Chun , bangerth@dealii.org References: <200304041915.h34JFjSn002361@banach.math.purdue.edu> <20030404193746.GE28206@redhat.com> <87y92qngk8.fsf@student.uni-tuebingen.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87y92qngk8.fsf@student.uni-tuebingen.de> User-Agent: Mutt/1.4i X-SW-Source: 2003-04/txt/msg00206.txt.bz2 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~