gold patch committed (Was: Re: Help needed to track down bug: linking Linux kernel with gold creates unbootable kernel)
John Reiser
jreiser@bitwagon.com
Fri Apr 23 14:40:00 GMT 2010
On 04/23/2010 07:12 AM, Ian Lance Taylor wrote:
>> .text
>> .p2align 23
[[snip]]
> Is your concern that
> the operating system will not be able to align the physical memory
> address as required by the program header alignment? I don't see why
> that would matter on a virtual memory system.
The hardware should not care, but the software might. For instance,
if the alignment is honored on a 32-bit system, then a pointer to
the beginning of the area can be represented using only (32 - 23) = 9
bits, which offers an opportunity to reduce storage costs. Also,
that much alignment often can exert an influence on the performance
of caches (including TLB), particularly by reducing the variability
from run to run.
--
More information about the Binutils
mailing list