[MachO] Add -macho to llvm-objdump commands
authorFangrui Song <maskray@google.com>
Tue, 16 Apr 2019 03:51:53 +0000 (03:51 +0000)
committerFangrui Song <maskray@google.com>
Tue, 16 Apr 2019 03:51:53 +0000 (03:51 +0000)
llvm-svn: 358473

lld/test/mach-o/executable-exports.yaml
lld/test/mach-o/export-trie-order.yaml
lld/test/mach-o/got-order.yaml
lld/test/mach-o/lazy-bind-x86_64.yaml

index 46ba9ca..83d9c21 100644 (file)
@@ -1,6 +1,6 @@
 # RUN: ld64.lld -arch x86_64 -macosx_version_min 10.8 \
 # RUN:      %s %p/Inputs/x86_64/libSystem.yaml -o %t  && \
-# RUN: llvm-objdump -exports-trie %t | FileCheck %s
+# RUN: llvm-objdump -macho -exports-trie %t | FileCheck %s
 #
 #
 # Tests that exports trie builds properly.
index 53ee8af..1b1fc39 100644 (file)
@@ -1,5 +1,5 @@
 # RUN: ld64.lld -arch i386 %s %p/Inputs/hello-world-x86.yaml -o %t
-# RUN: llvm-objdump -exports-trie %t | FileCheck %s
+# RUN: llvm-objdump -macho -exports-trie %t | FileCheck %s
 #
 # Test that the export trie is emitted in order.
 #
index f798474..f2488f0 100644 (file)
@@ -1,6 +1,6 @@
 # RUN: ld64.lld -arch x86_64  %s %p/Inputs/got-order.yaml \
 # RUN: %p/Inputs/got-order2.yaml -o %t %p/Inputs/x86_64/libSystem.yaml
-# RUN: llvm-objdump -bind %t | FileCheck %s
+# RUN: llvm-objdump -macho -bind %t | FileCheck %s
 #
 # Test that GOT slots are sorted by name
 #
index 37b8c31..de97565 100644 (file)
@@ -4,7 +4,7 @@
 # RUN: %p/Inputs/lazy-bind-x86_64.yaml  %p/Inputs/lazy-bind-x86_64-2.yaml \
 # RUN: %p/Inputs/lazy-bind-x86_64-3.yaml -o %t  \
 # RUN:   %p/Inputs/x86_64/libSystem.yaml
-# RUN: llvm-objdump -lazy-bind %t | FileCheck %s
+# RUN: llvm-objdump -macho -lazy-bind %t | FileCheck %s
 # RUN: llvm-nm -m %t | FileCheck --check-prefix=CHECK-NM %s
 # RUN: llvm-objdump -disassemble %t | FileCheck --check-prefix=CHECK-HELPERS %s
 # RUN: llvm-objdump -private-headers %t | FileCheck --check-prefix=CHECK-DYLIBS %s