aboutsummaryrefslogtreecommitdiff
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
commit79e5982fedce17e8d61581892353d486bcc3c25f (patch)
tree6d9c1e7e11588e94f3165b75e536251a8c0bc3a2
parent4a54b4654de21aa1cd92c9d7ba607f31ce68f657 (diff)
downloadgdb-79e5982fedce17e8d61581892353d486bcc3c25f.zip
gdb-79e5982fedce17e8d61581892353d486bcc3c25f.tar.gz
gdb-79e5982fedce17e8d61581892353d486bcc3c25f.tar.bz2
Define ELF_MAXPAGESIZE for all ELF based ports.
Produce an error message of ELF_MAXPAGESIZE is not defined.
-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 1e39560..d1e1af2 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 a4d3cac..7ed35ae 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 a8537a7..6a2d2d9 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 7a3fd56..c77f098 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 2f470ff..78dc09d 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 e264130..735d95e 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