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 --disassemble | FileCheck %s --implicit-check-not=Disassembly
4 # RUN: llvm-objdump %t.o --disassemble-all | FileCheck %s --check-prefixes=CHECK,ALL
6 # CHECK: Disassembly of section .executable:
8 # CHECK-NEXT: 0000000000001000 .executable:
9 # CHECK-NEXT: 0: 90 nop
11 # ALL-NEXT: Disassembly of section .writable:
13 # ALL-NEXT: 0000000000002000 .writable:
14 # ALL-NEXT: 0: c3 retq
16 # ALL-NEXT: Disassembly of section .readonly:
18 # ALL-NEXT: 0000000000003000 .readonly:
19 # ALL-NEXT: 0: 01 00 addl %eax, (%rax)
21 # ALL-NEXT: Disassembly of section .nobits:
23 # ALL-NEXT: 0000000000004000 .nobits:
36 Flags: [SHF_EXECINSTR]