Skip to content

Commit

Permalink
clean-up aarch64: move the name of the build attributes section into …
Browse files Browse the repository at this point in the history
…include/elf/aarch64.h
  • Loading branch information
Matthieu Longo committed Mar 4, 2025
1 parent 29b221f commit eb6e183
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion bfd/elfnn-aarch64.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
2 changes: 2 additions & 0 deletions include/elf/aarch64.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit eb6e183

Please sign in to comment.