This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
[PATCH] Fix for maximum page size on NTO
- From: Jeff Baker <jbaker at qnx dot com>
- To: "'binutils at sources dot redhat dot com'" <binutils at sources dot redhat dot com>
- Date: Fri, 11 Jul 2003 10:05:04 -0400
- Subject: [PATCH] Fix for maximum page size on NTO
ChangeLog:
2003-07-11 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.
Index: config.bfd
===================================================================
RCS file: /cvs/src/src/bfd/config.bfd,v
retrieving revision 1.140
diff -r1.140 config.bfd
161a162
> targ_cflags=-D__QNXTARGET__
946a963
> targ_cflags=-D__QNXTARGET__
1069a1087
> targ_cflags=-D__QNXTARGET__
Index: elf32-arm.h
===================================================================
RCS file: /cvs/src/src/bfd/elf32-arm.h,v
retrieving revision 1.107
diff -r1.107 elf32-arm.h
3702c3702,3706
< #define ELF_MAXPAGESIZE 0x8000
---
> #ifdef __QNXTARGET__
> #define ELF_MAXPAGESIZE 0x1000
> #else
> #define ELF_MAXPAGESIZE 0x8000
> #endif
Index: elf32-sh.c
===================================================================
RCS file: /cvs/src/src/bfd/elf32-sh.c,v
retrieving revision 1.84
diff -r1.84 elf32-sh.c
7334c7334,7338
< #define ELF_MAXPAGESIZE 128
---
> #ifdef __QNXTARGET__
> #define ELF_MAXPAGESIZE 0x1000
> #else
> #define ELF_MAXPAGESIZE 0x80
> #endif
Index: elf32-ppc.c
===================================================================
RCS file: /cvs/src/src/bfd/elf32-ppc.c,v
retrieving revision 1.92
diff -r1.92 elf32-ppc.c
6029c6029,6033
< #define ELF_MAXPAGESIZE 0x10000
---
> #ifdef __QNXTARGET__
> #define ELF_MAXPAGESIZE 0x1000
> #else
> #define ELF_MAXPAGESIZE 0x10000
> #endif