LLVM-INSTALL-NAME-TOOL(1)
π LLVM-INSTALL-NAME-TOOL π
okay bestie, so this is the manual page for llvm-install-name-tool, section 1 of the LLVM manuals. it's giving "Mach-O makeover station" and honestly? iconic. let's get into it π
β¨ NAME β¨
llvm-install-name-tool β the LLVM tool for manipulating install-names and rpaths. no cap, that's literally the whole job description π
β¨ SYNOPSIS β¨
llvm-install-name-tool [options] input
πΈ DESCRIPTION πΈ
so llvm-install-name-tool is a tool to manipulate dynamic shared library install names and rpaths listed in a Mach-O binary. that's the vibe. π¦
and for most scenarios, it works as a drop-in replacement for Apple's install_name_tool. bestie said "I'll be you but LLVM" and meant it fr fr.
π OPTIONS π
at least one of the following options is required, and some options can be combined with other options. ok but listen β options -add_rpath, -delete_rpath, and -rpath can be combined in an invocation only if they do not share the same <rpath> value. so like, no fighting over the same rpath pls π
-add_rpath <rpath>β add an rpath named<rpath>to the specified binary. can be specified multiple times to add multiple rpaths. it throws an error if<rpath>is already listed in the binary (no duplicates, this is a no-repeat zone π).-change <old_install_name> <new_install_name>β change an install name<old_install_name>to<new_install_name>in the specified binary. can be specified multiple times to change multiple dependent shared library install names. the option is ignored if<old_install_name>is not listed in the specified binary. lowkey chill of it tbh.-delete_rpath <rpath>β delete an rpath named<rpath>from the specified binary. can be specified multiple times to delete multiple rpaths. throws an error if<rpath>is not listed in the binary. girl has to actually exist first β-delete_all_rpathsβ deletes all rpaths from the binary. every single one. clean slate. main character energy π§Ήβ¨--help,-hβ print a summary of command line options. your little cheat sheet π«Ά-id <name>β change shared library's identification name underLC_ID_DYLIBto<name>in the specified binary. if specified multiple times, only the last-idoption is selected (soz to all the earlier ones, they're cancelled). the option is ignored if the specified Mach-O binary is not a dynamic shared library.-rpath <old_rpath> <new_rpath>β change an rpath named<old_rpath>to<new_rpath>in the specified binary. can be specified multiple times to change multiple rpaths. throws an error if<old_rpath>is not listed in the binary or if<new_rpath>is already listed in the binary. glow-up accepted only if the new name is actually available π--version,-Vβ display the version of thellvm-install-name-toolexecutable. slay, what version are we on today β
π₯ EXIT STATUS π₯
llvm-install-name-tool exits with a non-zero exit code if there is an error. otherwise, it exits with code 0. that's it, that's the whole mood. 0 = ate, non-zero = we have a situation π
π BUGS π
to report bugs, please visit:
https://github.com/llvm/llvm-project/labels/tools:llvm-objcopy/strip/
not me sending you straight to GitHub, but that's where the bug reports live bestie π
π SEE ALSO π
the sibling. the family. iykyk π
π AUTHOR π
maintained by the LLVM Team (https://llvm.org/). they're the ones keeping this whole thing alive, periodt.
π COPYRIGHT π
2003-2025, LLVM Project
and that's the whole page, bestie!! every flag, every error, every "throws an error" β all here, none skipped, we don't do that here π
this page is from the LLVM Project, version 20, dated 2025-09-03, and the title up top was LLVM-INSTALL-NAME-TOOL(1) β so now you know exactly where this lil doc came from π¦β¨
π¦ where this page comes from
- fedora 43: llvm20 20.1.8-2.fc43 Β· Apache-2.0 WITH LLVM-exception OR NCSA
- fedora 43: llvm20 20.1.8-2.fc43 Β· Apache-2.0 WITH LLVM-exception OR NCSA
- fedora 44: llvm20 20.1.8-2.fc44 Β· Apache-2.0 WITH LLVM-exception OR NCSA
- fedora 44: llvm20 20.1.8-2.fc44 Β· Apache-2.0 WITH LLVM-exception OR NCSA
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms