This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
RE: How do I prevent ld from merging PT_LOAD segments?
- From: Jeff Baker <jbaker at qnx dot com>
- To: 'Nick Clifton' <nickc at redhat dot com>, Jeff Baker <jbaker at qnx dot com>
- Cc: binutils at sources dot redhat dot com
- Date: Fri, 11 Jul 2003 10:28:27 -0400
- Subject: RE: How do I prevent ld from merging PT_LOAD segments?
Turns out that setting the page size to 4k is something we did in our
internal port of 2.10.1 that just missed the boat when we submitted our
support to the head branch. I've fixed it internally and I submitted a
patch about 15 minutes ago :)
> -----Original Message-----
> From: Nick Clifton [mailto:nickc@redhat.com]
> Sent: July 11, 2003 10:05 AM
> To: jbaker@qnx.com
> Cc: binutils@sources.redhat.com
> Subject: Re: How do I prevent ld from merging PT_LOAD segments?
>
> Hi Jeff,
>
> > I've discovered that if I set the MAXPAGESIZE in the linker script
> > to be the same as the alignment of the PT_LOAD segment everything
> > seems to fall back into place.
> >
> > Now my question becomes why did the alignment change from 4k to 32k?
>
> Unfortunately there does not appear to be a ChangeLog entry for the
> switch from 4k to 32k. Presumably 32k matches the page size on some
> OS implentation for an OS that runs on the ARM. arm-linux maybe ?
>
> Cheers
> Nick
>