powerpc max-page-size vs __QNXTARGET__
authorAlan Modra <amodra@gmail.com>
Thu, 12 Apr 2018 10:40:36 +0000 (20:10 +0930)
committerAlan Modra <amodra@gmail.com>
Sat, 14 Apr 2018 08:24:08 +0000 (17:54 +0930)
The default max-page-size on ppc32 has been 64k since 1995-02-15 (git
commit bcbe2c71).  There was a change committed 2003-07-12 to chose a
4k page if __QNXTARGET__ is defined, but that particular commit was
from an earlier posted patch
https://sourceware.org/ml/binutils/2003-07/msg00211.html that only
made the change effective for arm, rather than the later one
https://sourceware.org/ml/binutils/2003-07/msg00220.html that also
changed powerpc and sh..

Since the __QNXTARGET__ #ifdef in elf32-ppc.c is ineffective unless
the user defines it in his or her CFLAGS, I'm removing that code.

* elf32-ppc.c (ELF_MAXPAGESIZE, ELF_COMMONPAGESIZE): Don't depend
on __QNXTARGET__ define.

bfd/ChangeLog
bfd/elf32-ppc.c

index 7f999f7..c34cff6 100644 (file)
@@ -1,5 +1,10 @@
 2018-04-14  Alan Modra  <amodra@gmail.com>
 
+       * elf32-ppc.c (ELF_MAXPAGESIZE, ELF_COMMONPAGESIZE): Don't depend
+       on __QNXTARGET__ define.
+
+2018-04-14  Alan Modra  <amodra@gmail.com>
+
        * config.bfd: Add powerpc-*-lynxos* and powerpc-*-windiss*
        to obsolete list.
 
index 7f51fac..8629380 100644 (file)
@@ -11389,13 +11389,8 @@ ppc_elf_finish_dynamic_sections (bfd *output_bfd,
 #define ELF_ARCH               bfd_arch_powerpc
 #define ELF_TARGET_ID          PPC32_ELF_DATA
 #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_info_to_howto      ppc_elf_info_to_howto