1# RUN: yaml2obj %s > %t 2# RUN: llvm-readobj -r %t | FileCheck %s 3 4# CHECK: Relocations [ 5# CHECK-NEXT: Section (2) .rel.text { 6# CHECK-NEXT: 0x0 R_386_32 main 0x0 7# CHECK-NEXT: } 8# CHECK-NEXT: ] 9 10!ELF 11FileHeader: 12 Class: ELFCLASS32 13 Data: ELFDATA2LSB 14 Type: ET_REL 15 Machine: EM_386 16Sections: 17 - Type: SHT_PROGBITS 18 Name: .text 19 Flags: [ SHF_ALLOC, SHF_EXECINSTR ] 20 AddressAlign: 0x04 21 Content: 0000000000000000 22 - Type: SHT_REL 23 Name: .rel.text 24 Link: .symtab 25 Info: .text 26 AddressAlign: 0x04 27 Relocations: 28 - Offset: 0 29 Symbol: main 30 Type: R_386_32 31 32Symbols: 33 Local: 34 - Name: .text 35 Type: STT_SECTION 36 Section: .text 37 38 Global: 39 - Name: main 40 Type: STT_FUNC 41 Section: .text 42 Size: 0x08 43