aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2003-07-12 11:16:46 +0000
committerNick Clifton <nickc@redhat.com>2003-07-12 11:16:46 +0000
commitd0facd1b4264f0954c40321ece50b06f0e20f0f5 (patch)
tree197c7a8df652fde7bc1cfe2f11bf51f2afc3e903
parentbcb9b88db6ae400046a3243b12e65ca4815a1ab8 (diff)
downloadgdb-d0facd1b4264f0954c40321ece50b06f0e20f0f5.zip
gdb-d0facd1b4264f0954c40321ece50b06f0e20f0f5.tar.gz
gdb-d0facd1b4264f0954c40321ece50b06f0e20f0f5.tar.bz2
Set maxpagesize for NTO targets to 4k
-rw-r--r--bfd/ChangeLog7
-rw-r--r--bfd/config.bfd1
-rw-r--r--bfd/elf32-arm.h4
-rw-r--r--bfd/elf32-ppc.c4
-rw-r--r--bfd/elf32-sh.c6
5 files changed, 21 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 0a3143e..49592b8 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -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
diff --git a/bfd/config.bfd b/bfd/config.bfd
index f0ae642..7a26bda 100644
--- a/bfd/config.bfd
+++ b/bfd/config.bfd
@@ -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
diff --git a/bfd/elf32-arm.h b/bfd/elf32-arm.h
index e2d66ad..f073e7a 100644
--- a/bfd/elf32-arm.h
+++ b/bfd/elf32-arm.h
@@ -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
diff --git a/bfd/elf32-ppc.c b/bfd/elf32-ppc.c
index 0f38e11..a2eec93 100644
--- a/bfd/elf32-ppc.c
+++ b/bfd/elf32-ppc.c
@@ -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
diff --git a/bfd/elf32-sh.c b/bfd/elf32-sh.c
index 5306a25..004aeef 100644
--- a/bfd/elf32-sh.c
+++ b/bfd/elf32-sh.c
@@ -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 '_'