xref: /llvm-project/llvm/test/tools/llvm-objdump/X86/disassemble-no-symbol-at-section-start.test (revision 71e2ca6e32105b35aeadeab25010e8f999c47c23)
1## Test that we disassemble the start of the section even
2## if there is no start symbol.
3
4# RUN: yaml2obj %s -o %t
5# RUN: llvm-objdump -d %t | FileCheck %s
6
7# CHECK: Disassembly of section .text:
8# CHECK-EMPTY:
9# CHECK-NEXT:  <.text>:
10# CHECK-NEXT:    0: 90 nop
11# CHECK:       <foo>:
12# CHECK-NEXT:    1: 90 nop
13
14--- !ELF
15FileHeader:
16  Class:   ELFCLASS64
17  Data:    ELFDATA2LSB
18  Type:    ET_REL
19  Machine: EM_X86_64
20Sections:
21  - Name:    .text
22    Type:    SHT_PROGBITS
23    Flags:   [ SHF_ALLOC, SHF_EXECINSTR ]
24    Content: '9090'
25Symbols:
26  - Name:    foo
27    Section: .text
28    Value:   0x0000000000000001
29