This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Program section alignment on MIPS
- From: Thiemo Seufer <ths at networkno dot de>
- To: Paul Koning <pkoning at equallogic dot com>
- Cc: binutils at sourceware dot org
- Date: Tue, 27 Mar 2007 10:47:05 +0100
- Subject: Re: Program section alignment on MIPS
- References: <17928.27966.93000.486100@gargle.gargle.HOWL>
Paul Koning wrote:
> I've noticed a change between binutils 2.17 and older versions (2.14
> at least; don't know for sure when this arrived). In 2.14, the
> program sections were aligned 2**12, which make sense given the MIPS
> page size. In 2.17 they are aligned 2**16, which I don't want and is
> causing trouble.
The architecture allows variable page sizes between 1 k and 256 MB (not
all of them need to be implemented in a specific CPU). Some MIPS-based
machines use now 16 k pages for Linux. 64 k is a reasonable upper bound
for the default value, it is overridable via -z max-page-size /
-z common-page-size.
> The biggest problem is that I can't find out where this number comes
> from, nor how to change it. Looking through the docs for "align"
> turns up assorted things, but none that seem relevant and none that
> help.
Grep for MAXPAGESIZE.
Thiemo