1# REQUIRES: x86 2 3# RUN: yaml2obj %s -o %t.o 4# RUN: ld.lld -Ttext 0x0 %t.o -o %t.exe 5# RUN: llvm-objdump -s --section=.text %t.exe 2>&1 | FileCheck %s 6 7# CHECK: Contents of section .text: 8# CHECK-NEXT: 0000 45231111 41231111 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: "1111111111111111" 22 - Type: SHT_REL 23 Name: .rel.text 24 Link: .symtab 25 Info: .text 26 AddressAlign: 0x04 27 Relocations: 28 - Symbol: _start 29 Type: R_386_16 30 - Offset: 4 31 Symbol: _start 32 Type: R_386_PC16 33Symbols: 34 - Name: _start 35 Type: STT_FUNC 36 Section: .text 37 Value: 0x1234 38 Size: 4 39 Binding: STB_GLOBAL 40