This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [PATCH, PPC] Use 64k for COMMONPAGESIZE
- From: Alan Modra <amodra at gmail dot com>
- To: Sebastian Huber <sebastian dot huber at embedded-brains dot de>
- Cc: Chris Johns <chrisj at rtems dot org>, Richard Henderson <rth at redhat dot com>, Binutils <binutils at sourceware dot org>, Adhemerval Zanella <azanella at linux dot vnet dot ibm dot com>
- Date: Fri, 19 Dec 2014 19:37:59 +1030
- Subject: Re: [PATCH, PPC] Use 64k for COMMONPAGESIZE
- Authentication-results: sourceware.org; auth=none
- References: <5490DDB2 dot 9020706 at redhat dot com> <5492110B dot 1060405 at rtems dot org> <20141218061119 dot GB23483 at bubble dot grove dot modra dot org> <20141219081632 dot GB4263 at bubble dot grove dot modra dot org> <5493E5A1 dot 6000908 at embedded-brains dot de>
On Fri, Dec 19, 2014 at 09:45:21AM +0100, Sebastian Huber wrote:
> On 19/12/14 09:16, Alan Modra wrote:
> >One other thing I'd forgotten about is that COMMONPAGESIZE is used to
> >decide where the relro segment ends (which after reading some bug
> >reports, I guess is the driving force behind this patch). This
> >particular usage*can* increase memory footprint so my "won't use more
> >memory" remark above is incorrect.
> >
> >You could argue that using COMMONPAGESIZE for this purpose is a bug,
> >and that MAXPAGESIZE should determine the relro segment end instead..
>
> is this change relevant if I use a custom linker command file that is
> supposed to place all sections into a defined memory region?
You would need to be using DATA_SEGMENT_RELRO_END in your script.
--
Alan Modra
Australia Development Lab, IBM