summaryrefslogtreecommitdiffstats
path: root/llvm/test/tools/llvm-objdump/X86
diff options
context:
space:
mode:
authorKevin Enderby <enderby@apple.com>2016-06-21 21:55:01 +0000
committerKevin Enderby <enderby@apple.com>2016-06-21 21:55:01 +0000
commit606a338db9c3cc1fc446111e1d11193f93ba1c5b (patch)
treef989727454e137a872efba972d8f0cdf158992a1 /llvm/test/tools/llvm-objdump/X86
parent48bc85091726bdb1a34cb536eb684794ab4450b6 (diff)
downloadbcm5719-llvm-606a338db9c3cc1fc446111e1d11193f93ba1c5b.tar.gz
bcm5719-llvm-606a338db9c3cc1fc446111e1d11193f93ba1c5b.zip
Update llvm-obdump(1) to print FAT_MAGIC_64 for Darwin’s 64-bit universal files
with the -macho and -universal-headers flags. Just a follow on to r273207, I missed updating the printing of the fat magic number when the universal file is a 64-bit universal file. rdar://26899493 llvm-svn: 273324
Diffstat (limited to 'llvm/test/tools/llvm-objdump/X86')
-rwxr-xr-xllvm/test/tools/llvm-objdump/X86/Inputs/macho-universal64.x86_64.i386bin0 -> 16624 bytes
-rw-r--r--llvm/test/tools/llvm-objdump/X86/macho-universal-x86_64.i386.test6
2 files changed, 6 insertions, 0 deletions
diff --git a/llvm/test/tools/llvm-objdump/X86/Inputs/macho-universal64.x86_64.i386 b/llvm/test/tools/llvm-objdump/X86/Inputs/macho-universal64.x86_64.i386
new file mode 100755
index 00000000000..add12e44a35
--- /dev/null
+++ b/llvm/test/tools/llvm-objdump/X86/Inputs/macho-universal64.x86_64.i386
Binary files differ
diff --git a/llvm/test/tools/llvm-objdump/X86/macho-universal-x86_64.i386.test b/llvm/test/tools/llvm-objdump/X86/macho-universal-x86_64.i386.test
index 260e9aa341e..9089716f7a5 100644
--- a/llvm/test/tools/llvm-objdump/X86/macho-universal-x86_64.i386.test
+++ b/llvm/test/tools/llvm-objdump/X86/macho-universal-x86_64.i386.test
@@ -6,6 +6,8 @@ RUN: llvm-objdump %p/Inputs/macho-universal.x86_64.i386 -universal-headers -m \
RUN: | FileCheck %s -check-prefix FAT
RUN: llvm-objdump %p/Inputs/macho-universal.x86_64.i386 -universal-headers -m \
RUN: -non-verbose | FileCheck %s -check-prefix NON-VERBOSE
+RUN: llvm-objdump %p/Inputs/macho-universal64.x86_64.i386 -universal-headers \
+RUN: -m | FileCheck %s -check-prefix FAT-64
UEXE-all: macho-universal.x86_64.i386 (architecture x86_64):
UEXE-all: (__TEXT,__text) section
@@ -62,3 +64,7 @@ NON-VERBOSE: capabilities 0x0
NON-VERBOSE: offset 12288
NON-VERBOSE: size 4336
NON-VERBOSE: align 2^12 (4096)
+
+FAT-64: Fat headers
+FAT-64: fat_magic FAT_MAGIC_64
+FAT-64: nfat_arch 2
OpenPOWER on IntegriCloud