[lld] [AArch64][GCS][LLD] Introduce -zgcs-report-dynamic Command Line Option (PR #127787)
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 19 09:26:15 PST 2025
================
@@ -49,11 +49,37 @@
# REPORT-WARN: warning: func2.o: -z gcs-report: file does not have GNU_PROPERTY_AARCH64_FEATURE_1_GCS property
# REPORT-ERROR: error: func3.o: -z gcs-report: file does not have GNU_PROPERTY_AARCH64_FEATURE_1_GCS property
+## gcs-report-dynamic should report any dynamic objects that does not have the gcs property. This also ensures the inhertance from gcs-report is working correctly.
+
+# RUN: ld.lld func1-gcs.o func3-gcs.o no-gcs.so force-gcs.so -o /dev/null -z gcs-report=warning -z gcs=always 2>&1 | FileCheck --check-prefix=REPORT-WARN-DYNAMIC %s
----------------
MaskRay wrote:
omit `-o /dev/null` since `cd %t` has been executed. See 0ffe270d0e1dadc3e16f8fa79882fc3b31d28559
https://github.com/llvm/llvm-project/pull/127787
More information about the llvm-commits
mailing list