summaryrefslogtreecommitdiffstats
path: root/llvm/test/tools/llvm-objdump/X86
diff options
context:
space:
mode:
authorKevin Enderby <enderby@apple.com>2015-01-07 21:02:18 +0000
committerKevin Enderby <enderby@apple.com>2015-01-07 21:02:18 +0000
commite2297ddd11cc7077807c36487316830593f12cc1 (patch)
tree61f2a59afb618b960ee00771eded6e6e316e0c5d /llvm/test/tools/llvm-objdump/X86
parent45c0b3a8828179519a66d98f0eb20170bd009744 (diff)
downloadbcm5719-llvm-e2297ddd11cc7077807c36487316830593f12cc1.tar.gz
bcm5719-llvm-e2297ddd11cc7077807c36487316830593f12cc1.zip
Slightly refactor things for llvm-objdump and the -macho option so it can be used with
options other than just -disassemble so that universal files can be used with other options combined with -arch options. No functional change to existing options and use. One test case added for the additional functionality with a universal file an a -arch option. llvm-svn: 225383
Diffstat (limited to 'llvm/test/tools/llvm-objdump/X86')
-rw-r--r--llvm/test/tools/llvm-objdump/X86/macho-private-headers.test6
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/test/tools/llvm-objdump/X86/macho-private-headers.test b/llvm/test/tools/llvm-objdump/X86/macho-private-headers.test
index 5bea041c887..c80bb083af3 100644
--- a/llvm/test/tools/llvm-objdump/X86/macho-private-headers.test
+++ b/llvm/test/tools/llvm-objdump/X86/macho-private-headers.test
@@ -17,6 +17,8 @@
// RUN: | FileCheck %s -check-prefix=ROUTINE
// RUN: llvm-objdump -p %p/Inputs/exeThread.macho-x86_64 \
// RUN: | FileCheck %s -check-prefix=THREAD
+// RUN: llvm-objdump -macho -p -arch i386 %p/Inputs/macho-universal.x86_64.i386 \
+// RUN: | FileCheck %s -check-prefix=FATi386
CHECK: Mach header
CHECK: magic cputype cpusubtype caps filetype ncmds sizeofcmds flags
@@ -437,3 +439,7 @@ THREAD: r12 0x0000000000000000 r13 0x0000000000000000 r14 0x000000000000000
THREAD: r15 0x0000000000000000 rip 0x0000000100000d00
THREAD: rflags 0x0000000000000000 cs 0x0000000000000000 fs 0x0000000000000000
THREAD: gs 0x0000000000000000
+
+FATi386: Mach header
+FATi386: magic cputype cpusubtype caps filetype ncmds sizeofcmds flags
+FATi386: MH_MAGIC I386 ALL 0x00 EXECUTE 16 716 NOUNDEFS DYLDLINK TWOLEVEL PIE MH_NO_HEAP_EXECUTION
OpenPOWER on IntegriCloud