From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by listman.back-rdu.redhat.com (8.11.6/8.11.6) with ESMTP id h7ENVNN27546 for ; Thu, 14 Aug 2003 19:31:23 -0400 Received: (from mail@localhost) by int-mx1.corp.redhat.com (8.11.6/8.11.6) id h7ENWwQ10503 for axp-list@listman.back-rdu.redhat.com; Thu, 14 Aug 2003 19:32:58 -0400 Received: from mx1.redhat.com (mx1.redhat.com [172.16.48.31]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with SMTP id h7ENWws10499 for ; Thu, 14 Aug 2003 19:32:58 -0400 Received: from skarpsey.home.lan (12-207-41-15.client.attbi.com [12.207.41.15]) by mx1.redhat.com (8.11.6/8.11.6) with SMTP id h7ENWwt19576 for ; Thu, 14 Aug 2003 19:32:58 -0400 Received: from valhalla.home.lan (valhalla.home.lan [192.168.0.2]) by skarpsey.home.lan (8.12.9/8.12.9) with ESMTP id h7ENXr8l016382 for ; Thu, 14 Aug 2003 18:33:53 -0500 From: Kelledin To: axp-list@redhat.com Subject: Re: relocation truncated to fit: GPREL16 .sbss Date: Thu, 14 Aug 2003 18:35:23 -0500 User-Agent: KMail/1.5.2 References: <3F3BC7BB.4040909@gatworks.com> In-Reply-To: <3F3BC7BB.4040909@gatworks.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200308141835.23893.kelledin+AXP@skarpsey.dyndns.org> X-Loop: axp-list@redhat.com Sender: axp-list-admin@redhat.com Errors-To: axp-list-admin@redhat.com X-BeenThere: axp-list@redhat.com X-Mailman-Version: 2.0.13 Precedence: junk Reply-To: axp-list@redhat.com List-Help: List-Post: List-Subscribe: , List-Id: Linux and Red Hat on Alpha processors List-Unsubscribe: , List-Archive: On Thursday 14 August 2003 12:32 pm, Uncle George wrote: > Does anyone know what the deal is with the mysterious GPREL16 > stuff is! > > : relocation truncated to fit: GPREL16 .sbss > > ../unxlnga.pro/slo/fmgridif.o(.text+0x191f4): In function `__tcf_6': > : relocation truncated to fit: GPREL16 .sbss > > ../unxlnga.pro/slo/deflt3d.o(.text+0x154): In function > > `E3dDefaultAttributes::Reset()': > : relocation truncated to fit: GPREL16 .sdata > > ../unxlnga.pro/slo/deflt3d.o(.text+0x15c): In function > > `E3dDefaultAttributes::Reset()': > : relocation truncated to fit: GPREL16 .sdata > > ../unxlnga.pro/slo/deflt3d.o(.text+0x21c): In function > > `E3dDefaultAttributes::Reset()': > : relocation truncated to fit: GPREL16 .sdata > > collect2: ld returned 1 exit status Hmmm. AFAIK gcc shouldn't be generating GPREL16 symbols unless it's run with the -msmall-data option turned on, either explicitly or implicitly. GPREL16 is a 16-bit GP-relative relocation, used to address static data (in the .sdata section). Using GPREL16 limits your static data area to 64K; using GPREL32 (32-bit GP-relative relocation) limits your static data area to 4GB. The default is GPREL32, for obvious reasons. Chances are, the source code is built with -msmall-data, or it's built with -fpic (which implies -msmall-data) instead of -fPIC (which implies -mlarge-data). Then these errors are caused by having too much static data to fit in 64K. If that's not the case, I would suspect it's a toolchain bug. You can read up on these options in the gcc man page. -- Kelledin "If a server crashes in a server farm and no one pings it, does it still cost four figures to fix?"