gcc-3.0.1, alpha-linux: relocation truncated to fit: SREL32

James McKelvey mckelvey@maskull.com
Mon Sep 3 18:00:00 GMT 2001


This is a new platform for me. My stuff compiles OK, then fails to link with  
hundreds of "relocation truncated to fit" errors. 3.0 has the same problem.

g++ -v -g   -Wold-style-cast -ansi -pedantic-errors -fno-common
-fstrict-aliasing -Wall -W -Wsign-promo -Wpointer-arith -Wcast-qual
-Wconversion -Wmissing-prototypes -Wwrite-strings -Winline
-Woverloaded-virtual -fimplicit-templates  -L.             -o test test.o
-lPatternMaster -lintl

Reading specs from /usr/local/lib/gcc-lib/alphaev56-unknown-linux-gnu/3.0=
=2E1/specs
Configured with: ../gcc-3.0.1/configure --enable-languages=3Dc++
Thread model: single
gcc version 3.0.1
 /usr/local/lib/gcc-lib/alphaev56-unknown-linux-gnu/3.0.1/collect2 -m elf=
64alpha -O1 -dynamic-linker /lib/ld-linux.so.2 -o test /usr/lib/crt1.o /u=
sr/lib/crti.o /usr/local/lib/gcc-lib/alphaev56-unknown-linux-gnu/3.0.1/cr=
tbegin.o -L. -L/usr/local/lib/gcc-lib/alphaev56-unknown-linux-gnu/3.0.1 -=
L/usr/local/lib/gcc-lib/alphaev56-unknown-linux-gnu/3.0.1/../../.. test.o=
 -lPatternMaster -lintl -lstdc++ -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc /usr=
/local/lib/gcc-lib/alphaev56-unknown-linux-gnu/3.0.1/crtend.o /usr/lib/cr=
tn.o
=2E/libPatternMaster.a(AbstractAutoRef.o): In function `__FRAME_BEGIN__':
AbstractAutoRef.o(.eh_frame+0xc8): relocation truncated to fit: SREL32 gn=
u.linkonce.t._ZNSsD1Ev
AbstractAutoRef.o(.eh_frame+0xf8): relocation truncated to fit: SREL32 gn=
u.linkonce.t._ZNSsC1EPKcRKSaIcE
AbstractAutoRef.o(.eh_frame+0x1b8): relocation truncated to fit: SREL32 g=
nu.linkonce.t._ZN13PatternMaster9ExceptionIXL_ZNS_18INTERNAL_EXCEPTIONEEE=
EC1ERKSsS3_m
AbstractAutoRef.o(.eh_frame+0x1e8): relocation truncated to fit: SREL32 g=
nu.linkonce.t._ZN13PatternMaster9ExceptionIXL_ZNS_18INTERNAL_EXCEPTIONEEE=
EC1ERKS1_



More information about the Gcc-bugs mailing list