Linker and Libraries Guide

Dynamic String Tokens

The runtime linker will replace the following string tokens when they are used in a runpath (DT_RPATH), dependency (DT_NEEDED), or a filter (DT_FILTER, DT_AUXILIARY):

$PLATFORM

Expands to the current processor type (uname --p) of the current machine. See "Platform Specific Shared Objects".

$ORIGIN

Provides the directory the object was loaded from; typical use is for locating dependencies in unbundled packages. See Appendix C, Recording Dependencies with $ORIGIN.


Note -

$PLATFORM was added in SunOS5.5, but prior to SunOS5.6 was only available for expressing auxiliary filters (DT_AUXILIARY)