[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:22:01 PDT 2025


================
@@ -655,6 +739,14 @@ template <class ELFT> void ObjFile<ELFT>::parse(bool ignoreComdats) {
     }
   }
 
+  if (hasAArch64BuildAttributes) {
+    // Handle AArch64 Build Attributes and GNU properties:
+    // - Err on mismatched values.
+    // - Store missing values as GNU properties.
+    handleAArch64BAAndGnuProperties<ELFT>(this, ctx, hasGNUProperties,
----------------
smithp35 wrote:

If hasGNUProperties is true then we know that ObjFile has already had `andFeatures` and `aarch64PauthAbiCoreInfo` set.

I think this makes `gnuProperty` and its type `GnuPropertiesInfo` redundant. We are already passing `this` to handleAArch64BAAndGnuProperties so we can just read the values from there. 

https://github.com/llvm/llvm-project/pull/144082


More information about the llvm-commits mailing list