Question about ELF_COMMONPAGESIZE and Fedora downstream change to it

Alan Modra amodra@gmail.com
Mon Aug 18 12:21:15 GMT 2025


On Mon, Aug 18, 2025 at 12:48:28PM +0900, Simon Richter wrote:
> Hi,
> 
> On 8/18/25 7:41 AM, Alan Modra wrote:
> 
> > My guess is that this change was to avoid bugs in relro segment
> > layout.  It used to be that the relro segment was allowed to finish on
> > a commonpagesize boundary, but if hardware pages are actually
> > maxpagesize then the end of the relro segment became read/write.  See
> > commit 9833b7757d24.
> 
> Should maxpagesize be 256k on PPC64, then (Uncommon configuration, but
> possible)?

No, I don't think we should do that.  There would be too many
complaints about relro file size increase.

> 64k is definitely somewhat common.
> 
>    Simon

-- 
Alan Modra


More information about the Binutils mailing list