[lld] [AArch64][GCS][LLD] Introduce -zgcs-report-dynamic Command Line Option (PR #127787)

Jack Styles via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 28 00:49:25 PST 2025


================
@@ -2825,6 +2885,17 @@ static void readSecurityNotes(Ctx &ctx) {
       return {ctx, DiagLevel::None};
     return report(config);
   };
+  auto reportGcsPolicy = [&](GcsReportPolicy config,
+                             bool cond) -> ELFSyncStream {
+    if (cond)
----------------
Stylie777 wrote:

I have created a struct for `GcsReportPolicy` so we can have this. I will probably revisit this and try to tidy it up - I think it can be improved.

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


More information about the llvm-commits mailing list