1 # RUN: yaml2obj %s | llvm-readobj --sections --section-data - | FileCheck %s
2 # RUN: yaml2obj -o %t %s
3 # RUN: llvm-readobj --sections --section-data %t | FileCheck %s
14 Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
16 Link: .text # Doesn't make sense for SHT_PROGBITS, but good enough for test.
30 # CHECK: Type: SHT_NULL (0x0)
34 # CHECK: Type: SHT_PROGBITS (0x1)
35 # CHECK-NEXT: Flags [ (0x6)
36 # CHECK-NEXT: SHF_ALLOC (0x2)
37 # CHECK-NEXT: SHF_EXECINSTR (0x4)
39 # CHECK-NEXT: Address: 0xCAFEBABE
41 # Check that Link != 0.
42 # CHECK: Link: {{[1-9][0-9]*}}
43 # CHECK: AddressAlignment: 2
44 # CHECK: SectionData (
45 # CHECK-NEXT: 0000: EBFE
50 # CHECK-NEXT: Type: SHT_PROGBITS (0x1)
51 # CHECK-NEXT: Flags [ (0x2)
52 # CHECK-NEXT: SHF_ALLOC (0x2)
54 # CHECK-NEXT: Address: 0xCAFECAFE
55 # CHECK-NEXT: Offset: 0x{{[0-9A-F]+}}
59 # CHECK-NEXT: AddressAlignment: 2
60 # CHECK-NEXT: EntrySize: 0
61 # CHECK-NEXT: SectionData (
62 # CHECK-NEXT: 0000: FEBF0000 00000000 |........|
66 # CHECK: Name: .symtab (25)
67 # CHECK: Type: SHT_SYMTAB (0x2)
68 # CHECK: AddressAlignment: 8
71 # CHECK: Name: .strtab (17)
72 # CHECK: Type: SHT_STRTAB (0x3)
73 # CHECK: AddressAlignment: 1
76 # CHECK: Name: .shstrtab (7)
77 # CHECK: Type: SHT_STRTAB (0x3)
78 # CHECK: AddressAlignment: 1