Add the -section option to llvm-objdump used with -macho that takes the argument
authorKevin Enderby <enderby@apple.com>
Sat, 31 Jan 2015 00:37:11 +0000 (00:37 +0000)
committerKevin Enderby <enderby@apple.com>
Sat, 31 Jan 2015 00:37:11 +0000 (00:37 +0000)
commit0602444f70ea5d578817f68d7003d34c35522cff
tree9919e3ca01a88d2ab4cb79702fa3876915d8b8d9
parent9003c8d02fbdc731ad0bc08adc4036d4de8b029b
Add the -section option to llvm-objdump used with -macho that takes the argument
segname,sectname to specify a Mach-O section to print.  The printing is based on
the section type or section attributes.

The printing of the module initialization and termination section types is printed
with this change.  Printing of other section types will be added next.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@227649 91177308-0d34-0410-b5e6-96231b3b80d8
test/tools/llvm-objdump/X86/Inputs/dylibModInit.macho-x86_64 [new file with mode: 0755]
test/tools/llvm-objdump/X86/macho-section.test [new file with mode: 0644]
tools/llvm-objdump/MachODump.cpp
tools/llvm-objdump/llvm-objdump.cpp
tools/llvm-objdump/llvm-objdump.h