| Linux Standard Base PDA Specification 3.0RC3 | ||
|---|---|---|
| <<< Previous | Chapter 3. Dynamic Linking | Next >>> |
As described in System V ABI, if an object file CHAPTERicipates in dynamic linking, its program header table shall have an element of type PT_DYNAMIC. This `segment' contains the .dynamic section. A special symbol, _DYNAMIC, labels the section, which contains an array of the following structures.
typedef struct {
Elf32_Sword d_tag;
union {
Elf32_Word d_val;
Elf32_Addr d_ptr;
} d_un;
} Elf32_Dyn;
extern Elf32_Dyn _DYNAMIC[];
typedef struct {
Elf64_Sxword d_tag;
union {
Elf64_Xword d_val;
Elf64_Addr d_ptr;
} d_un;
} Elf64_Dyn;
extern Elf64_Dyn _DYNAMIC[]; |
Figure 3-1. Dynamic Structure
For each object with this type, d_tag
controls the interpretation of d_un.
The following dynamic entries are defined in the System V ABI and System V ABI Update.
An LSB conforming object may also use the following additional Dynamic Entry types.
| <<< Previous | Home | Next >>> |
| Program Header | Up | Linux Standard Base Specification |