Linker and Libraries Guide

Reducing Filtee Searches

The use of $CAPABILITY within a filter enables one or more filtees to provide implementations of interfaces that are defined within the filter.

All shared objects within the specified $CAPABILITY directory are inspected to validate their availability, and to sort those found appropriate for the process. Once sorted, all objects are loaded in preparation for use.

A filtee can be built with the link-editor's -z endfiltee option to indicate that it is the last of the available filtees. A filtee identified with this option, terminates the sorted list of filtees for that filter. No objects sorted after this filtee are loaded for the filter. From the previous example, if the filtee was tagged with -z endfiltee, the filtee search would be as follows.

$ LD_DEBUG=symbols prog
01424: symbol=foo;  lookup in  [ ELF ]
01424: symbol=foo;  lookup in file=cap/  [ ELF ]