diff --git a/llvm/docs/CommandGuide/index.rst b/llvm/docs/CommandGuide/index.rst --- a/llvm/docs/CommandGuide/index.rst +++ b/llvm/docs/CommandGuide/index.rst @@ -43,6 +43,7 @@ llvm-addr2line llvm-ar llvm-cxxfilt + llvm-install-name-tool llvm-nm llvm-objcopy llvm-objdump diff --git a/llvm/docs/CommandGuide/llvm-install-name-tool.rst b/llvm/docs/CommandGuide/llvm-install-name-tool.rst new file mode 100644 --- /dev/null +++ b/llvm/docs/CommandGuide/llvm-install-name-tool.rst @@ -0,0 +1,35 @@ +llvm-install-name-tool - LLVM tool for manipulating install-names and rpaths +============================================================================ + +.. program:: llvm-install-name-tool + +SYNOPSIS +-------- + +:program:`llvm-install-name-tool` [*options*] *input* + +DESCRIPTION +----------- + +:program:`llvm-install-name-tool` is a tool to maipulate dynamic shared library +install names and rpaths listed in a Mach-O binary. + +For most scenarios, it works as a drop-in replacement for Apple's +:program:`install_name_tool`. + +OPTIONS +-------- +At least one of the following options are required, and some options can be +combined with other options: + +.. option:: -add_rpath + + Add an rpath named ```` to the specified binary. Can be specified multiple + times to add multiple rpaths. Throws an error if ```` is already listed in + the binary. + +.. option:: -delete_rpath + + Delete an rpath named ```` from the specified binary. Can be specified multiple + times to delete multiple rpaths. Throws an error if ```` is not listed in + the binary.