This is the mail archive of the binutils@sources.redhat.com 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: Stub group default for hppa elf


On Fri, Feb 07, 2003 at 08:58:29PM -0500, John David Anglin wrote:
> I think the problem when the default is 1 is that "stubs for A + B"
> looks like
> 
> code for group A
> =====
> stubs for B
> stubs for A
> ====
> code for group B
> 
> Thus, each code group has to branch further than it has to.  However,
> this is just speculation.

Sort of.  We don't try to put stubs in any particular order.  They're
as they come out of a hash table traversal.  So a stub serving group B
may indeed appear near the start of the stubs, which is obviously a
bad choice.  I thought about sorting the stubs but decided it wasn't
worth it, especially as some stubs might serve both group A and B
(I suppose they should go in the middle).  Incidentally, stub sharing
is the reason why it's a good idea to maximize the amount of code
served by a stub section, and why I'd recommend the default go back to
-1.

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre


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