1 ## This test checks -d disassembles an ELF file without section headers.
2 ## Such files include kcore files extracted by linux perf tools, or
3 ## executables with section headers stripped by e.g.
4 ## llvm-strip --strip-sections.
6 # RUN: yaml2obj %s -o %t
7 # RUN: llvm-objdump -d %t | FileCheck %s
9 # CHECK: Disassembly of section PT_LOAD#0:
11 # CHECK-NEXT: <PT_LOAD#0>:
12 # CHECK-NEXT: 55 pushq %rbp
13 # CHECK-NEXT: 48 89 e5 movq %rsp, %rbp
14 # CHECK-NEXT: 0f 1f 40 00 nopl (%rax)
15 # CHECK-NEXT: 5d popq %rbp
18 ## Check disassembly with an address range.
19 # RUN: llvm-objdump -d --start-address=0xffffffff00000000 \
20 # RUN: --stop-address=0xffffffff00000004 %t 2>&1 | \
21 # RUN: FileCheck %s --check-prefix RANGE
23 # RANGE: no section overlaps the range
25 # RANGE-NEXT: Disassembly of section PT_LOAD#0:
27 # RANGE-NEXT: <PT_LOAD#0>:
28 # RANGE-NEXT: 55 pushq %rbp
29 # RANGE-NEXT: 48 89 e5 movq %rsp, %rbp
39 - Type: SectionHeaderTable
43 Pattern: "554889E50F1F40005DC3"
49 VAddr: 0xFFFFFFFF00000000