[clang] f0535c7 - [Driver] Check crt* when shared linking on OpenBSD
Brad Smith via cfe-commits
cfe-commits at lists.llvm.org
Sat Nov 4 18:11:43 PDT 2023
Author: Brad Smith
Date: 2023-11-04T21:11:21-04:00
New Revision: f0535c72bf574fe4c5a46925670591e79ce39959
URL: https://github.com/llvm/llvm-project/commit/f0535c72bf574fe4c5a46925670591e79ce39959
DIFF: https://github.com/llvm/llvm-project/commit/f0535c72bf574fe4c5a46925670591e79ce39959.diff
LOG: [Driver] Check crt* when shared linking on OpenBSD
Added:
Modified:
clang/test/Driver/openbsd.c
Removed:
################################################################################
diff --git a/clang/test/Driver/openbsd.c b/clang/test/Driver/openbsd.c
index f42da97110b5020..586c65f502a0d15 100644
--- a/clang/test/Driver/openbsd.c
+++ b/clang/test/Driver/openbsd.c
@@ -10,6 +10,12 @@
// CHECK-PG: "-cc1" "-triple" "i686-pc-openbsd"
// CHECK-PG: ld{{.*}}" "-e" "__start" "--eh-frame-hdr" "-dynamic-linker" "{{.*}}ld.so" "-nopie" "-o" "a.out" "{{.*}}gcrt0.o" "{{.*}}crtbegin.o" "{{.*}}.o" "-lcompiler_rt" "-lpthread_p" "-lc_p" "-lcompiler_rt" "{{.*}}crtend.o"
+// Check for variants of crt* when creating shared libs
+// RUN: %clang --target=i686-pc-openbsd -pthread -shared -### %s 2>&1 \
+// RUN: | FileCheck --check-prefix=CHECK-SHARED %s
+// CHECK-SHARED: "-cc1" "-triple" "i686-pc-openbsd"
+// CHECK-SHARED: ld{{.*}}" "--eh-frame-hdr" "-shared" "-o" "a.out" "{{.*}}crtbeginS.o" "{{.*}}.o" "-lcompiler_rt" "-lpthread" "-lcompiler_rt" "{{.*}}crtendS.o"
+
// Check CPU type for i386
// RUN: %clang --target=i386-unknown-openbsd -### -c %s 2>&1 \
// RUN: | FileCheck -check-prefix=CHECK-i386-CPU %s
More information about the cfe-commits
mailing list