4 Linker Tools for PA-RISC Systems
This chapter describes the linker toolset, which provides several tools to help you find symbols, display and modify object files, and determine link order. Some of these tools are specific to a particular object file type. Others are available in both
Tool | Mode | Description |
|
|
|
chatr | Displays or modifies the internal attributes of an object file. See “Changing a | |
|
| |
|
|
|
nm | Displays the symbol table of an object file. See “Viewing Symbols in an Object | |
|
| |
|
|
|
elfdump | Displays the contents of an ELF object file. See “Viewing the Contents of an Object | |
|
| |
|
|
|
ldd | Lists dynamic dependencies of executable files and shared libraries. “Viewing | |
|
| |
|
|
|
size | Prints sizes of object file elements. See “Viewing the Size of Object File Elements | |
|
| |
|
|
|
strip | Strips symbol and debugging information from an object file, executable, or | |
|
| archive library. See “Reducing Storage Space with strip(1)” (page 76) |
|
|
|
fastbind | Improves startup time of programs that use shared libraries. See. “Improving | |
|
| |
|
|
|
lorder | Finds ordering relationship for an object library. See “Finding Object Library | |
|
| |
|
|
|
odump | Displays the contents of a SOM object file. See the odump(1). | |
|
|
|
Changing a Program's Attributes with chatr(1)
The chatr command (seechatr(1)) allows you to change various program attributes that were determined at link time. When run without any options, chatr displays the attributes of the specified file.
Using chatr for
The following table summarizes the options you can use to change various attributes:
To | Use the option |
|
|
|
|
SHMEM_MAGIC. |
|
|
|
EXEC_MAGIC. |
|
|
|
Use immediate binding for all libraries loaded at program startup. | |
|
|
Use deferred binding for all libraries loaded at program startup. | |
|
|
Use nonfatal binding. Must be specified with | |
|
|
Use restricted binding. Must be specified with | |
|
|
Changing a Program's Attributes with chatr(1) 69