LIBMAP.CONF(5) | MidnightBSD File Formats Manual | LIBMAP.CONF(5) |
libmap.conf
—
configuration file for dynamic object dependency
mapping
The libmap
functionality of
ld-elf.so.1(1)
allows dynamic object dependencies to be mapped to arbitrary names.
Each line in /etc/libmap.conf can have one of five forms:
include
fileincludedir
dirConstrained mappings only apply when processing binaries or libraries that satisfy the constraint. There are three types of constraints:
Note that the constraints are matched against the path that was passed as the first argument to whichever exec(3) function was used to execute the binary in question. Most programs executed from a shell are run without a full path, via execvp(3) or similar, so the basename constraint type is the most useful.
On 64-bit architectures that provide 32-bit binary compatibility, the mappings in /etc/libmap.conf apply only to 64-bit binaries. Mappings for 32-bit binaries must be placed in /etc/libmap32.conf.
# # origin target # libc_r.so.6 libpthread.so.2 # Everything that uses 'libc_r' libc_r.so libpthread.so # now uses 'libpthread' [/tmp/mplayer] # Test version of mplayer uses libc_r libpthread.so.2 libc_r.so.6 libpthread.so libc_r.so [/usr/local/jdk1.4.1/] # All Java 1.4.1 programs use libthr # This works because "javavms" executes # programs with the full pathname libpthread.so.2 libthr.so.2 libpthread.so libthr.so # Glue for Linux-only EPSON printer .so to be loaded into cups, etc. [/usr/local/lib/pips/libsc80c.so] libc.so.6 pluginwrapper/pips.so libdl.so.2 pluginwrapper/pips.so
The libmap
mechanism first appeared in
FreeBSD 5.1.
This manual page was written by Matthew N. Dodd <winter@jurai.net> and extensively rewritten by Dag-Erling Smørgrav <des@FreeBSD.org>.
September 16, 2013 | midnightbsd-3.1 |