HP eld Manual page 257

Table of Contents

Advertisement

TNS/E Native Object Files
Table A-3. Additional Predefined Symbols Optionally Created By The Linker In
Loadfiles
Name
_BASE_ADDRESS
_DYNAMIC
_unwind
_unwind_size
etext or _etext
fdata or _fdata
_GLOBAL_OFFSET_TA
BLE
__gp
edata or _edata
end or _end
Note that the sections listed above do not imply that the address of the symbol is in
that section. The value in st_scndx doesn't really matter, because the st_value fi
gives the symbol's value, not its offset within a section. But something needs to be
filled in for the st_shndx fi
rld and the -alf option of the linker know that it should be updated for rebasing.
Accordingly, the section indices shown above have been chosen. The linker will
always create sections named .text and .data, even if they would be empty, so that
their indices can be used in this way. Note that_unwind_size is absolute. Also, if the
loadfile has no code, and therefore has no .IA_64.unwind section, then the symbol
named _unwind is made absolute, and in this case both _unwind and _unwind_size
have the value 0.
Meaning
The address of the text
segment.
The address of the .dynamic
section.
The start of the .IA_64.unwind
section.
The number of entries in the
.IA_64.unwind section.
The end of the text segment.
The start of the data (constant)
segment.
The address of the .got section.
The GP value.
The end of the initialized data,
which is also the start of the
uninitialized data.
The end of all the data.
, and it needs to be a real section, not "absolute", so that
eld
eld Manual—527255-009
A-15
Predefined Symbols
Value of st_shndx
The index of the .text
section.
The index of the
.dynamic section.
The index of the
.IA_64.unwind
section, or SHN_ABS
(see the explanation
below).
SHN_ABS
The index of the .text
section.
The index of the .data
section.
The index of the .got
section.
The index of the .got
section.
The index of the .data
section.
The index of the .data
section.
eld

Advertisement

Table of Contents
loading

Table of Contents