[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
Fri Apr 11 10:23:28 PDT 2025
================
@@ -207,6 +209,51 @@ static void updateSupportedARMFeatures(Ctx &ctx,
ctx.arg.armHasThumb2ISA |= thumb && *thumb >= ARMBuildAttrs::AllowThumb32;
}
+struct AArch64BuildAttrSubsections {
+ struct PauthSubSection {
+ unsigned tagPlatform = 0;
+ unsigned tagSchema = 0;
+ } pauth;
+ struct FAndBSubSection {
+ unsigned tagBTI = 0;
+ unsigned tagPAC = 0;
+ unsigned tagGCS = 0;
+ } fAndB;
+};
+
+static AArch64BuildAttrSubsections
----------------
smithp35 wrote:
Could be worth investigating to see whether this can be moved to Arch/AArch64.cpp . That's not an easy decision to make, as it moves code only used here into another file, but it stops this file getting so big with AArch64 specific code.
https://github.com/llvm/llvm-project/pull/131990
More information about the llvm-commits
mailing list