[lld] [llvm] [lld][AArch64][Build Attributes] Add support for converting AArch64 Build Attributes to GNU Properties (PR #131990)
Peter Smith via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 9 09:41:56 PDT 2025
================
@@ -638,25 +808,144 @@ 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)
+ case EM_AARCH64: {
+ // The specification states that if a file contains both GNU properties
+ // and AArch64 build attributes, they can be assumed to be identical.
+ // Therefore, if a file contains GNU properties, the AArch64 build
----------------
smithp35 wrote:
This comment looks stale. Could it be updated to reflect the current state?
https://github.com/llvm/llvm-project/pull/131990
More information about the llvm-commits
mailing list