|
NAMElibmap.conf —
configuration file for dynamic object dependency mapping
DESCRIPTIONThelibmap 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:
ConstraintsConstrained 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. WARNING! Constraints apply to all mappings until the next
constraint or the end of the file. Hence, unconstrained mappings must be
placed at the top of the file.
ABI compatibilityOn 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.FILES
EXAMPLES# # 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 SEE ALSOldd(1), rtld(1)HISTORYThelibmap mechanism first appeared in
FreeBSD 5.1.
AUTHORSThis manual page was written by Matthew N. Dodd <winter@jurai.net> and extensively rewritten by Dag-Erling Smørgrav <des@FreeBSD.org>.
Visit the GSP FreeBSD Man Page Interface. |