1 ## Show that disassembly is printed correctly, for only the desired sections.
2 # RUN: yaml2obj %s -o %t.o
3 # RUN: llvm-objdump %t.o -d | FileCheck %s --implicit-check-not=Disassembly
4 # RUN: llvm-objdump %t.o --disassemble-all | FileCheck %s --check-prefixes=CHECK,ALL
6 ## Show that disassembly is enabled by default for --traceback-table, even for non-XCOFF objects.
7 # RUN: llvm-objdump %t.o --traceback-table | FileCheck %s --implicit-check-not=Disassembly
9 # CHECK: Disassembly of section .executable:
11 # CHECK-NEXT: 0000000000001000 <.executable>:
12 # CHECK-NEXT: 0: 90 nop
14 # ALL-NEXT: Disassembly of section .writable:
16 # ALL-NEXT: 0000000000002000 <.writable>:
17 # ALL-NEXT: 0: c3 retq
19 # ALL-NEXT: Disassembly of section .readonly:
21 # ALL-NEXT: 0000000000003000 <.readonly>:
22 # ALL-NEXT: 0: 01 00 addl %eax, (%rax)
24 # ALL-NEXT: Disassembly of section .nobits:
26 # ALL-NEXT: 0000000000004000 <.nobits>:
39 Flags: [SHF_EXECINSTR]