]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
clean-up aarch64: move the name of the build attributes section into include/elf...
authorMatthieu Longo <matthieu.longo@arm.com>
Fri, 24 Jan 2025 15:53:49 +0000 (15:53 +0000)
committerMatthieu Longo <matthieu.longo@arm.com>
Tue, 4 Mar 2025 11:02:03 +0000 (11:02 +0000)
bfd/elfnn-aarch64.c
include/elf/aarch64.h

index 968e3ee047ce5a178bca01f9948a6758a4c76fad..548da1f8b30137abb3a6496e9db6b92f64243215 100644 (file)
@@ -10761,7 +10761,7 @@ const struct elf_size_info elfNN_aarch64_size_info =
 #define elf_backend_hash_symbol elf_aarch64_hash_symbol
 
 #undef elf_backend_obj_attrs_section
-#define elf_backend_obj_attrs_section          ".ARM.attributes"
+#define elf_backend_obj_attrs_section          SEC_AARCH64_ATTRIBUTES
 
 #include "elfNN-target.h"
 
index d7904bb0357104b261e37e22c0f6e82008e61a77..e218e07fa7306fbb1b2d087a5f63c4f26b9b3b98 100644 (file)
@@ -30,6 +30,8 @@
 /* MTE memory tag segment type.  */
 #define PT_AARCH64_MEMTAG_MTE     (PT_LOPROC + 0x2)
 
+/* Name of the ELF section holding the attributes.  */
+#define SEC_AARCH64_ATTRIBUTES ".ARM.attributes"
 /* Additional section types.  */
 /* Section holds attributes.  */
 #define SHT_AARCH64_ATTRIBUTES (SHT_LOPROC + 3)