The section header allows you to locate all of the file sections. An entry in a section header table contains information characterizing the data in a section.
The section header contains a number of fields as described in detail in sys/elf.h and Sections in Oracle Solaris 11.2 Linkers and Libraries Guide . However, only the following fields are of immediate interest to the assembly language programmer because they can be specified in assembler pseudo-operations (directives):
sh_flags
Description: One-bit descriptions of section attributes. Table 2–1 describes the some of the section attribute flags. For details and additional flags, see Sections in Oracle Solaris 11.2 Linkers and Libraries Guide
sh_info
Description: Extra information. The interpretation of this information depends on the section type, as described in . Table 2–2
sh_link
Description: Section header table index link. The interpretation of this information depends on the section type, as described in . Table 2–2
sh_name
Description: Specifies the section name. An index into the section header string table section specifies the location of a null-terminated string.
|
|