This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: ARM section alignment
Thanks for the background on this.
But what is becoming apparent is that ELF_MAXPAGESIZE is only
tangentially about page size. For example, on x86 there are 2M and 4M
pages, but ELF_MAXPAGESIZE is set to 4K.
So I think the real question here is: what should the default section
alignment for ARM targets be? Bearing in mind that it can be overridden
with -z and/or a linker script, I am of the opinion that it should be
4K, which seems to conform to the actual page size used in most ELF-ARM
systems.
The mere existence of the __QNXTARGET__ ifdef makes it clear that this
really isn't an architecture constant. It's (at best) a target constant.
We either need to re-converge the values or we need to change the way in
which the MAXPAGESIZE value is set up.
Would people object to simply changing ELF_MAXPAGESIZE to 0x1000 for all
ARM targets?
On Thu, 2008-06-12 at 20:04 +0200, John Tytgat wrote:
> In message <1213280372.18277.17.camel@shaptop.om-md.eros-os.com>
> "Jonathan S. Shapiro" <shap@eros-os.com> wrote:
>
> > While we are on this, I confess that the choice of 0x8000 for
> > ELF_MAXPAGESIZE seems very strange.
>
> Not to me. The memory controller used for ARM2 and ARM3 chips was the
> MEMC and that one could use 4, 8, 16 or 32 KByte pages depending when
> it was driving 256, 512, 1024 or 4096 KByte RAM...
>
> John.