|
8 | 8 | // RUN: %clang --target=i686-pc-openbsd -pg -pthread -### %s 2>&1 \
|
9 | 9 | // RUN: | FileCheck --check-prefix=CHECK-PG %s
|
10 | 10 | // CHECK-PG: "-cc1" "-triple" "i686-pc-openbsd"
|
11 |
| -// CHECK-PG: ld{{.*}}" "-e" "__start" "--eh-frame-hdr" "-Bdynamic" "-dynamic-linker" "{{.*}}ld.so" "-nopie" "-o" "a.out" "{{.*}}gcrt0.o" "{{.*}}crtbegin.o" "{{.*}}.o" "-lcompiler_rt" "-lpthread_p" "-lc_p" "-lcompiler_rt" "{{.*}}crtend.o" |
| 11 | +// 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" |
12 | 12 |
|
13 | 13 | // Check CPU type for i386
|
14 | 14 | // RUN: %clang --target=i386-unknown-openbsd -### -c %s 2>&1 \
|
|
34 | 34 | // RUN: | FileCheck --check-prefix=CHECK-MIPS64-LD %s
|
35 | 35 | // RUN: %clang --target=mips64el-unknown-openbsd -### %s 2>&1 \
|
36 | 36 | // RUN: | FileCheck --check-prefix=CHECK-MIPS64EL-LD %s
|
37 |
| -// CHECK-LD-R: "-r" |
| 37 | +// CHECK-LD-R-NOT: "-e" |
38 | 38 | // CHECK-LD-R-NOT: "-dynamic-linker"
|
39 | 39 | // CHECK-LD-R-NOT: "-l
|
40 | 40 | // CHECK-LD-R-NOT: crt{{[^./\\]+}}.o
|
| 41 | +// CHECK-LD-R: "-r" |
41 | 42 | // CHECK-LD-S: "-cc1" "-triple" "i686-pc-openbsd"
|
42 |
| -// CHECK-LD-S: ld{{.*}}" "-e" "__start" "--eh-frame-hdr" "-Bdynamic" "-dynamic-linker" "{{.*}}ld.so" "-o" "a.out" "{{.*}}crt0.o" "{{.*}}crtbegin.o" "-L{{.*}}" "-s" "{{.*}}.o" "-lcompiler_rt" "-lc" "-lcompiler_rt" "{{.*}}crtend.o" |
| 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" |
43 | 44 | // CHECK-LD-T: "-cc1" "-triple" "i686-pc-openbsd"
|
44 |
| -// CHECK-LD-T: ld{{.*}}" "-e" "__start" "--eh-frame-hdr" "-Bdynamic" "-dynamic-linker" "{{.*}}ld.so" "-o" "a.out" "{{.*}}crt0.o" "{{.*}}crtbegin.o" "-L{{.*}}" "-t" "{{.*}}.o" "-lcompiler_rt" "-lc" "-lcompiler_rt" "{{.*}}crtend.o" |
| 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" |
45 | 46 | // CHECK-MIPS64-LD: "-cc1" "-triple" "mips64-unknown-openbsd"
|
46 |
| -// CHECK-MIPS64-LD: ld{{.*}}" "-EB" "-e" "__start" "--eh-frame-hdr" "-Bdynamic" "-dynamic-linker" "{{.*}}ld.so" "-o" "a.out" "{{.*}}crt0.o" "{{.*}}crtbegin.o" "-L{{.*}}" "{{.*}}.o" "-lcompiler_rt" "-lc" "-lcompiler_rt" "{{.*}}crtend.o" |
| 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" |
47 | 48 | // CHECK-MIPS64EL-LD: "-cc1" "-triple" "mips64el-unknown-openbsd"
|
48 |
| -// CHECK-MIPS64EL-LD: ld{{.*}}" "-EL" "-e" "__start" "--eh-frame-hdr" "-Bdynamic" "-dynamic-linker" "{{.*}}ld.so" "-o" "a.out" "{{.*}}crt0.o" "{{.*}}crtbegin.o" "-L{{.*}}" "{{.*}}.o" "-lcompiler_rt" "-lc" "-lcompiler_rt" "{{.*}}crtend.o" |
| 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" |
49 | 50 |
|
50 | 51 | // Check that --sysroot is passed to the linker
|
51 | 52 | // RUN: %clang --target=i686-pc-openbsd -### %s 2>&1 \
|
|
0 commit comments