[PATCH] Avoid R_IA64_NONE relocations when relaxing

James E Wilson wilson@specifix.com
Tue Aug 9 00:12:00 GMT 2005


On Mon, 2005-08-08 at 16:09, H. J. Lu wrote:
> My comments says "We assume after gp is set, section size will only
> decrease." GP is set only when we start doing LTOFF22X relaxations.

You are right.  The code is a bit more subtle than I thought.

> Not all section size reduction will lead to more LTOFF22X relaxations.
> I don't think the size of .rela.got section matters here. The most
> likely ones are .got and .IA64.pltoff. Can we reduce the size of
> .got or .IA64.pltoff during relaxation?

We do clear want_gotx, and set changed_got if !want_got.  Thus it
appears the .got can reduce in size if all of the references to a
variable are via relaxed LTOFF22X relocs.

I agree that the size of rela.got does not seem to matter here.
-- 
Jim Wilson, GNU Tools Support, http://www.specifix.com



More information about the Binutils mailing list