Question about ELF_COMMONPAGESIZE and Fedora downstream change to it

Xi Ruoyao xry111@xry111.site
Sun Aug 17 15:04:06 GMT 2025


Hi,

In Fedora recipe for Binutils there is a command changing
ELF_COMMONPAGESIZE for ppc64 and arm64:
	
# On ppc64 and aarch64, we might use 64KiB pages
sed -i -e '/#define.*ELF_COMMONPAGESIZE/s/0x1000$/0x10000/' bfd/elf*ppc.c
sed -i -e '/#define.*ELF_COMMONPAGESIZE/s/0x1000$/0x10000/' bfd/elf*aarch64.c

So does it mean to support a 64KiB-page configuration on ppc64 and
aarch64 we must use ELF_COMMONPAGESIZE = 64Ki?  But if so what's the
point of ELF_MAXPAGESIZE then?

I tried to find some clue in the BFD info page but I found nothing about
ELF_COMMONPAGESIZE there.

-- 
Xi Ruoyao <xry111@xry111.site>


More information about the Binutils mailing list