|
18 | 18 | ## of main.o.
|
19 | 19 | # RUN: rm -rf %t
|
20 | 20 | # RUN: split-file %s %t
|
21 |
| -# RUN: llvm-mc -g --filetype=obj %t/main.s -o %t/main.o |
| 21 | +# RUN: llvm-mc -g --filetype=obj -triple=x86_64-pc-linux %t/main.s -o %t/main.o |
22 | 22 | # RUN: llvm-nm -l %t/main.o | FileCheck %s --match-full-lines --implicit-check-not={{.}}
|
23 | 23 | # RUN: llvm-nm --line-numbers %t/main.o | FileCheck %s --match-full-lines --implicit-check-not={{.}}
|
24 | 24 |
|
|
34 | 34 |
|
35 | 35 | ## Check that in the absence of DWARF in the whole object, no line number
|
36 | 36 | ## information is printed.
|
37 |
| -# RUN: llvm-mc --filetype=obj %t/main.s -o %t/no-dwarf.o |
| 37 | +# RUN: llvm-mc --filetype=obj %t/main.s -triple=x86_64-pc-linux -o %t/no-dwarf.o |
38 | 38 | # RUN: llvm-nm -l %t/no-dwarf.o | FileCheck %s --check-prefix=NO-DWARF --match-full-lines --implicit-check-not={{.}}
|
39 | 39 |
|
40 | 40 | # NO-DWARF: 0000000000001234 a absolute_symbol
|
|
49 | 49 |
|
50 | 50 | ## Check that printing line numbers for undefined values is not attempted in
|
51 | 51 | ## the absence of any relocation section.
|
52 |
| -# RUN: llvm-mc --filetype=obj %t/undef-no-reloc-sections.s -o %t/undef-no-reloc-sections.o |
| 52 | +# RUN: llvm-mc --filetype=obj %t/undef-no-reloc-sections.s -triple=x86_64-pc-linux -o %t/undef-no-reloc-sections.o |
53 | 53 | # RUN: llvm-nm --line-numbers %t/undef-no-reloc-sections.o | FileCheck %s --check-prefix=UNDEF-NO-RELOC-SECTIONS --match-full-lines --implicit-check-not={{.}}
|
54 | 54 |
|
55 | 55 | # UNDEF-NO-RELOC-SECTIONS: U undef
|
56 | 56 |
|
57 | 57 | ## Check that printing line numbers for undefined values does not include
|
58 | 58 | ## relocations for non-text sections. This is broken out of main.s to ensure
|
59 | 59 | ## that the data relocation for undef comes first.
|
60 |
| -# RUN: llvm-mc -g --filetype=obj %t/undef-data-reloc.s -o %t/undef-data-reloc.o |
| 60 | +# RUN: llvm-mc -g --filetype=obj %t/undef-data-reloc.s -triple=x86_64-pc-linux -o %t/undef-data-reloc.o |
61 | 61 | # RUN: llvm-nm --line-numbers %t/undef-data-reloc.o | FileCheck %s --check-prefix=UNDEF-DATA-RELOC --match-full-lines --implicit-check-not={{.}}
|
62 | 62 |
|
63 | 63 | # UNDEF-DATA-RELOC: 0000000000000000 r data_reloc
|
64 | 64 | # UNDEF-DATA-RELOC-NEXT: U undef
|
65 | 65 |
|
66 | 66 | ## Check that line numbers can be printed for data definitions. These are broken
|
67 | 67 | ## out of main.s since their DWARF cannot be generated with llvm-mc -g.
|
68 |
| -# RUN: llvm-mc -g --filetype=obj %t/data-dwarf.s -o %t/data-dwarf.o |
| 68 | +# RUN: llvm-mc -g --filetype=obj %t/data-dwarf.s -triple=x86_64-pc-linux -o %t/data-dwarf.o |
69 | 69 | # RUN: llvm-nm --line-numbers %t/data-dwarf.o | FileCheck %s --check-prefix=DATA-DWARF --match-full-lines --implicit-check-not={{.}}
|
70 | 70 |
|
71 | 71 | # DATA-DWARF: 0000000000000000 D defined_data /tmp/tmp.c:1
|
|
0 commit comments