[llvm] [BOLT] Add GNUPropertyRewriter and warn on AArch64 BTI note (PR #161206)

Paschalis Mpeis via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 1 03:17:38 PDT 2025


================
@@ -0,0 +1,10 @@
+// This test checks that the GNUPropertyRewriter can decode the BTI feature flag.
+// It decodes an executable with BTI, and checks for the warning.
+
+RUN: yaml2obj %p/Inputs/property-note-bti.yaml &> %t.exe
+
+RUN: llvm-readelf -n %t.exe | FileCheck %s
+CHECK: BTI
+
+RUN: llvm-bolt %t.exe -o %t.exe.bolt | FileCheck %s -check-prefix=CHECK-BOLT
+CHECK-BOLT: BOLT-WARNING: binary is using BTI.
----------------
paschalis-mpeis wrote:

nit: can expand to match the whole warning?

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


More information about the llvm-commits mailing list