llvm-6502/test/tools/llvm-objdump/X86/macho-indirect-symbols.test
Kevin Enderby 300c79d840 Add the option, -non-verbose to llvm-objdump used with -macho to print things
using numeric values and not their symbolic constant names.

The routines that print Mach-O stuff already had a verbose parameter and this
change is just changing the passing true to passing !NonVerbose.  With just a
couple of fixes and a bunch of test case updates.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@232182 91177308-0d34-0410-b5e6-96231b3b80d8
2015-03-13 17:56:32 +00:00

25 lines
1.1 KiB
Plaintext

RUN: llvm-objdump -macho -indirect-symbols %p/Inputs/hello.exe.macho-x86_64 | FileCheck %s
RUN: llvm-objdump -macho -indirect-symbols -non-verbose %p/Inputs/hello.exe.macho-x86_64 | FileCheck %s -check-prefix=NON_VERBOSE
CHECK: Indirect symbols for (__TEXT,__stubs) 1 entries
CHECK: address index name
CHECK: 0x0000000100000f6c 2 _printf
CHECK: Indirect symbols for (__DATA,__nl_symbol_ptr) 2 entries
CHECK: address index name
CHECK: 0x0000000100001000 3 dyld_stub_binder
CHECK: 0x0000000100001008 ABSOLUTE
CHECK: Indirect symbols for (__DATA,__la_symbol_ptr) 1 entries
CHECK: address index name
CHECK: 0x0000000100001010 2 _printf
NON_VERBOSE: Indirect symbols for (__TEXT,__stubs) 1 entries
NON_VERBOSE: address index
NON_VERBOSE: 0x0000000100000f6c 2
NON_VERBOSE: Indirect symbols for (__DATA,__nl_symbol_ptr) 2 entries
NON_VERBOSE: address index
NON_VERBOSE: 0x0000000100001000 3
NON_VERBOSE: 0x0000000100001008 ABSOLUTE
NON_VERBOSE: Indirect symbols for (__DATA,__la_symbol_ptr) 1 entries
NON_VERBOSE: address index
NON_VERBOSE: 0x0000000100001010 2