diff options
-rw-r--r-- | bfd/ChangeLog | 7 | ||||
-rw-r--r-- | bfd/config.bfd | 1 | ||||
-rw-r--r-- | bfd/elf32-arm.h | 4 | ||||
-rw-r--r-- | bfd/elf32-ppc.c | 4 | ||||
-rw-r--r-- | bfd/elf32-sh.c | 6 |
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 '_' |