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: gold patch committed (Was: Re: Help needed to track down bug: linking Linux kernel with gold creates unbootable kernel)


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.

--


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