aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2022-01-01 13:50:37 +1030
committerAlan Modra <amodra@gmail.com>2022-01-01 14:22:09 +1030
commitbb67763979c2084af185a8bf6ead4a05a50e7b9d (patch)
treefe600f7afbc8c77775ef6bcd9488a19ebb5e1f43 /bfd
parentf01e6568a892beb841da00fcb18556fe75e74e39 (diff)
downloadbinutils-bb67763979c2084af185a8bf6ead4a05a50e7b9d.zip
binutils-bb67763979c2084af185a8bf6ead4a05a50e7b9d.tar.gz
binutils-bb67763979c2084af185a8bf6ead4a05a50e7b9d.tar.bz2
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.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/elf32-arm.c2
-rw-r--r--bfd/elf32-metag.c3
-rw-r--r--bfd/elf64-x86-64.c13
-rw-r--r--bfd/elfnn-aarch64.c1
4 files changed, 1 insertions, 18 deletions
diff --git a/bfd/elf32-arm.c b/bfd/elf32-arm.c
index 1655d52..faf14e9 100644
--- a/bfd/elf32-arm.c
+++ b/bfd/elf32-arm.c
@@ -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
diff --git a/bfd/elf32-metag.c b/bfd/elf32-metag.c
index 9847418..633ea46 100644
--- a/bfd/elf32-metag.c
+++ b/bfd/elf32-metag.c
@@ -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
diff --git a/bfd/elf64-x86-64.c b/bfd/elf64-x86-64.c
index 6d201df..f6f0271 100644
--- a/bfd/elf64-x86-64.c
+++ b/bfd/elf64-x86-64.c
@@ -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"
diff --git a/bfd/elfnn-aarch64.c b/bfd/elfnn-aarch64.c
index 051aff5..31f4ce5 100644
--- a/bfd/elfnn-aarch64.c
+++ b/bfd/elfnn-aarch64.c
@@ -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 \