--page-size SIZE | Uses the given page size instead of the default. | man |
--set-interpreter INTERPRETER | Change the dynamic loader ("ELF interpreter") of executable given to INTERPRETER. | man |
--print-interpreter | Prints the ELF interpreter of the executable. | man |
--print-os-abi | Prints the OS ABI of the executable (EI_OSABI field of an ELF file). | man |
--set-os-abi ABI | Changes the OS ABI of the executable (EI_OSABI field of an ELF file). | man |
--print-soname | Prints DT_SONAME entry of .dynamic section. | man |
--set-soname SONAME | Sets DT_SONAME entry of a library to SONAME. | man |
--set-rpath RUNPATH | Change the DT_RUNPATH of the executable or library to RUNPATH. | man |
--add-rpath RUNPATH | Add RUNPATH to the existing DT_RUNPATH of the executable or library. | man |
--remove-rpath | Removes the DT_RPATH or DT_RUNPATH entry of the executable or library. | man |
--shrink-rpath | Remove from the DT_RUNPATH or DT_RPATH all directories that do not contain a library referenced by DT_NEEDED fields of the executable or library. | man |
--allowed-rpath-prefixes PREFIXES | Combined with the "--shrink-rpath" option, this can be used for further rpath tuning. | man |
--print-rpath | Prints the DT_RUNPATH or DT_RPATH for an executable or library. | man |
--force-rpath | Forces the use of the obsolete DT_RPATH in the file instead of DT_RUNPATH. | man |
--add-needed LIBRARY | Adds a declared dependency on a dynamic library (DT_NEEDED). | man |
--replace-needed LIB_ORIG | Replaces a declared dependency on a dynamic library with another one (DT_NEEDED). | man |
--remove-needed LIBRARY | Removes a declared dependency on LIBRARY (DT_NEEDED entry). | man |
--print-needed | Prints all DT_NEEDED entries of the executable. | man |
--no-default-lib | Marks the object so that the search for dependencies of this object will ignore any default library search paths. | man |
--build-resolution-cache | Resolves each DT_NEEDED dependency against the object's run path at patch time and records the result in a .note.nixos.ldcache note, so that a loader which understands the note can skip the run-path… | man |
--no-sort | Do not sort program headers or section headers. | man |
--add-debug-tag | Adds DT_DEBUG tag to the .dynamic section if not yet present in an ELF object. | man |
--print-execstack | Prints the state of the executable flag of the GNU_STACK program header, if present. | man |
--clear-execstack | Clears the executable flag of the GNU_STACK program header, or adds a new header. | man |
--set-execstack | Sets the executable flag of the GNU_STACK program header, or adds a new header. | man |
--rename-dynamic-symbols NAME_MAP_FILE | Renames dynamic symbols. | man |
--no-clobber-old-sections | Do not clobber old section values. | man |
--output FILE | Set the output file name. | man |
--debug | Prints details of the changes made to the input file. | man |
--version | Shows the version of patchelf. | man |