|
2 | 2 | // RUN: %clang --target=i686-pc-openbsd -static -### %s 2>&1 \
|
3 | 3 | // RUN: | FileCheck --check-prefix=CHECK-LD-STATIC-EH %s
|
4 | 4 | // CHECK-LD-STATIC-EH: "-cc1" "-triple" "i686-pc-openbsd"
|
5 |
| -// CHECK-LD-STATIC-EH: ld{{.*}}" "-e" "__start" "--eh-frame-hdr" "-Bstatic" "-o" "a.out" "{{.*}}rcrt0.o" "{{.*}}crtbegin.o" "{{.*}}.o" "-lcompiler_rt" "-lc" "-lcompiler_rt" "{{.*}}crtend.o" |
| 5 | +// CHECK-LD-STATIC-EH: ld{{.*}}" "{{.*}}" "--eh-frame-hdr" "-Bstatic" |
6 | 6 |
|
7 | 7 | // Check for profiling variants of libraries when linking and -nopie
|
8 | 8 | // RUN: %clang --target=i686-pc-openbsd -pg -pthread -### %s 2>&1 \
|
|
26 | 26 | // Check that the new linker flags are passed to OpenBSD
|
27 | 27 | // RUN: %clang --target=i686-pc-openbsd -r -### %s 2>&1 \
|
28 | 28 | // RUN: | FileCheck --check-prefix=CHECK-LD-R %s
|
29 |
| -// RUN: %clang --target=i686-pc-openbsd -s -### %s 2>&1 \ |
30 |
| -// RUN: | FileCheck --check-prefix=CHECK-LD-S %s |
31 |
| -// RUN: %clang --target=i686-pc-openbsd -t -### %s 2>&1 \ |
32 |
| -// RUN: | FileCheck --check-prefix=CHECK-LD-T %s |
| 29 | +// RUN: %clang --target=i686-pc-openbsd -s -t -### %s 2>&1 \ |
| 30 | +// RUN: | FileCheck --check-prefix=CHECK-LD-ST %s |
33 | 31 | // RUN: %clang --target=mips64-unknown-openbsd -### %s 2>&1 \
|
34 | 32 | // RUN: | FileCheck --check-prefix=CHECK-MIPS64-LD %s
|
35 | 33 | // RUN: %clang --target=mips64el-unknown-openbsd -### %s 2>&1 \
|
|
39 | 37 | // CHECK-LD-R-NOT: "-l
|
40 | 38 | // CHECK-LD-R-NOT: crt{{[^./\\]+}}.o
|
41 | 39 | // CHECK-LD-R: "-r"
|
42 |
| -// CHECK-LD-S: "-cc1" "-triple" "i686-pc-openbsd" |
43 |
| -// CHECK-LD-S: ld{{.*}}" "-e" "__start" "--eh-frame-hdr" "-dynamic-linker" "{{.*}}ld.so" "-o" "a.out" "{{.*}}crt0.o" "{{.*}}crtbegin.o" "-L{{.*}}" "-s" "{{.*}}.o" "-lcompiler_rt" "-lc" "-lcompiler_rt" "{{.*}}crtend.o" |
44 |
| -// CHECK-LD-T: "-cc1" "-triple" "i686-pc-openbsd" |
45 |
| -// CHECK-LD-T: ld{{.*}}" "-e" "__start" "--eh-frame-hdr" "-dynamic-linker" "{{.*}}ld.so" "-o" "a.out" "{{.*}}crt0.o" "{{.*}}crtbegin.o" "-L{{.*}}" "-t" "{{.*}}.o" "-lcompiler_rt" "-lc" "-lcompiler_rt" "{{.*}}crtend.o" |
| 40 | +// CHECK-LD-ST: "-cc1" "-triple" "i686-pc-openbsd" |
| 41 | +// CHECK-LD-ST: ld{{.*}}" "{{.*}}" "-s" "-t" |
46 | 42 | // CHECK-MIPS64-LD: "-cc1" "-triple" "mips64-unknown-openbsd"
|
47 |
| -// CHECK-MIPS64-LD: ld{{.*}}" "-EB" "-e" "__start" "--eh-frame-hdr" "-dynamic-linker" "{{.*}}ld.so" "-o" "a.out" "{{.*}}crt0.o" "{{.*}}crtbegin.o" "-L{{.*}}" "{{.*}}.o" "-lcompiler_rt" "-lc" "-lcompiler_rt" "{{.*}}crtend.o" |
| 43 | +// CHECK-MIPS64-LD: ld{{.*}}" "-EB" |
48 | 44 | // CHECK-MIPS64EL-LD: "-cc1" "-triple" "mips64el-unknown-openbsd"
|
49 |
| -// CHECK-MIPS64EL-LD: ld{{.*}}" "-EL" "-e" "__start" "--eh-frame-hdr" "-dynamic-linker" "{{.*}}ld.so" "-o" "a.out" "{{.*}}crt0.o" "{{.*}}crtbegin.o" "-L{{.*}}" "{{.*}}.o" "-lcompiler_rt" "-lc" "-lcompiler_rt" "{{.*}}crtend.o" |
| 45 | +// CHECK-MIPS64EL-LD: ld{{.*}}" "-EL" |
50 | 46 |
|
51 | 47 | // Check that --sysroot is passed to the linker
|
52 | 48 | // RUN: %clang --target=i686-pc-openbsd -### %s 2>&1 \
|
|
0 commit comments