OSDN Git Service

[llvm-objdump] for mach-o add -bind, -lazy-bind, and -weak-bind options
authorNick Kledzik <kledzik@apple.com>
Tue, 16 Sep 2014 01:41:51 +0000 (01:41 +0000)
committerNick Kledzik <kledzik@apple.com>
Tue, 16 Sep 2014 01:41:51 +0000 (01:41 +0000)
commit367cf70f27e2e3261df2b27fc89fafe5b0a1dc22
tree7db3e379e961f3ab8a96bc60c26cf6fb141265d5
parent2e363ece75c005db692582c543c2759ffe0ab3ca
[llvm-objdump] for mach-o add -bind, -lazy-bind, and -weak-bind options

This finishes the ability of llvm-objdump to print out all information from
the LC_DYLD_INFO load command.

The -bind option prints out symbolic references that dyld must resolve
immediately.

The -lazy-bind option prints out symbolc reference that are lazily resolved on
first use.

The -weak-bind option prints out information about symbols which dyld must
try to coalesce across images.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217853 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Object/MachO.h
lib/Object/MachOObjectFile.cpp
test/tools/llvm-objdump/Inputs/bind.macho-x86_64 [new file with mode: 0755]
test/tools/llvm-objdump/Inputs/lazy-bind.macho-x86_64 [new file with mode: 0755]
test/tools/llvm-objdump/Inputs/weak-bind.macho-x86_64 [new file with mode: 0755]
test/tools/llvm-objdump/macho-bind.test [new file with mode: 0644]
test/tools/llvm-objdump/macho-lazy-bind.test [new file with mode: 0644]
test/tools/llvm-objdump/macho-weak-bind.test [new file with mode: 0644]
tools/llvm-objdump/MachODump.cpp
tools/llvm-objdump/llvm-objdump.cpp
tools/llvm-objdump/llvm-objdump.h