From 79e5982fedce17e8d61581892353d486bcc3c25f Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Fri, 4 Jun 1999 12:45:07 +0000 Subject: [PATCH] Define ELF_MAXPAGESIZE for all ELF based ports. Produce an error message of ELF_MAXPAGESIZE is not defined. --- bfd/ChangeLog | 9 +++++++++ bfd/elf32-gen.c | 1 + bfd/elf32-i860.c | 7 ++++--- bfd/elf32-i960.c | 1 + bfd/elf64-gen.c | 1 + bfd/elfxx-target.h | 4 ++-- 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 + + * 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 * 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