How do I prevent ld from merging PT_LOAD segments?

Jeff Baker jbaker@qnx.com
Fri Jul 11 14:28:00 GMT 2003


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
> 



More information about the Binutils mailing list