[clang] Add necessary linker flags when -static-pie is enabled in BareMetal Toolchain (PR #147589)

Fangrui Song via cfe-commits cfe-commits at lists.llvm.org
Thu Aug 7 09:17:33 PDT 2025


================
@@ -203,6 +203,19 @@
 // RUN:   | FileCheck -check-prefix=CHECK-RV64-GNU-RELAX %s
 // CHECK-RV64-GNU-RELAX-NOT: "--no-relax"
 
+// Check that "-static -pie" is forwarded to linker when "-static-pie" is used
----------------
MaskRay wrote:

`/// Check` to make non-RUN-non-CHECK comments stand out. (In the future we might develop tools to detect misspelled check prefixes. hope we don't misinterrept Check as a misspelled check prefix :))

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


More information about the cfe-commits mailing list