llvm-6502/test/tools/llvm-objdump/X86/macho-nontext-disasm.test
Kevin Enderby 1de0e80e97 Add code to llvm-objdump so the -section option with -macho will disassemble sections
that have attributes indicating they contain instructions.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@228101 91177308-0d34-0410-b5e6-96231b3b80d8
2015-02-04 01:01:38 +00:00

10 lines
293 B
Plaintext

# RUN: llvm-mc < %s -triple x86_64-apple-darwin -filetype=obj | llvm-objdump -m -section __FOO,__bar -full-leading-addr -print-imm-hex -no-show-raw-insn - | FileCheck %s
.section __FOO, __bar
_foo:
nop
# CHECK: Contents of (__FOO,__bar) section
# CHECK: _foo:
# CHECK: 0000000000000000 nop