[lld] [llvm] [lld][AArch64][Build Attributes] Add support for AArch64 Build Attributes (PR #144082)

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 4 12:20:39 PDT 2025


================
@@ -537,6 +538,46 @@ uint32_t ObjFile<ELFT>::getSectionIndex(const Elf_Sym &sym) const {
       this);
 }
 
+template <class ELFT>
+static void
+handleAArch64BAAndGnuProperties(ObjFile<ELFT> *file, Ctx &ctx,
+                                const AArch64BuildAttrSubsections &baInfo) {
+  if (file->aarch64PauthAbiCoreInfo) {
+    // Check for data mismatch
+    if (file->aarch64PauthAbiCoreInfo) {
+      if (baInfo.Pauth.TagPlatform != file->aarch64PauthAbiCoreInfo->platform ||
+          baInfo.Pauth.TagSchema != file->aarch64PauthAbiCoreInfo->version)
+        Err(ctx)
+            << file
+            << " Pauth Data mismatch: file contains both GNU properties and "
----------------
MaskRay wrote:

Is "PAuth" (uppercase A) the canonical spelling? Linker diagnostics are usually concise. Perhaps

GNU properties and build attributes have conflicting AArch64 PAuth data

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


More information about the llvm-commits mailing list