Remove unnecessary ELF_MINPAGESIZE defines
authorAlan Modra <amodra@gmail.com>
Sat, 1 Jan 2022 03:20:37 +0000 (13:50 +1030)
committerAlan Modra <amodra@gmail.com>
Sat, 1 Jan 2022 03:52:09 +0000 (14:22 +1030)
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.

bfd/elf32-arm.c
bfd/elf32-metag.c
bfd/elf64-x86-64.c
bfd/elfnn-aarch64.c

index 1655d52e2844e070e0baa2bd03af4a6f835283c8..faf14e9c2f1d1df9674e0de452e024ae19c72967 100644 (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
 
index 984741847a9ed0d14f21a028d93266336c08b2b9..633ea46c996819d6e6ad4e5ad3f49cadbf208fc5 100644 (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
index 6d201dfe5bce4112f2e99ffb292783fecb2b33ba..f6f027158becd0b3e5f26dd5a3e4c51630d0add2 100644 (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"
index 051aff5c1b0e3efa633427239fdf64710ed438a6..31f4ce55cc1f8866f4dd0c0f7f315b0bb063dcac 100644 (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            \