HP eld Manual page 250

Table of Contents

Advertisement

TNS/E Native Object Files
Text Sections
Text sections contain application-defined executable code (procedures). The
object file design also allows them to contain data, but that is not expected to
happen. In linkfiles, there can be any number of text sections. Their names must
begin either .text or .restext, corresponding to whether they contain non-resident or
resident text, respectively. In loadfiles, all the sections that had names beginning
.text are combined into a single section named .text, and similarly for .restext, and
the .restext section (if it exists) comes before the .text section. A text section is
required in a program, because there must be a main entry point. Text sections in
a loadfile can contain branch stubs, which are generated by the linker when a
procedure call would need to jump farther than its instruction format allows.
.hash Section
This is a hash table for looking up symbols in the .dynsym section. It is required in
loadfiles and import libraries.
.dynsym Section
This is the dynamic symbol table. It contains information about symbols
referenced in this loadfile or exported from this loadfile, other than globalized
symbols. It is required in loadfiles and import libraries.
.dynstr Section
This is a string space that is pointed at from the .dynsym section. It is required in
loadfiles and import libraries.
.hashval Section
This contains precomputed hash values for the symbols listed in the .dynsym
section. It is required in loadfiles.
.rela.dyn Section
This is the dynamic relocation table. It contains descriptions of the relocation sites
within this loadfile whose targets are the symbols listed in the .dynsym section.
.gateway Section
This contains gateways. A gateway is created for each procedure entry point that
has the CALLABLE or KERNEL_CALLABLE attribute.
.data Section
This contains application-defined initialized data, but doesn't have either of the
restrictions that make it possible to put data into the .rdata or .sdata section.
eld Manual—527255-009
A-8
Summary of the Contents of an Object File

Advertisement

Table of Contents
loading

Table of Contents