]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Define ELF_MAXPAGESIZE for all ELF based ports.
authorNick Clifton <nickc@redhat.com>
Fri, 4 Jun 1999 12:45:07 +0000 (12:45 +0000)
committerNick Clifton <nickc@redhat.com>
Fri, 4 Jun 1999 12:45:07 +0000 (12:45 +0000)
Produce an error message of ELF_MAXPAGESIZE is not defined.

bfd/ChangeLog
bfd/elf32-gen.c
bfd/elf32-i860.c
bfd/elf32-i960.c
bfd/elf64-gen.c
bfd/elfxx-target.h

index 1e395605415e9320b34be88138b8b8d2ac31d9d8..d1e1af28c6f4143ae1961211170ff887b79a919c 100644 (file)
@@ -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.
index a4d3cac0850f6063e277e8e778482a88ca2c56da..7ed35ae3895c47fcd0c8c0f12358bf10e7bd3abc 100644 (file)
@@ -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
index a8537a75508faa3830db0e62d3f8a03d4793a033..6a2d2d97563518b39dbfd22b227fc893b64b6867 100644 (file)
@@ -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"
index 7a3fd56d996c2cdfa3c696867bd529d1f3c45146..c77f09885300bc46af2205b968908344afc48f85 100644 (file)
@@ -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"
index 2f470ff057fbac5bc1a42a5f9c34c666428a0b7f..78dc09d397881468e3d21a1c7a4df4ab9abc57b5 100644 (file)
@@ -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
index e2641309623ee790d121cdfd0030fe1162aa5beb..735d95e4644c08f896f774ec5afd97c617e799f8 100644 (file)
@@ -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