The fastbind command performs analysis on the symbols used to bind an executable and all of its dependent shared libraries, and stores this information in the executable file. The next time the executable is run, the dynamic loader (/usr/lib/dld.sl for
Because fastbind writes the fastbind information in the executable file, you must have write permission on the executable file. If the executable file being analyzed is being run as another process or the file is locked against modifications by the kernel, the fastbind command fails.
If the shared libraries that an executable is dependent on are modified after the fastbind information is created, the dynamic loader silently reverts to standard search method for binding the symbols. The fastbind information can be
To | Use the option |
|
|
Remove the fastbind information from the executable, returning it to the same state it as was in | |
before you ran fastbind on it. |
|
|
|
Normally, if fastbind detects any unsatisfied symbols while building the fastbind information, | |
it generates an error message and does not modify the executable file. When you invoke |
|
fastbind with the |
|
|
|
The
The fastbind command effectively enforces the binding modes
For more information about fastbind and performance, see “Improving Shared Library
Example 14 Improving Program
•To run fastbind on the executable file a.out: $ fastbind a.out
•To remove the fastbind information from the executable file a.out: $ fastbind
Finding Object Library Ordering Relationships with lorder(1)
The lorder command finds the ordering relation for an object library. You can specify one or more object or archive library files (see ar(1)) on the command line or read those files from standard input. The standard output is a list of pairs of object file names, meaning that the first file of the pair refers to external identifiers defined in the second.
You can process the output with tsort to find an ordering of a library suitable for
The symbol table maintained by ar allows ld to randomly access symbols and files in the archive, making the use of lorder unnecessary when building archive libraries (see ar(1)).
Finding Object Library Ordering Relationships with lorder(1) 77