[PATCH, PPC] Use 64k for COMMONPAGESIZE

Richard Henderson rth@redhat.com
Wed Dec 17 01:34:00 GMT 2014


It seems to me that most powerpc hardware these days is server based,  and very
little remains at the desktop class.  And in the server environment, IBM has
been recommending a 64k page size.

We've had this change floating around Fedora/RHEL for quite some time; it seems
past due for it to go upstream.

Ok?


r~
-------------- next part --------------
	* elf32-ppc.c (ELF_COMMONPAGESIZE): Set to 64k.
	* elf64-ppc.c (ELF_COMMONPAGESIZE): Likewise.


diff --git a/bfd/elf32-ppc.c b/bfd/elf32-ppc.c
index 8429e8f..1ebb2c7 100644
--- a/bfd/elf32-ppc.c
+++ b/bfd/elf32-ppc.c
@@ -10327,11 +10327,12 @@ ppc_elf_finish_dynamic_sections (bfd *output_bfd,
 #define ELF_MACHINE_CODE	EM_PPC
 #ifdef __QNXTARGET__
 #define ELF_MAXPAGESIZE		0x1000
+#define ELF_COMMONPAGESIZE	0x1000
 #else
 #define ELF_MAXPAGESIZE		0x10000
+#define ELF_COMMONPAGESIZE	0x10000
 #endif
 #define ELF_MINPAGESIZE		0x1000
-#define ELF_COMMONPAGESIZE	0x1000
 #define elf_info_to_howto	ppc_elf_info_to_howto
 
 #ifdef  EM_CYGNUS_POWERPC
diff --git a/bfd/elf64-ppc.c b/bfd/elf64-ppc.c
index 26ae9ed..88ae80c 100644
--- a/bfd/elf64-ppc.c
+++ b/bfd/elf64-ppc.c
@@ -64,7 +64,7 @@ static bfd_vma opd_entry_value
 #define ELF_TARGET_ID		PPC64_ELF_DATA
 #define ELF_MACHINE_CODE	EM_PPC64
 #define ELF_MAXPAGESIZE		0x10000
-#define ELF_COMMONPAGESIZE	0x1000
+#define ELF_COMMONPAGESIZE	0x10000
 #define elf_info_to_howto	ppc64_elf_info_to_howto
 
 #define elf_backend_want_got_sym 0


More information about the Binutils mailing list