Remove unnecessary ELF_MINPAGESIZE defines

The idea of this patch is to make it easy to see which targets (just
sparc) have ELF_MINPAGESIZE != ELF_COMMONPAGESIZE.

	* elf32-arm.c (ELF_MINPAGESIZE): Don't define.
	* elf32-metag.c: Likewise.
	* elfnn-aarch64.c: Likewise.
	* elf64-x86-64.c: Likewise.  Also don't redefine a bunch of other
	macros for l1om elf64-target.h use that are unchanged from default.
This commit is contained in:
Alan Modra 2022-01-01 13:50:37 +10:30
parent f01e6568a8
commit bb67763979
4 changed files with 1 additions and 18 deletions

View File

@ -20234,7 +20234,6 @@ elf32_arm_backend_symbol_processing (bfd *abfd, asymbol *sym)
#else
#define ELF_MAXPAGESIZE 0x10000
#endif
#define ELF_MINPAGESIZE 0x1000
#define ELF_COMMONPAGESIZE 0x1000
#define bfd_elf32_mkobject elf32_arm_mkobject
@ -20410,7 +20409,6 @@ elf32_arm_nacl_plt_sym_val (bfd_vma i, const asection *plt,
#undef elf_backend_final_write_processing
#define elf_backend_final_write_processing elf32_arm_final_write_processing
#undef ELF_MINPAGESIZE
#define ELF_MINPAGESIZE 0x1000
#undef ELF_COMMONPAGESIZE
#define ELF_COMMONPAGESIZE 0x1000

View File

@ -3998,8 +3998,7 @@ elf_metag_plt_sym_val (bfd_vma i, const asection *plt,
#define ELF_ARCH bfd_arch_metag
#define ELF_TARGET_ID METAG_ELF_DATA
#define ELF_MACHINE_CODE EM_METAG
#define ELF_MINPAGESIZE 0x1000
#define ELF_MAXPAGESIZE 0x4000
#define ELF_MAXPAGESIZE 0x4000
#define ELF_COMMONPAGESIZE 0x1000
#define TARGET_LITTLE_SYM metag_elf32_vec

View File

@ -5229,7 +5229,6 @@ elf_x86_64_special_sections[]=
#else
# define ELF_MAXPAGESIZE 0x200000
#endif
#define ELF_MINPAGESIZE 0x1000
#define ELF_COMMONPAGESIZE 0x1000
#define elf_backend_can_gc_sections 1
@ -5414,18 +5413,6 @@ elf64_l1om_elf_object_p (bfd *abfd)
#define elf_backend_object_p elf64_l1om_elf_object_p
/* Restore defaults. */
#undef ELF_MAXPAGESIZE
#undef ELF_MINPAGESIZE
#undef ELF_COMMONPAGESIZE
#if DEFAULT_LD_Z_SEPARATE_CODE
# define ELF_MAXPAGESIZE 0x1000
#else
# define ELF_MAXPAGESIZE 0x200000
#endif
#define ELF_MINPAGESIZE 0x1000
#define ELF_COMMONPAGESIZE 0x1000
#undef elf_backend_plt_alignment
#define elf_backend_plt_alignment 4
#undef ELF_TARGET_OS
#include "elf64-target.h"

View File

@ -9965,7 +9965,6 @@ const struct elf_size_info elfNN_aarch64_size_info =
#define ELF_ARCH bfd_arch_aarch64
#define ELF_MACHINE_CODE EM_AARCH64
#define ELF_MAXPAGESIZE 0x10000
#define ELF_MINPAGESIZE 0x1000
#define ELF_COMMONPAGESIZE 0x1000
#define bfd_elfNN_close_and_cleanup \