Stub group default for hppa elf
Alan Modra
amodra@bigpond.net.au
Sat Feb 8 04:37:00 GMT 2003
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
More information about the Binutils
mailing list