diff --git a/llvm/docs/CommandGuide/llvm-install-name-tool.rst b/llvm/docs/CommandGuide/llvm-install-name-tool.rst --- a/llvm/docs/CommandGuide/llvm-install-name-tool.rst +++ b/llvm/docs/CommandGuide/llvm-install-name-tool.rst @@ -22,22 +22,46 @@ At least one of the following options are required, and some options can be combined with other options: + - Can combine :option:`-add_rpath`, :option:`-delete_rpath` and :option:`-rpath` + in an invocation only if they do not share the same `` value. + .. 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:: -change + + Change an install name ```` to ```` in the + specified binary. Can be specified multiple times to change multiple dependent shared + library install names. Option is ignored if ```` is not listed + in the specfied 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. +.. option:: -id + + Change shared library's identification name under LC_ID_DYLIB to ```` in the + specfied binary. If specified multiple times, only the last :option:`-id` option is + selected. Option is ignored if the specified Mach-O binary is not a dynamic shared library. + +.. option:: -rpath + + Change an rpath named ```` to ```` in the specified binary. Can be specified + multiple times to change multiple rpaths. Throws an error if ```` is not listed + in the binary or ```` is already listed in the binary. + + + EXIT STATUS ----------- -:program:`llvm-install-name-tool` exits with a non-zero exit code of 1 if there is an error. +:program:`llvm-install-name-tool` exits with a non-zero exit code if there is an error. Otherwise, it exits with code 0. BUGS