1 # RUN: yaml2obj %s -o %t.o
3 ## By default, only executable sections are disassembled,
4 ## but with the use of the --section flag, we can change this behavior.
5 ## Show that llvm-objdump can disassemble the specified sections.
7 # RUN: llvm-objdump -d %t.o | FileCheck %s --check-prefix=TEXT \
8 # RUN: --implicit-check-not=.rodata --implicit-check-not=.data
10 # RUN: llvm-objdump -d %t.o --section=.rodata \
11 # RUN: | FileCheck %s --check-prefix=RODATA \
12 # RUN: --implicit-check-not=.text --implicit-check-not=.data
14 # RUN: llvm-objdump -d %t.o --section=.rodata --section=.text \
15 # RUN: | FileCheck %s --check-prefixes=RODATA,TEXT \
16 # RUN: --implicit-check-not=.data
18 # RUN: llvm-objdump -d %t.o --section=.rodata --section=.text --section=.data \
19 # RUN: | FileCheck %s --check-prefixes=RODATA,TEXT,DATA
21 # RODATA: Disassembly of section .rodata
22 # TEXT: Disassembly of section .text
23 # DATA: Disassembly of section .data
38 Flags: [SHF_ALLOC, SHF_EXECINSTR]
42 Flags: [SHF_ALLOC, SHF_WRITE]