|
8 | 8 | ## In this case, the symbol .gfids$y is not present at all. |
9 | 9 |
|
10 | 10 | # RUN: yaml2obj %s --docnum=1 -o %t1.in.o |
11 | | -# RUN: not llvm-objcopy --strip-debug %t1.in.o %t1.out.o 2>&1 | FileCheck %s --check-prefix=ERROR-NOSYM |
| 11 | +# RUN: not llvm-objcopy --strip-debug %t1.in.o %t1.out.o 2>&1 | FileCheck %s --check-prefix=ERROR-NOSYM -DFILE=%t1.out.o |
12 | 12 |
|
13 | | -# ERROR-NOSYM: section '.gfids$y' does not have the corresponding symbol or the symbol has unexpected format |
| 13 | +# ERROR-NOSYM: error: '[[FILE]]': section '.gfids$y' does not have the corresponding symbol or the symbol has unexpected format |
14 | 14 |
|
15 | 15 | --- !COFF |
16 | 16 | header: |
@@ -55,9 +55,9 @@ symbols: |
55 | 55 | ## In this case, the symbol .giats$y has a non-zero offset. |
56 | 56 |
|
57 | 57 | # RUN: yaml2obj %s --docnum=2 -o %t2.in.o |
58 | | -# RUN: not llvm-objcopy --strip-debug %t2.in.o %t2.out.o 2>&1 | FileCheck %s --check-prefix=ERROR-OFFSET |
| 58 | +# RUN: not llvm-objcopy --strip-debug %t2.in.o %t2.out.o 2>&1 | FileCheck %s --check-prefix=ERROR-OFFSET -DFILE=%t2.out.o |
59 | 59 |
|
60 | | -# ERROR-OFFSET: section '.giats$y' does not have the corresponding symbol or the symbol has unexpected format |
| 60 | +# ERROR-OFFSET: error: '[[FILE]]': section '.giats$y' does not have the corresponding symbol or the symbol has unexpected format |
61 | 61 |
|
62 | 62 | --- !COFF |
63 | 63 | header: |
@@ -114,9 +114,9 @@ symbols: |
114 | 114 | ## In this case, the symbol .gljmp$y has a non-static storage class. |
115 | 115 |
|
116 | 116 | # RUN: yaml2obj %s --docnum=3 -o %t3.in.o |
117 | | -# RUN: not llvm-objcopy --strip-debug %t3.in.o %t3.out.o 2>&1 | FileCheck %s --check-prefix=ERROR-EXTERNAL |
| 117 | +# RUN: not llvm-objcopy --strip-debug %t3.in.o %t3.out.o 2>&1 | FileCheck %s --check-prefix=ERROR-EXTERNAL -DFILE=%t3.out.o |
118 | 118 |
|
119 | | -# ERROR-EXTERNAL: section '.gljmp$y' does not have the corresponding symbol or the symbol has unexpected format |
| 119 | +# ERROR-EXTERNAL: error: '[[FILE]]': section '.gljmp$y' does not have the corresponding symbol or the symbol has unexpected format |
120 | 120 |
|
121 | 121 | --- !COFF |
122 | 122 | header: |
@@ -169,9 +169,9 @@ symbols: |
169 | 169 | ## of .symidx directives, e.g .giats$y, .gljmp$y and .gehcont$y. |
170 | 170 |
|
171 | 171 | # RUN: yaml2obj %s --docnum=4 -o %t4.in.o |
172 | | -# RUN: not llvm-objcopy --strip-debug %t4.in.o %t4.out.o 2>&1 | FileCheck %s --check-prefix=ERROR-SYMIDX |
| 172 | +# RUN: not llvm-objcopy --strip-debug %t4.in.o %t4.out.o 2>&1 | FileCheck %s --check-prefix=ERROR-SYMIDX -DFILE=%t4.out.o |
173 | 173 |
|
174 | | -# ERROR-SYMIDX: section '.gfids$y' contains a .symidx (16) that is incorrect or was stripped |
| 174 | +# ERROR-SYMIDX: error: '[[FILE]]': section '.gfids$y' contains a .symidx (16) that is incorrect or was stripped |
175 | 175 | --- !COFF |
176 | 176 | header: |
177 | 177 | Machine: IMAGE_FILE_MACHINE_AMD64 |
|
0 commit comments