From: Matthieu Longo Date: Fri, 24 Jan 2025 15:53:49 +0000 (+0000) Subject: clean-up aarch64: move the name of the build attributes section into include/elf... X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=eb6e183be1a065255bb36764d6a3ed04a48e4093;p=thirdparty%2Fbinutils-gdb.git clean-up aarch64: move the name of the build attributes section into include/elf/aarch64.h --- diff --git a/bfd/elfnn-aarch64.c b/bfd/elfnn-aarch64.c index 968e3ee047c..548da1f8b30 100644 --- a/bfd/elfnn-aarch64.c +++ b/bfd/elfnn-aarch64.c @@ -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" diff --git a/include/elf/aarch64.h b/include/elf/aarch64.h index d7904bb0357..e218e07fa73 100644 --- a/include/elf/aarch64.h +++ b/include/elf/aarch64.h @@ -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)