[lld] [llvm] [lld][AArch64][Build Attributes] Add support for converting AArch64 Build Attributes to GNU Properties (PR #131990)

Oliver Stannard via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 4 02:23:11 PDT 2025


================
@@ -207,6 +209,53 @@ static void updateSupportedARMFeatures(Ctx &ctx,
   ctx.arg.armHasThumb2ISA |= thumb && *thumb >= ARMBuildAttrs::AllowThumb32;
 }
 
+struct KnownAArch64BuildAttrSubsections {
+  struct PauthSubSection {
+    unsigned tagPlatform = 0;
+    unsigned tagSchema = 0;
+  } pauth;
+  struct FAndBSubSection {
+    unsigned tagBTI = 0;
+    unsigned tagPAC = 0;
+    unsigned tagGCS = 0;
+  } fAndB;
+};
+
+static KnownAArch64BuildAttrSubsections
+extractBuildAttributesSubsections(Ctx &ctx,
----------------
ostannard wrote:

The `ctx` and `isec` arguments are unused (but see comment below, maybe this whole function can be removed).

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


More information about the llvm-commits mailing list