[lld] [LLD] [ELF] Make {bti,gcs}-report=none silence warnings from force-bti/gcs=always (PR #186343)

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 13 10:00:24 PDT 2026


================
@@ -2946,14 +2959,14 @@ static void readSecurityNotes(Ctx &ctx) {
 
     reportUnless(ctx.arg.zBtiReport,
                  features & GNU_PROPERTY_AARCH64_FEATURE_1_BTI)
-        << f
-        << ": -z bti-report: file does not have "
+        << f << ": " << ctx.arg.zBtiReportSource
----------------
MaskRay wrote:

As you edit `ctx.arg.zBtiReportSource`, I expect a test that checks a different diagnostic.

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


More information about the llvm-commits mailing list