[llvm-install-name-tool] Implement delete_rpath option
authorAlexander Shaposhnikov <alexshap@fb.com>
Mon, 22 Jun 2020 23:49:14 +0000 (16:49 -0700)
committerAlexander Shaposhnikov <alexshap@fb.com>
Mon, 22 Jun 2020 23:49:49 +0000 (16:49 -0700)
commitd332ec9209ac0a54fc4f1e5e4edc7948fcc4d6af
treeea3daaca274a7f63865032d5e63c6590b7e85e8f
parent009c9b83acfc8bb863894e349bccc2473c685dbc
[llvm-install-name-tool] Implement delete_rpath option

This diff adds support for deleting an rpath from a Mach-O binary.

Patch by Sameer Arora!

Test plan: make check-all

Differential revision: https://reviews.llvm.org/D81527
llvm/test/tools/llvm-objcopy/MachO/install-name-tool-delete-rpath.test [new file with mode: 0644]
llvm/test/tools/llvm-objcopy/MachO/remove-lc-index-update.test [new file with mode: 0644]
llvm/tools/llvm-objcopy/CopyConfig.cpp
llvm/tools/llvm-objcopy/CopyConfig.h
llvm/tools/llvm-objcopy/InstallNameToolOpts.td
llvm/tools/llvm-objcopy/MachO/MachOObjcopy.cpp
llvm/tools/llvm-objcopy/MachO/Object.cpp
llvm/tools/llvm-objcopy/MachO/Object.h