Changeset View
Changeset View
Standalone View
Standalone View
libexec/rtld-elf/rtld.1
Show All 22 Lines | |||||
.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | .\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | ||||
.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | .\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | ||||
.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | .\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||||
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | ||||
.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||||
.\" | .\" | ||||
.\" $FreeBSD$ | .\" $FreeBSD$ | ||||
.\" | .\" | ||||
.Dd June 2, 2021 | .Dd August 15, 2021 | ||||
.Dt RTLD 1 | .Dt RTLD 1 | ||||
.Os | .Os | ||||
.Sh NAME | .Sh NAME | ||||
.Nm ld-elf.so.1 , | .Nm ld-elf.so.1 , | ||||
.Nm ld.so , | .Nm ld.so , | ||||
.Nm rtld | .Nm rtld | ||||
.Nd run-time link-editor | .Nd run-time link-editor | ||||
.Sh DESCRIPTION | .Sh DESCRIPTION | ||||
▲ Show 20 Lines • Show All 98 Lines • ▼ Show 20 Lines | |||||
.Nm | .Nm | ||||
will print a table containing all relocations after symbol | will print a table containing all relocations after symbol | ||||
binding and relocation. | binding and relocation. | ||||
.It Ev LD_DUMP_REL_PRE | .It Ev LD_DUMP_REL_PRE | ||||
If set, | If set, | ||||
.Nm | .Nm | ||||
will print a table containing all relocations before symbol | will print a table containing all relocations before symbol | ||||
binding and relocation. | binding and relocation. | ||||
.It Ev LD_DYNAMIC_WEAK | |||||
If set, use the ELF standard-compliant symbol lookup behavior: | |||||
resolve to the first found symbol definition. | |||||
.Pp | |||||
By default, | |||||
.Fx | |||||
provides the non-standard symbol lookup behavior: | |||||
when a weak symbol definition is found, remember the definition and | |||||
keep searching in the remaining shared objects for a non-weak definition. | |||||
If found, the non-weak definition is preferred, otherwise the remembered | |||||
weak definition is returned. | |||||
.Pp | |||||
Symbols exported by dynamic linker itself (see | |||||
.Xr dlfcn 3 ) | |||||
are always resolved using | |||||
.Fx | |||||
rules regardless of the presence of the variable. | |||||
This variable is unset for set-user-ID and set-group-ID programs. | |||||
.It Ev LD_LIBMAP | .It Ev LD_LIBMAP | ||||
A library replacement list in the same format as | A library replacement list in the same format as | ||||
.Xr libmap.conf 5 . | .Xr libmap.conf 5 . | ||||
For convenience, the characters | For convenience, the characters | ||||
.Ql = | .Ql = | ||||
and | and | ||||
.Ql \&, | .Ql \&, | ||||
can be used instead of a space and a newline. | can be used instead of a space and a newline. | ||||
▲ Show 20 Lines • Show All 308 Lines • Show Last 20 Lines |