1 # RUN: yaml2obj %s | llvm-readobj --sections -r - | FileCheck %s
4 FileHeader: !FileHeader
13 Content: "0000000000000000"
65 # CHECK-NEXT: Index: 0
68 # CHECK-NEXT: Index: 1
69 # CHECK-NEXT: Name: .text (16)
71 # CHECK-NEXT: Section {
72 # CHECK-NEXT: Index: 2
73 # CHECK-NEXT: Name: .rel.text (1)
74 # CHECK-NEXT: Type: SHT_REL (0x9)
75 # CHECK-NEXT: Flags [ (0x0)
77 # CHECK-NEXT: Address: 0x0
78 # CHECK-NEXT: Offset: 0x{{[0-9A-F]+}}
79 # CHECK-NEXT: Size: 24
82 # CHECK-NEXT: AddressAlignment: 4
83 # CHECK-NEXT: EntrySize: 8
85 # CHECK-NEXT: Section {
86 # CHECK-NEXT: Index: 3
87 # CHECK-NEXT: Name: .rela.text (11)
88 # CHECK-NEXT: Type: SHT_RELA (0x4)
89 # CHECK-NEXT: Flags [ (0x0)
91 # CHECK-NEXT: Address: 0x0
92 # CHECK-NEXT: Offset: 0x{{[0-9A-F]+}}
93 # CHECK-NEXT: Size: 36
96 # CHECK-NEXT: AddressAlignment: 4
97 # CHECK-NEXT: EntrySize: 12
99 # CHECK-NEXT: Section {
100 # CHECK-NEXT: Index: 4
101 # CHECK-NEXT: Name: .symtab (40)
103 # CHECK-NEXT: Section {
104 # CHECK-NEXT: Index: 5
105 # CHECK-NEXT: Name: .strtab (32)
107 # CHECK: Relocations [
108 # CHECK-NEXT: Section (2) .rel.text {
109 # CHECK-NEXT: 0x1 R_MIPS_32 glob1
110 # CHECK-NEXT: 0x1 R_MIPS_CALL16 glob2
111 # CHECK-NEXT: 0x2 R_MIPS_LO16 loc1
113 # CHECK-NEXT: Section (3) .rela.text {
114 # CHECK-NEXT: 0x1 R_MIPS_32 glob1 0x1
115 # CHECK-NEXT: 0x1 R_MIPS_CALL16 glob2 0x2
116 # CHECK-NEXT: 0x2 R_MIPS_LO16 loc1 0x3