summaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>1999-06-04 12:45:07 +0000
committerNick Clifton <nickc@redhat.com>1999-06-04 12:45:07 +0000
commitef7691c3c2caab64005dd2c4c4f793bcd3ee880b (patch)
tree40fc2e114c43c0f01d84f7274a86d2f933830e8c /bfd
parentdf7b9111de0736e012222e0171784edd0156e727 (diff)
downloadbinutils-redhat-ef7691c3c2caab64005dd2c4c4f793bcd3ee880b.tar.gz
Define ELF_MAXPAGESIZE for all ELF based ports.
Produce an error message of ELF_MAXPAGESIZE is not defined.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog9
-rw-r--r--bfd/elf32-gen.c1
-rw-r--r--bfd/elf32-i860.c7
-rw-r--r--bfd/elf32-i960.c1
-rw-r--r--bfd/elf64-gen.c1
-rw-r--r--bfd/elfxx-target.h4
6 files changed, 18 insertions, 5 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 1e39560541..d1e1af28c6 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,12 @@
+1999-06-04 Nick Clifton <nickc@cygnus.com>
+
+ * elfxx-target.h (ELF_MAXPAGESIZE): Produce an error message
+ if not defined.
+ * elf32-gen.c (ELF_MAXPAGESIZE): Define.
+ * elf32-i860.c (ELF_MAXPAGESIZE): Define.
+ * elf32-i960.c (ELF_MAXPAGESIZE): Define.
+ * elf64-gen.c (ELF_MAXPAGESIZE): Define.
+
1999-06-04 Ian Lance Taylor <ian@zembu.com>
* Makefile.am: Rebuild dependencies.
diff --git a/bfd/elf32-gen.c b/bfd/elf32-gen.c
index a4d3cac085..7ed35ae389 100644
--- a/bfd/elf32-gen.c
+++ b/bfd/elf32-gen.c
@@ -64,6 +64,7 @@ elf_generic_info_to_howto_rel (abfd, bfd_reloc, elf_reloc)
#define TARGET_BIG_NAME "elf32-big"
#define ELF_ARCH bfd_arch_unknown
#define ELF_MACHINE_CODE EM_NONE
+#define ELF_MAXPAGESIZE 0x1
#define bfd_elf32_bfd_reloc_type_lookup bfd_default_reloc_type_lookup
#define elf_info_to_howto elf_generic_info_to_howto
#define elf_info_to_howto_rel elf_generic_info_to_howto_rel
diff --git a/bfd/elf32-i860.c b/bfd/elf32-i860.c
index a8537a7550..6a2d2d9756 100644
--- a/bfd/elf32-i860.c
+++ b/bfd/elf32-i860.c
@@ -25,9 +25,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
#define bfd_elf32_bfd_reloc_type_lookup bfd_default_reloc_type_lookup
#define elf_info_to_howto _bfd_elf_no_info_to_howto
-#define TARGET_BIG_SYM bfd_elf32_i860_vec
-#define TARGET_BIG_NAME "elf32-i860"
-#define ELF_ARCH bfd_arch_i860
+#define TARGET_BIG_SYM bfd_elf32_i860_vec
+#define TARGET_BIG_NAME "elf32-i860"
+#define ELF_ARCH bfd_arch_i860
#define ELF_MACHINE_CODE EM_860
+#define ELF_MAXPAGESIZE 1 /* FIXME: This number is wrong, It should be the page size in bytes. */
#include "elf32-target.h"
diff --git a/bfd/elf32-i960.c b/bfd/elf32-i960.c
index 7a3fd56d99..c77f098853 100644
--- a/bfd/elf32-i960.c
+++ b/bfd/elf32-i960.c
@@ -163,5 +163,6 @@ elf32_i960_reloc_type_lookup (abfd, code)
#define TARGET_LITTLE_NAME "elf32-i960"
#define ELF_ARCH bfd_arch_i960
#define ELF_MACHINE_CODE EM_960
+#define ELF_MAXPAGESIZE 1 /* FIXME: This number is wrong, It should be the page size in bytes. */
#include "elf32-target.h"
diff --git a/bfd/elf64-gen.c b/bfd/elf64-gen.c
index 2f470ff057..78dc09d397 100644
--- a/bfd/elf64-gen.c
+++ b/bfd/elf64-gen.c
@@ -64,6 +64,7 @@ elf_generic_info_to_howto_rel (abfd, bfd_reloc, elf_reloc)
#define TARGET_BIG_NAME "elf64-big"
#define ELF_ARCH bfd_arch_unknown
#define ELF_MACHINE_CODE EM_NONE
+#define ELF_MAXPAGESIZE 0x1
#define bfd_elf64_bfd_reloc_type_lookup bfd_default_reloc_type_lookup
#define elf_info_to_howto elf_generic_info_to_howto
#define elf_info_to_howto_rel elf_generic_info_to_howto_rel
diff --git a/bfd/elfxx-target.h b/bfd/elfxx-target.h
index e264130962..735d95e464 100644
--- a/bfd/elfxx-target.h
+++ b/bfd/elfxx-target.h
@@ -201,9 +201,9 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
#define elf_info_to_howto_rel 0
#endif
-/* The default here used to 1, but that is silly. Set it to 0x1000 instead. */
#ifndef ELF_MAXPAGESIZE
-#define ELF_MAXPAGESIZE 0x1000
+ #error ELF_MAXPAGESIZE is not defined
+#define ELF_MAXPAGESIZE 1
#endif
#ifndef elf_backend_collect