[PATCH] Avoid R_IA64_NONE relocations when relaxing
H. J. Lu
hjl@lucon.org
Sat Aug 6 00:51:00 GMT 2005
On Sat, Aug 06, 2005 at 02:33:13AM +0200, Andreas Schwab wrote:
> "H. J. Lu" <hjl@lucon.org> writes:
>
> > I got
> >
> > ./.libs/libgcj0_convenience.a(DefaultRGBChooserPanel.o): In function
> > `javax::swing::colorchooser::DefaultRGBChooserPanel::getDisplayName()':
> > /net/gnu-13/export/gnu/src/gcc-4.0/gcc/libjava/javax/swing/colorchooser/DefaultRGBChooserPanel.java:173:
> > relocation truncated to fit: GPREL22 against `.data.rel.local'
> > ./.libs/libgcj0_convenience.a(DefaultRGBChooserPanel.o): In function
> > `javax::swing::colorchooser::DefaultRGBChooserPanel::buildChooser()':
> > /net/gnu-13/export/gnu/src/gcc-4.0/gcc/libjava/javax/swing/colorchooser/DefaultRGBChooserPanel.java:222:
> > relocation truncated to fit: GPREL22 against `.data.rel.local'
> > ld: final link failed: Nonrepresentable section on output
>
> That problem has always been present, but much harder to trigger. I'm
> working on a fix.
>
The problem is when you reduced the size of .rela.got, gp became too
high for relaxed R_IA64_LTOFF22X. Basically, after R_IA64_LTOFF22X has
been relaxed, you can't change the size of .rela.got, without adjusting
gp. Can you adjust gp by the same amount of the size reduction of
.rela.got after .rela.got is changed?
H.J.
More information about the Binutils
mailing list