For llvm-objdump and Mach-O files, fix the printing of module init and
authorKevin Enderby <enderby@apple.com>
Tue, 20 Mar 2018 20:29:52 +0000 (20:29 +0000)
committerKevin Enderby <enderby@apple.com>
Tue, 20 Mar 2018 20:29:52 +0000 (20:29 +0000)
commit85b7a66eee81b0b2ff42aa6aeac14eb7bdac0b24
treef20b9b69a15b64e4470f169f7b0e8cace2d53a45
parent3c9be62d24bf8de495dc6c707c8dbd3cedc86eef
For llvm-objdump and Mach-O files, fix the printing of module init and
term sections from .o files to look to see if the pointers have a relocation
entry and if so print the symbol name from the relocation entry.  If not fall
back to the existing code and use the pointer value to look up that value
in the symbol table.

rdar://38337506

llvm-svn: 328037
llvm/test/tools/llvm-objdump/X86/Inputs/objModInit.macho-x86_64 [new file with mode: 0644]
llvm/test/tools/llvm-objdump/X86/macho-section.test
llvm/tools/llvm-objdump/MachODump.cpp