Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
CHRPATH(1)	       change rpath/runpath in binaries		    CHRPATH(1)

NAME
       chrpath - change	the rpath or runpath in	binaries

SYNOPSIS
       chrpath	[  -v |	--version ] [ -d | --delete ] [	-r _path_ |  --replace
       _path_ ]	[ -c | --convert ] [ -l	| --list ] [ -h	| --help ] _program_ [
       _program_ ... ]

DESCRIPTION
       chrpath changes,	lists or removes the rpath or runpath setting in a bi-
       nary.  The rpath, or runpath if it is present,  is  where  the  runtime
       linker should look for the libraries needed for a program.

OPTIONS
       -v | --version
	      Display program version number

       -d | --delete
	      Delete current rpath or runpath setting

       -c | --convert
	      Convert the rpath	setting	into a runpath setting

       -r _path_ | --replace _path_
	      Replace  current	rpath  or runpath setting with the path	given.
	      The new path must	be shorter or the same length as  the  current
	      path.

       -k | --keepgoing
	      Do not fail on first error, but process all arguments before re-
	      turning the error.

       -l | --list
	      List the current rpath or	runpath	(default)

       -h | --help
	      Show usage information.

EXIT STATUS
       0      If all operations	were successful

       >0     if one of	the operations failed.	A failing operation terminates
	      the program unless -k is specified.

BUGS
       This  program  cannot create an RPATH tag if the	ELF does not have one,
       and it can only replace an RPATH	with one of equal or  shorter  length.
       (Moving	ELF sections following a lengthened string table would be dif-
       ficult and error-prone at best, and is  sometimes  outright  impossible
       due to issues like limited ranges in jump instructions.)

AUTHOR
       The  chrpath  program  was  written  by	Petter Reinholdtsen <pere@hun-
       gry.com>, based on works	by  Geoffrey  Keating  <geoffk@ozemail.com.au>
       and Peeter Joot <peeterj@ca.ibm.com>.

       This  manual page was originally	written	by Tollef Fog Heen <tfheen@de-
       bian.org>, for the Debian GNU/Linux system (but may be used by others).

chrpath				  May 4, 2002			    CHRPATH(1)

NAME | SYNOPSIS | DESCRIPTION | OPTIONS | EXIT STATUS | BUGS | AUTHOR

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=chrpath&sektion=1&manpath=FreeBSD+12.2-RELEASE+and+Ports>

home | help