[flang-commits] [clang] [flang] [llvm] [clang] Switch to Default PIE on FreeBSD (PR #206139)

via flang-commits flang-commits at lists.llvm.org
Tue Jul 21 07:33:35 PDT 2026


================
@@ -58,21 +58,21 @@
 ! RUN: %flang -target i386-pc-openbsd -pie -### %s 2>&1 \
 ! RUN:   | FileCheck %s --check-prefix=PIE
 !
-! On FreeBSD, -pie is not passed to the linker, but can be forced.
+! On FreeBSD, -pie is passed to the linker by default, but can be disabled.
 ! RUN: %flang -target amd64-pc-freebsd -### %s 2>&1 \
-! RUN:   | FileCheck %s --check-prefix=NO-PIE
+! RUN:   | FileCheck %s --check-prefix=PIE
 ! RUN: %flang -target i386-pc-freebsd -### %s 2>&1 \
-! RUN:   | FileCheck %s --check-prefix=NO-PIE
+! RUN:   | FileCheck %s --check-prefix=PIE
 ! RUN: %flang -target aarch64-unknown-freebsd -### %s 2>&1 \
-! RUN:   | FileCheck %s --check-prefix=NO-PIE
+! RUN:   | FileCheck %s --check-prefix=PIE
 ! RUN: %flang -target arm-unknown-freebsd -### %s 2>&1 \
-! RUN:   | FileCheck %s --check-prefix=NO-PIE
----------------
aokblast wrote:

I move others and remain 2 pie and 1 no-pie 

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


More information about the flang-commits mailing list