mirror of
https://github.com/NixOS/patchelf.git
synced 2025-10-17 15:41:35 +08:00

Marks the object that the search for dependencies of this object will ignore any default library search paths.
72 lines
1.7 KiB
Groff
72 lines
1.7 KiB
Groff
.\" Process this file with
|
|
.\" groff -man -Tascii foo.1
|
|
.\"
|
|
.TH PATCHELF 1 "JUNE 2010" PATCHELF "User Manuals"
|
|
.SH NAME
|
|
patchelf - Modify ELF files
|
|
|
|
.SH SYNOPSIS
|
|
.B patchelf
|
|
.I OPTION
|
|
.B
|
|
.I FILE
|
|
.B
|
|
|
|
.SH DESCRIPTION
|
|
|
|
PatchELF is a simple utility for modifying existing ELF executables
|
|
and libraries. It can change the dynamic loader ("ELF interpreter")
|
|
of executables and change the RPATH of executables and libraries.
|
|
|
|
.SH OPTIONS
|
|
|
|
The single option given operates on a given FILE, editing in place.
|
|
|
|
.IP "--set-interpreter INTERPRETER"
|
|
Change the dynamic loader ("ELF interpreter") of executable given to
|
|
INTERPRETER.
|
|
|
|
.IP --print-interpreter
|
|
Prints the ELF interpreter of the executable.
|
|
|
|
.IP "--set-rpath RPATH"
|
|
Change the RPATH of the executable or library to RPATH.
|
|
|
|
.IP --shrink-rpath
|
|
Remove from the RPATH all directories that do not contain a
|
|
library referenced by DT_NEEDED fields of the executable or library.
|
|
|
|
For instance, if an executable references one library libfoo.so, has
|
|
an RPATH "/lib:/usr/lib:/foo/lib", and libfoo.so can only be found
|
|
in /foo/lib, then the new RPATH will be "/foo/lib".
|
|
|
|
.IP --print-rpath
|
|
Prints the RPATH for an executable or library.
|
|
|
|
.IP --force-rpath
|
|
Forces the use of the obsolete DT_RPATH in the file instead of
|
|
DT_RUNPATH. By default DT_RPATH is converted to DT_RUNPATH.
|
|
|
|
.IP "--remove-needed LIBRARY"
|
|
Removes a declared depency on LIBRARY (DT_NEEDED entry). This
|
|
option can be given multiple times.
|
|
|
|
.IP "--no-default-lib"
|
|
Marks the object that the search for dependencies of this object will ignore any
|
|
default library search paths.
|
|
|
|
.IP --debug
|
|
Prints details of the changes made to the input file.
|
|
|
|
.IP --version
|
|
Shows the version of patchelf.
|
|
|
|
.SH AUTHOR
|
|
Eelco Dolstra <e.dolstra@tudelft.nl>
|
|
|
|
.SH "SEE ALSO"
|
|
.BR elf (5),
|
|
.BR ld.so (8)
|
|
|
|
|