Set maxpagesize for NTO targets to 4k
authorNick Clifton <nickc@redhat.com>
Sat, 12 Jul 2003 11:16:46 +0000 (11:16 +0000)
committerNick Clifton <nickc@redhat.com>
Sat, 12 Jul 2003 11:16:46 +0000 (11:16 +0000)
bfd/ChangeLog
bfd/config.bfd
bfd/elf32-arm.h
bfd/elf32-ppc.c
bfd/elf32-sh.c

index 0a3143e11c24310571ded5b38d220bea21d6687d..49592b810838941bb2c1786a71e5c81ab6904d4b 100644 (file)
@@ -1,3 +1,10 @@
+2003-07-12  Jeff Baker  <jbaker@qnx.com>
+
+       * bfd/config.bfd (__QNXTARGET__): Define for Neutrino architectures.
+       * bfd/elf32-arm.h (ELF_MAXPAGESIZE): Set to 4k for Neutrino.
+       * bfd/elf32-sh.c (ELF_MAXPAGESIZE): Set to 4k for Neutrino.
+       * bfd/elf32-ppc.c (ELF_MAXPAGESIZE): Set to 4k for Neutrino.
+
 2003-07-12  Jeff Muizelaar  <muizelaar@rogers.com>
 
        * coffcode.h (coff_set_section_contents): Set the
index f0ae64211dbbcc81b6be9282a23ccdae9d3ac382..7a26bda44ef2a87f517d72a191ca2ad3e69ab6f2 100644 (file)
@@ -155,6 +155,7 @@ case "${targ}" in
     targ_defvec=armnetbsd_vec
     targ_selvecs="bfd_elf32_littlearm_vec bfd_elf32_bigarm_vec"
     targ_underscore=yes
+    targ_cflags=-D__QNXTARGET__
     ;;
   arm-*-nto* | nto*arm*)
     targ_defvec=bfd_elf32_littlearm_vec
index e2d66adb8ca88abf6b6e22878d5dfcb81f02af17..f073e7a1a639e7fbc0b55269b2bf0e94976b0bc1 100644 (file)
@@ -3699,7 +3699,11 @@ elf32_arm_final_write_processing (abfd, linker)
 
 #define ELF_ARCH                       bfd_arch_arm
 #define ELF_MACHINE_CODE               EM_ARM
+#ifdef __QNXTARGET__
+#define ELF_MAXPAGESIZE                        0x1000
+#else
 #define ELF_MAXPAGESIZE                        0x8000
+#endif
 
 #define bfd_elf32_bfd_copy_private_bfd_data    elf32_arm_copy_private_bfd_data
 #define bfd_elf32_bfd_merge_private_bfd_data   elf32_arm_merge_private_bfd_data
index 0f38e115a7a86c73d6e1fb5811a0105dc37924ea..a2eec938b9e318b1c554e3ad6de24318cde5fea9 100644 (file)
@@ -6026,7 +6026,11 @@ ppc_elf_final_write_processing (bfd *abfd, bfd_boolean linker ATTRIBUTE_UNUSED)
 #define TARGET_BIG_NAME                "elf32-powerpc"
 #define ELF_ARCH               bfd_arch_powerpc
 #define ELF_MACHINE_CODE       EM_PPC
+#ifdef __QNXTARGET__
+#define ELF_MAXPAGESIZE                0x1000
+#else
 #define ELF_MAXPAGESIZE                0x10000
+#endif
 #define elf_info_to_howto      ppc_elf_info_to_howto
 
 #ifdef  EM_CYGNUS_POWERPC
index 5306a2534f64583142d24ee195ad762afda81d9b..004aeefcfcfad9b8c9bb38fcf77b972a4470fe5a 100644 (file)
@@ -7331,7 +7331,11 @@ elf32_shlin_grok_psinfo (abfd, note)
 #define TARGET_LITTLE_NAME     "elf32-shl"
 #define ELF_ARCH               bfd_arch_sh
 #define ELF_MACHINE_CODE       EM_SH
-#define ELF_MAXPAGESIZE                128
+#ifdef __QNXTARGET__
+#define ELF_MAXPAGESIZE                0x1000
+#else
+#define ELF_MAXPAGESIZE                0x80
+#endif
 
 #define elf_symbol_leading_char '_'