This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
c++/10318: GPREL32 relocation errors on alpha
- From: kelledin at users dot sourceforge dot net
- To: gcc-gnats at gcc dot gnu dot org
- Cc: mats at rynge dot net
- Date: 6 Apr 2003 02:01:51 -0000
- Subject: c++/10318: GPREL32 relocation errors on alpha
- Reply-to: kelledin at users dot sourceforge dot net
>Number: 10318
>Category: c++
>Synopsis: GPREL32 relocation errors on alpha
>Confidential: no
>Severity: critical
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Apr 06 02:06:02 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator: kelledin at users dot sourceforge dot net
>Release: gcc-3.2.1
>Organization:
>Environment:
host alpha-incept-linux-gnu, binutils 2.13.2.1
>Description:
(This is actually a dupe of c++/6999. I just couldn't revive it or tack on feedback for some reason.)
gcc-3.2.x is delivering the following type of error messages for certain projects:
g++ -g -DNDEBUG -DSYSCONFDIR='"/etc/xstow"' -o xstow arg.o cppdir.o
debug.o file_option.o format.o main.o setup.o string_utils.o tree.o leoini.o
setup_config.o
main.o(.rodata+0x8a8):itimerspec/format.h:376: relocation truncated to fit:
GPREL32 *UND*
main.o(.rodata+0x8ac):itimerspec/format.h:376: relocation truncated to fit:
GPREL32 *UND*
main.o(.rodata+0x8b0):itimerspec/format.h:376: relocation truncated to fit:
GPREL32 *UND*
main.o(.rodata+0x8b4):itimerspec/format.h:380: relocation truncated to fit:
GPREL32 *UND*
These projects compile just fine on x86. There are further reports of this problem here:
http://lists.debian.org/debian-alpha/2003/debian-alpha-200303/msg00063.html
http://lists.debian.org/debian-alpha/2003/debian-alpha-200303/msg00112.html
Apparently certain relocations in the "undefined" section are getting malformed to the point that they overflow. I seriously doubt they get this way on their own, because the "undefined" section would have to accumulate more than 2GB worth of undefined relocation symbols, which would obviously give x86 fits as well.
Clearly either binutils is malforming offset values during link, or gcc is feeding binutils incorrect relocation values. The error is consistent and very repeatable.
>How-To-Repeat:
Attempt to compile kdegames-3.1.x or xstow.
>Fix:
No known fix...
>Release-Note:
>Audit-Trail:
>Unformatted: