OLD | NEW |
1 ; Tests that we generate an ELF container correctly when there | 1 ; Tests that we generate an ELF container correctly when there |
2 ; is no data section. | 2 ; is no data section. |
3 | 3 |
4 ; For the integrated ELF writer, we can't pipe the output because we need | 4 ; RUN: %p2i -i %s --filetype=obj --args -O2 --verbose none -o %t \ |
5 ; to seek backward and patch up the file headers. So, use a temporary file. | |
6 ; RUN: %p2i -i %s --args -O2 --verbose none -filetype=obj -o %t \ | |
7 ; RUN: && llvm-readobj -file-headers -sections -section-data \ | 5 ; RUN: && llvm-readobj -file-headers -sections -section-data \ |
8 ; RUN: -relocations -symbols %t | FileCheck %s | 6 ; RUN: -relocations -symbols %t | FileCheck %s |
9 | 7 |
10 ; RUN: %p2i -i %s --args -O2 --verbose none \ | 8 ; RUN: %p2i -i %s --args -O2 --verbose none \ |
11 ; RUN: | llvm-mc -triple=i686-none-nacl -filetype=obj -o - \ | 9 ; RUN: | llvm-mc -triple=i686-none-nacl -filetype=obj -o - \ |
12 ; RUN: | llvm-readobj -file-headers -sections -section-data \ | 10 ; RUN: | llvm-readobj -file-headers -sections -section-data \ |
13 ; RUN: -relocations -symbols - | FileCheck %s | 11 ; RUN: -relocations -symbols - | FileCheck %s |
14 | 12 |
15 declare void @llvm.memcpy.p0i8.p0i8.i32(i8*, i8*, i32, i32, i1) | 13 declare void @llvm.memcpy.p0i8.p0i8.i32(i8*, i8*, i32, i32, i1) |
16 | 14 |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 ; CHECK: Symbol { | 116 ; CHECK: Symbol { |
119 ; CHECK: Name: memcpy | 117 ; CHECK: Name: memcpy |
120 ; CHECK-NEXT: Value: 0x0 | 118 ; CHECK-NEXT: Value: 0x0 |
121 ; CHECK-NEXT: Size: 0 | 119 ; CHECK-NEXT: Size: 0 |
122 ; CHECK-NEXT: Binding: Global | 120 ; CHECK-NEXT: Binding: Global |
123 ; CHECK-NEXT: Type: None | 121 ; CHECK-NEXT: Type: None |
124 ; CHECK-NEXT: Other: 0 | 122 ; CHECK-NEXT: Other: 0 |
125 ; CHECK-NEXT: Section: Undefined | 123 ; CHECK-NEXT: Section: Undefined |
126 ; CHECK-NEXT: } | 124 ; CHECK-NEXT: } |
127 ; CHECK: ] | 125 ; CHECK: ] |
OLD | NEW |