Re: Relocation errors with g++-3.2
Mats Rynge <mats@rynge.net> writes:
> main.o(.rodata+0x8b4):itimerspec/format.h:380: relocation truncated to fit:
> GPREL32 *UND*
>
> This is only happening on Alpha and only with g++-3.2 (2.95 works
> fine). Does anyone have some insight in what is causing this?
Jump tables relocated against symbols emitted mutiple times, where the
corresponding copy was dropped. See
http://gcc.gnu.org/ml/gcc/2003-04/msg00191.html
As a workaround, try to find out which switch statement causes it and
don't inline the function (a function complex enough to contain a
switch statement probably shouldn't be inline, anyway).
--
Falk
Reply to: