40 lines · plain
1# REQUIRES: x862 3# RUN: yaml2obj %s -o %t.o4# RUN: ld.lld --image-base=0x0 -Ttext 0x0 %t.o -o %t.exe5# RUN: llvm-objdump -s --section=.text %t.exe 2>&1 | FileCheck %s6 7# CHECK: Contents of section .text:8# CHECK-NEXT: 0000 45231111 412311119 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: "1111111111111111"22 - Type: SHT_REL23 Name: .rel.text24 Link: .symtab25 Info: .text26 AddressAlign: 0x0427 Relocations:28 - Symbol: _start29 Type: R_386_1630 - Offset: 431 Symbol: _start32 Type: R_386_PC1633Symbols:34 - Name: _start35 Type: STT_FUNC36 Section: .text37 Value: 0x123438 Size: 439 Binding: STB_GLOBAL40