From f10065b68bedff2ae133711123d6d77628d7a0d6 Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Tue, 16 Apr 2019 03:51:53 +0000 Subject: [PATCH] [MachO] Add -macho to llvm-objdump commands llvm-svn: 358473 --- lld/test/mach-o/executable-exports.yaml | 2 +- lld/test/mach-o/export-trie-order.yaml | 2 +- lld/test/mach-o/got-order.yaml | 2 +- lld/test/mach-o/lazy-bind-x86_64.yaml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lld/test/mach-o/executable-exports.yaml b/lld/test/mach-o/executable-exports.yaml index 46ba9ca..83d9c21 100644 --- a/lld/test/mach-o/executable-exports.yaml +++ b/lld/test/mach-o/executable-exports.yaml @@ -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. diff --git a/lld/test/mach-o/export-trie-order.yaml b/lld/test/mach-o/export-trie-order.yaml index 53ee8af..1b1fc39 100644 --- a/lld/test/mach-o/export-trie-order.yaml +++ b/lld/test/mach-o/export-trie-order.yaml @@ -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. # diff --git a/lld/test/mach-o/got-order.yaml b/lld/test/mach-o/got-order.yaml index f798474..f2488f0 100644 --- a/lld/test/mach-o/got-order.yaml +++ b/lld/test/mach-o/got-order.yaml @@ -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 # diff --git a/lld/test/mach-o/lazy-bind-x86_64.yaml b/lld/test/mach-o/lazy-bind-x86_64.yaml index 37b8c31..de97565 100644 --- a/lld/test/mach-o/lazy-bind-x86_64.yaml +++ b/lld/test/mach-o/lazy-bind-x86_64.yaml @@ -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 -- 2.7.4