Introduce llvm-install-name-tool
authorAlexander Shaposhnikov <alexshap@fb.com>
Mon, 18 Nov 2019 23:44:58 +0000 (15:44 -0800)
committerAlexander Shaposhnikov <alexshap@fb.com>
Tue, 19 Nov 2019 23:16:32 +0000 (15:16 -0800)
commit88f00aef684ff84a6494e1f17d5466c5678f703d
treefcea95badfc8a2f1ca19fb4f5b4f90b2c328f482
parent28a91473e33eb3585a87514e4cf2523a9a587d82
Introduce llvm-install-name-tool

This diff adds a new "driver" for llvm-objcopy
which is supposed to emulate the behavior of install-name-tool.
This is a recommit of b5913e6d2 with ubsan issues fixed.

Differential revision: https://reviews.llvm.org/D69146

Test plan: make check-all
15 files changed:
llvm/test/tools/llvm-objcopy/MachO/Inputs/i386.yaml [new file with mode: 0644]
llvm/test/tools/llvm-objcopy/MachO/Inputs/x86_64.yaml [new file with mode: 0644]
llvm/test/tools/llvm-objcopy/MachO/install-name-tool-add-rpath.test [new file with mode: 0644]
llvm/test/tools/llvm-objcopy/MachO/install-name-tool-help-message.test [new file with mode: 0644]
llvm/test/tools/llvm-objcopy/MachO/install-name-tool-version.test [new file with mode: 0644]
llvm/tools/llvm-objcopy/CMakeLists.txt
llvm/tools/llvm-objcopy/CopyConfig.cpp
llvm/tools/llvm-objcopy/CopyConfig.h
llvm/tools/llvm-objcopy/InstallNameToolOpts.td [new file with mode: 0644]
llvm/tools/llvm-objcopy/MachO/MachOObjcopy.cpp
llvm/tools/llvm-objcopy/MachO/MachOReader.cpp
llvm/tools/llvm-objcopy/MachO/MachOWriter.cpp
llvm/tools/llvm-objcopy/MachO/Object.cpp
llvm/tools/llvm-objcopy/MachO/Object.h
llvm/tools/llvm-objcopy/llvm-objcopy.cpp