This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: ARM section alignment
On Thu, Jun 12, 2008 at 10:19:31AM -0400, Jonathan S. Shapiro wrote:
> Conceptually that makes sense, but the behavior I am seeing doesn't
> quite correspond to what you say. In elf32-arm.c, ELF_MINPAGESIZE is
> 0x1000, which would induce an alignment of 2**12. Is it possible that
> the alignment is actually being dictated by ELF_MAXPAGESIZE (0x8000 for
> non-QNX targets)?
Output alignment is set by MAXPAGESIZE. MINPAGESIZE is used to
recognize paged input files.
Have you tried -z max-page-size?
> While we are on this, I confess that the choice of 0x8000 for
> ELF_MAXPAGESIZE seems very strange. The ARM MMU hardware does not
> implement 32k pages. The valid choices are 1k, 4k, and 64k. I would
How far back do you know this to be true? The setting goes back
before the dawn of this CVS repository; I can't say exactly when, but
probably pre-StrongARM.
--
Daniel Jacobowitz
CodeSourcery