TNS/E Native Object Files
eld Manual—527255-009
A-8
Summary of the Contents of an Object File
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
Страница 4: ......
Страница 8: ...Contents eld Manual 527255 009 iv ...
Страница 12: ...What s New in This Manual eld Manual 527255 009 viii Changes to the 527255 005 Manual ...
Страница 34: ...Introduction to eld eld Manual 527255 009 1 14 Example of Use ...
Страница 54: ...eld Input and Output eld Manual 527255 009 2 20 Using Archives ...
Страница 98: ...Other eld Processing eld Manual 527255 009 4 20 Merging Source RTDUs ...
Страница 242: ...Output Listings and Error Handling eld Manual 527255 009 6 132 Glossary of Errors ...