https://github.com/martinuy created
https://github.com/llvm/llvm-project/pull/157779
In this change we added the -Wptrauth-weak-schema diagnostic (enabled by
default on targets that support pointer authentication) to warn about the use
of a weak signing schema for function pointers stored in g
https://github.com/martinuy updated
https://github.com/llvm/llvm-project/pull/157779
>From 8fe991fb658d02351b2e819b275de1e821075f03 Mon Sep 17 00:00:00 2001
From: Martin Balao Alonso
Date: Tue, 9 Sep 2025 18:29:38 -0700
Subject: [PATCH 1/3] [clang][ptrauth] Warn about the use of a weak signing
martinuy wrote:
Thanks @kbeyls for having a look at this proposal. You raised a valid concern:
a developer that is not explicitly adding the `__ptrauth` qualifier to their
source code and is targeting an architecture that supports pointer
authentication might be caught by surprise with this ne
martinuy wrote:
@ojhunt May I ask you to have a look at this draft PR? Thanks!
https://github.com/llvm/llvm-project/pull/157779
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/martinuy updated
https://github.com/llvm/llvm-project/pull/157779
>From 91b44455ef04db0eaed778d34514acc3622eee54 Mon Sep 17 00:00:00 2001
From: Martin Balao Alonso
Date: Tue, 9 Sep 2025 18:29:38 -0700
Subject: [PATCH 1/3] [clang][ptrauth] Warn about the use of a weak signing
https://github.com/martinuy updated
https://github.com/llvm/llvm-project/pull/157779
>From 8fe991fb658d02351b2e819b275de1e821075f03 Mon Sep 17 00:00:00 2001
From: Martin Balao Alonso
Date: Tue, 9 Sep 2025 18:29:38 -0700
Subject: [PATCH 1/6] [clang][ptrauth] Warn about the use of a weak signing
@@ -0,0 +1,60 @@
+// RUN: %clang_cc1 -triple arm64e-apple-ios -fptrauth-calls
-fptrauth-intrinsics -fsyntax-only -Wno-unused-variable -verify %s
+// RUN: %clang_cc1 -triple arm64e-apple-ios -DNO_PTRAUTH -fsyntax-only
-Wno-unused-variable -verify=noptrauth %s
+
+// noptrauth-no-d
@@ -8357,6 +8357,16 @@ NamedDecl *Sema::ActOnVariableDeclarator(
D.isFunctionDefinition());
}
+ // Warn about the use of a weak pointer authentication schema on a variable
martinuy wrote:
Sounds good, but I have a questio