[lld] [llvm] [lld][AArch64][Build Attributes] Add support for AArch64 Build Attributes (PR #144082)
Peter Smith via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 2 09:21:58 PDT 2025
================
@@ -637,13 +707,27 @@ template <class ELFT> void ObjFile<ELFT>::parse(bool ignoreComdats) {
}
break;
case EM_AARCH64:
- // FIXME: BuildAttributes have been implemented in llvm, but not yet in
- // lld. Remove the section so that it does not accumulate in the output
- // file. When support is implemented we expect not to output a build
- // attributes section in files of type ET_EXEC or ET_SHARED, but ld -r
- // ouptut will need a single merged attributes section.
- if (sec.sh_type == SHT_AARCH64_ATTRIBUTES)
+ // At this stage AArch64 Build Attributes does not replace GNU Properties.
----------------
smithp35 wrote:
I think we can cut down the size of the comment. Perhaps
Extract Build Attributes section contents into aarch64BAsubSections. Input objects may contain both build Build Attributes and GNU properties. We delay processing Build Attributes until we have finished reading all sections so that we can check that these are consistent.
https://github.com/llvm/llvm-project/pull/144082
More information about the llvm-commits
mailing list