Summary: | default section layout should be improved to reduce pagefaults | ||
---|---|---|---|
Product: | binutils | Reporter: | Taras Glek <tglek> |
Component: | ld | Assignee: | unassigned |
Status: | RESOLVED INVALID | ||
Severity: | normal | CC: | bug-binutils, ojab |
Priority: | P2 | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Host: | Target: | ||
Build: | Last reconfirmed: | ||
Attachments: | Reorder .gnu.version, .dynstr and .dynsym |
Description
Taras Glek
2010-03-29 20:29:30 UTC
Subject: Re: New: default section layout should be improved
to reduce pagefaults
On Mon, Mar 29, 2010 at 08:29:31PM -0000, tglek at mozilla dot com wrote:
> Fault #2
> .gnu.version* should be in front of .dyn(sym|str)
>
> Fault #3
> .dynstr should be in front of .dynsym
Why? Both .gnu.version and .dynstr are referred to from .dynsym.
ISTM that it would be as easy to improve the loader if it's reading
them in a funny order.
Created attachment 4719 [details]
Reorder .gnu.version, .dynstr and .dynsym
Hi Taras, This sounds like a loader problem to me, rather than a binutils bug. It is relatively easy to rearrange the order of the .gnu.version, .dynstr and .dynsym sections (see the uploaded patch), but I do not think that this is right way to solve the problem. If the loader is performing some backwards io to get at those sections then I would suggest that it ought to be recoded to keep them in memory after reading them for the first time. Cheers Nick |