OLD | NEW |
1 ; Tests that we generate an ELF container with fields that make sense, | 1 ; Tests that we generate an ELF container with fields that make sense, |
2 ; cross-validating against llvm-mc. | 2 ; cross-validating against llvm-mc. |
3 | 3 |
4 ; For the integrated ELF writer, we can't pipe the output because we need | 4 ; For the integrated ELF writer, we can't pipe the output because we need |
5 ; to seek backward and patch up the file headers. So, use a temporary file. | 5 ; to seek backward and patch up the file headers. So, use a temporary file. |
6 ; RUN: %p2i -i %s --filetype=obj --args -O2 --verbose none -o %t \ | 6 ; RUN: %p2i -i %s --filetype=obj --args -O2 --verbose none -o %t \ |
7 ; RUN: && llvm-readobj -file-headers -sections -section-data \ | 7 ; RUN: && llvm-readobj -file-headers -sections -section-data \ |
8 ; RUN: -relocations -symbols %t | FileCheck %s | 8 ; RUN: -relocations -symbols %t | FileCheck %s |
9 | 9 |
10 ; RUN: %if --need=allow_dump --command %p2i -i %s --args -O2 --verbose none \ | 10 ; RUN: %if --need=allow_dump --command %p2i -i %s --args -O2 --verbose none \ |
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
263 ; CHECK: } | 263 ; CHECK: } |
264 ; CHECK: Section { | 264 ; CHECK: Section { |
265 ; CHECK: Index: {{[1-9][0-9]*}} | 265 ; CHECK: Index: {{[1-9][0-9]*}} |
266 ; CHECK: Name: .rodata | 266 ; CHECK: Name: .rodata |
267 ; CHECK: Type: SHT_PROGBITS | 267 ; CHECK: Type: SHT_PROGBITS |
268 ; CHECK: Flags [ (0x2) | 268 ; CHECK: Flags [ (0x2) |
269 ; CHECK: SHF_ALLOC | 269 ; CHECK: SHF_ALLOC |
270 ; CHECK: ] | 270 ; CHECK: ] |
271 ; CHECK: Address: 0x0 | 271 ; CHECK: Address: 0x0 |
272 ; CHECK: Offset: 0x{{[1-9A-F][0-9A-F]*}} | 272 ; CHECK: Offset: 0x{{[1-9A-F][0-9A-F]*}} |
273 ; CHECK: Size: 48 | 273 ; Size is 56 instead of 48 due to __Sz_block_profile_info . |
| 274 ; CHECK: Size: 56 |
274 ; CHECK: Link: 0 | 275 ; CHECK: Link: 0 |
275 ; CHECK: Info: 0 | 276 ; CHECK: Info: 0 |
276 ; CHECK: AddressAlignment: 32 | 277 ; CHECK: AddressAlignment: 32 |
277 ; CHECK: EntrySize: 0 | 278 ; CHECK: EntrySize: 0 |
278 ; CHECK: SectionData ( | 279 ; CHECK: SectionData ( |
279 ; CHECK: 0000: 616203FF F66667{{.*}} |ab...fg | 280 ; CHECK: 0000: 616203FF F66667{{.*}} |ab...fg |
280 ; CHECK: ) | 281 ; CHECK: ) |
281 ; CHECK: } | 282 ; CHECK: } |
282 ; CHECK: Section { | 283 ; CHECK: Section { |
283 ; CHECK: Index: {{[1-9][0-9]*}} | 284 ; CHECK: Index: {{[1-9][0-9]*}} |
(...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
638 ; CHECK: Symbol { | 639 ; CHECK: Symbol { |
639 ; CHECK: Name: memset | 640 ; CHECK: Name: memset |
640 ; CHECK-NEXT: Value: 0x0 | 641 ; CHECK-NEXT: Value: 0x0 |
641 ; CHECK-NEXT: Size: 0 | 642 ; CHECK-NEXT: Size: 0 |
642 ; CHECK-NEXT: Binding: Global | 643 ; CHECK-NEXT: Binding: Global |
643 ; CHECK-NEXT: Type: None | 644 ; CHECK-NEXT: Type: None |
644 ; CHECK-NEXT: Other: 0 | 645 ; CHECK-NEXT: Other: 0 |
645 ; CHECK-NEXT: Section: Undefined | 646 ; CHECK-NEXT: Section: Undefined |
646 ; CHECK-NEXT: } | 647 ; CHECK-NEXT: } |
647 ; CHECK: ] | 648 ; CHECK: ] |
OLD | NEW |