This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [PATCH] Avoid R_IA64_NONE relocations when relaxing
On Sat, Aug 06, 2005 at 04:43:08PM +0200, Andreas Schwab wrote:
> "H. J. Lu" <hjl@lucon.org> writes:
>
> > On Sat, Aug 06, 2005 at 02:57:00AM +0200, Andreas Schwab wrote:
> >> "H. J. Lu" <hjl@lucon.org> writes:
> >>
> >> > The problem is when you reduced the size of .rela.got, gp became too
> >> > high for relaxed R_IA64_LTOFF22X.
> >>
> >> I have a patch ready that just needs some testing. Stay tuned.
> >>
> >
> > This patch seems to work for my testcase.
>
> This an alternative patch that fixes the problem as explained in the
> comment of elfNN_ia64_relax_section. It is tested with a glibc and gcc
> build.
Is it a good idea to reset gp after R_IA64_LTOFF22X relocations have
been relaxed to R_IA64_GPREL22. Is that possible for gp to change in
such a way that R_IA64_GPREL22 will overflow? If it won't happen, can
we just reset gp in elfNN_ia64_final_link?
H.J.