aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2024-12-18 17:36:01 +1030
committerAlan Modra <amodra@gmail.com>2024-12-19 07:56:42 +1030
commita9baa81f50258d388e78a680a3da233c9e1a3d26 (patch)
treef85d15607b9a4e472c6c5b12c5d60b0a875bb452
parentc672efba42291fa43bf2238fb3b2c4b90f5c7fef (diff)
downloadbinutils-a9baa81f50258d388e78a680a3da233c9e1a3d26.zip
binutils-a9baa81f50258d388e78a680a3da233c9e1a3d26.tar.gz
binutils-a9baa81f50258d388e78a680a3da233c9e1a3d26.tar.bz2
Add a few elf_backend_data target ids
aarch64, am33, csky, ia64-vms, kvx, and sparc64 all use more than the base GENERIC_ELF_DATA, but don't set ELF_TARGET_ID. Fix that. These are all targets that use other than GENERIC_ELF_DATA in their object and hash table ids. * elf32-am33lin.c, * elf32-csky.c, * elf64-ia64-vms.c, * elf64-sparc.c, * elfnn-aarch64.c, * elfnn-kvx.c (ELF_TARGET_ID): Define.
-rw-r--r--bfd/elf32-am33lin.c1
-rw-r--r--bfd/elf32-csky.c1
-rw-r--r--bfd/elf64-ia64-vms.c1
-rw-r--r--bfd/elf64-sparc.c1
-rw-r--r--bfd/elfnn-aarch64.c1
-rw-r--r--bfd/elfnn-kvx.c1
6 files changed, 6 insertions, 0 deletions
diff --git a/bfd/elf32-am33lin.c b/bfd/elf32-am33lin.c
index edb7064..0b981a3 100644
--- a/bfd/elf32-am33lin.c
+++ b/bfd/elf32-am33lin.c
@@ -28,6 +28,7 @@
#define TARGET_LITTLE_SYM am33_elf32_linux_vec
#define TARGET_LITTLE_NAME "elf32-am33lin"
#define ELF_ARCH bfd_arch_mn10300
+#define ELF_TARGET_ID MN10300_ELF_DATA
#define ELF_MACHINE_CODE EM_MN10300
#define ELF_MACHINE_ALT1 EM_CYGNUS_MN10300
#define ELF_MAXPAGESIZE 0x1000
diff --git a/bfd/elf32-csky.c b/bfd/elf32-csky.c
index ff92cbf..0911a3f 100644
--- a/bfd/elf32-csky.c
+++ b/bfd/elf32-csky.c
@@ -5299,6 +5299,7 @@ elf32_csky_obj_attrs_handle_unknown (bfd *abfd ATTRIBUTE_UNUSED,
#define TARGET_LITTLE_SYM csky_elf32_le_vec
#define TARGET_LITTLE_NAME "elf32-csky-little"
#define ELF_ARCH bfd_arch_csky
+#define ELF_TARGET_ID CSKY_ELF_DATA
#define ELF_MACHINE_CODE EM_CSKY
#define ELF_MACHINE_ALT1 EM_CSKY_OLD
#define ELF_MAXPAGESIZE 0x1000
diff --git a/bfd/elf64-ia64-vms.c b/bfd/elf64-ia64-vms.c
index 54133c9..ea778de 100644
--- a/bfd/elf64-ia64-vms.c
+++ b/bfd/elf64-ia64-vms.c
@@ -5449,6 +5449,7 @@ static const struct elf_size_info elf64_ia64_vms_size_info = {
};
#define ELF_ARCH bfd_arch_ia64
+#define ELF_TARGET_ID IA64_ELF_DATA
#define ELF_MACHINE_CODE EM_IA_64
#define ELF_MAXPAGESIZE 0x10000 /* 64KB */
#define ELF_COMMONPAGESIZE 0x200 /* 16KB */
diff --git a/bfd/elf64-sparc.c b/bfd/elf64-sparc.c
index 6f6d687..fb19c15 100644
--- a/bfd/elf64-sparc.c
+++ b/bfd/elf64-sparc.c
@@ -888,6 +888,7 @@ const struct elf_size_info elf64_sparc_size_info =
#define TARGET_BIG_SYM sparc_elf64_vec
#define TARGET_BIG_NAME "elf64-sparc"
#define ELF_ARCH bfd_arch_sparc
+#define ELF_TARGET_ID SPARC_ELF_DATA
#define ELF_MAXPAGESIZE 0x100000
#define ELF_COMMONPAGESIZE 0x2000
diff --git a/bfd/elfnn-aarch64.c b/bfd/elfnn-aarch64.c
index d0b6912..61aabca 100644
--- a/bfd/elfnn-aarch64.c
+++ b/bfd/elfnn-aarch64.c
@@ -10599,6 +10599,7 @@ const struct elf_size_info elfNN_aarch64_size_info =
};
#define ELF_ARCH bfd_arch_aarch64
+#define ELF_TARGET_ID AARCH64_ELF_DATA
#define ELF_MACHINE_CODE EM_AARCH64
#define ELF_MAXPAGESIZE 0x10000
#define ELF_COMMONPAGESIZE 0x1000
diff --git a/bfd/elfnn-kvx.c b/bfd/elfnn-kvx.c
index e295319..e7028dc 100644
--- a/bfd/elfnn-kvx.c
+++ b/bfd/elfnn-kvx.c
@@ -4676,6 +4676,7 @@ elfNN_kvx_plt_sym_val (bfd_vma i, const asection *plt,
}
#define ELF_ARCH bfd_arch_kvx
+#define ELF_TARGET_ID KVX_ELF_DATA
#define ELF_MACHINE_CODE EM_KVX
#define ELF_MAXPAGESIZE 0x10000
#define ELF_MINPAGESIZE 0x1000