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 h7FFKgN31127 for ; Fri, 15 Aug 2003 11:20:42 -0400 Received: (from mail@localhost) by int-mx1.corp.redhat.com (8.11.6/8.11.6) id h7FFMKr28187 for axp-list@listman.back-rdu.redhat.com; Fri, 15 Aug 2003 11:22:20 -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 h7FFMKs28181 for ; Fri, 15 Aug 2003 11:22:20 -0400 Received: from laptopserver.gatworks.com (pool-151-205-109-143.ny325.east.verizon.net [151.205.109.143]) by mx1.redhat.com (8.11.6/8.11.6) with SMTP id h7FFMJt27646 for ; Fri, 15 Aug 2003 11:22:19 -0400 Received: (qmail 1784 invoked from network); 15 Aug 2003 15:30:49 -0000 Received: from unknown (HELO gatworks.com) (127.0.0.1) by laptopserver.gatworks.com with SMTP; 15 Aug 2003 15:30:49 -0000 Message-ID: <3F3CFC92.5080702@gatworks.com> Date: Fri, 15 Aug 2003 11:30:26 -0400 From: Uncle George User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20020830 X-Accept-Language: en-us, en MIME-Version: 1.0 To: axp-list@redhat.com Subject: Re: relocation truncated to fit: GPREL16 .sbss References: <3F3BC7BB.4040909@gatworks.com> <200308141835.23893.kelledin+AXP@skarpsey.dyndns.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit 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: It is using -fpic. It has always been using -fpic. Interesting that it now shows this anomaly. Will try -fPIC, and see if that resolves it. /gat BTW GPRELxx is not mentioned in man pages. Nor is there any man-info as to what might be causing ( ie truncated bec -msmall-data or -fpic is set ) the messages. Kelledin wrote: >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. > > >