Recommit "rL366894: [yaml2obj] - Allow custom fields for the SHT_UNDEF sections."
[llvm-complete.git] / test / tools / llvm-objdump / X86 / elf-disassemble-no-symtab.test
blobb45c905bb3db9f82fdebfce35d2ed393503fed8e
1 ## Show that llvm-objdump can handle a missing symbol table when printing
2 ## references and labels.
4 # RUN: yaml2obj %s -o %t
5 # RUN: llvm-objcopy -R .symtab %t
6 # RUN: llvm-objdump %t -d | FileCheck %s
8 # CHECK:       Disassembly of section .text:
9 # CHECK-EMPTY:
10 # CHECK-NEXT:  0000000000004000 .text:
11 # CHECK-NEXT:    4000: e8 42 00 00 00                callq   66 <.text+0x47>
13 --- !ELF
14 FileHeader:
15   Class:   ELFCLASS64
16   Data:    ELFDATA2LSB
17   Type:    ET_EXEC
18   Machine: EM_X86_64
19 Sections:
20   - Name:    .text
21     Type:    SHT_PROGBITS
22     Address: 0x4000
23     Flags:   [SHF_ALLOC, SHF_EXECINSTR]
24     Content: 'e842000000'