25 lines · plain
1## Show that llvm-objdump can handle a missing symbol table when printing2## references and labels.3 4# RUN: yaml2obj %s -o %t5# RUN: llvm-objcopy -R .symtab %t6# RUN: llvm-objdump %t -d | FileCheck %s7 8# CHECK: Disassembly of section .text:9# CHECK-EMPTY:10# CHECK-NEXT: 0000000000004000 <.text>:11# CHECK-NEXT: 4000: e8 42 00 00 00 callq 0x4047 <.text+0x47>12 13--- !ELF14FileHeader:15 Class: ELFCLASS6416 Data: ELFDATA2LSB17 Type: ET_EXEC18 Machine: EM_X86_6419Sections:20 - Name: .text21 Type: SHT_PROGBITS22 Address: 0x400023 Flags: [SHF_ALLOC, SHF_EXECINSTR]24 Content: 'e842000000'25