This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Padding between .text and .data
On Wed, Feb 15, 2006 at 12:16:23PM -0700, Shaun Jackman wrote:
> On 2/15/06, Dave Korn <dave.korn@artimi.com> wrote:
> > > Thanks for the explanation, DJ. This value of 256 seems fairly
> > > arbitrary and hardware specific.
> >
> > Linker scripts are, in general! It's the correct place for this sort of
> > knowledge about memory mapping and layouts.
>
> I agree; however, this target-specific optimization makes no sense for
> my target and seems to be applied too broadly.
Take a look at the default emulparams files. This comes from
MAXPAGESIZE=256 in ld/emulparams/armelf.sh. Many architectures have
a "standard" page size (ARM doesn't really seem to).
--
Daniel Jacobowitz
CodeSourcery