40 lines · yaml
1# RUN: yaml2obj %s -o %t2# RUN: llvm-readobj -r %t | FileCheck %s3 4# CHECK: Relocations [5# CHECK-NEXT: Section (2) .rel.text {6# CHECK-NEXT: 0x0 R_386_32 main7# CHECK-NEXT: }8# CHECK-NEXT: ]9 10!ELF11FileHeader:12 Class: ELFCLASS3213 Data: ELFDATA2LSB14 Type: ET_REL15 Machine: EM_38616Sections:17 - Type: SHT_PROGBITS18 Name: .text19 Flags: [ SHF_ALLOC, SHF_EXECINSTR ]20 AddressAlign: 0x0421 Content: 000000000000000022 - Type: SHT_REL23 Name: .rel.text24 Link: .symtab25 Info: .text26 AddressAlign: 0x0427 Relocations:28 - Symbol: main29 Type: R_386_3230 31Symbols:32 - Name: .text33 Type: STT_SECTION34 Section: .text35 - Name: main36 Type: STT_FUNC37 Section: .text38 Size: 0x0839 Binding: STB_GLOBAL40