This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Avoid R_IA64_NONE relocations when relaxing


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]