My Kernel v0.1.0
elf32_shdr Struct Reference

ELF section header. More...

#include <elf32.h>

Data Fields

elf32_word sh_name
 Offset to this section's name inside the name table.
 
elf32_word sh_type
 Section type.
 
elf32_word sh_flags
 1-bit flag that describes the section's attributes
 
elf32_addr sh_addr
 Offset to the section's location inside memory.
 
elf32_off sh_offset
 Offset to the section's location inside the file.
 
elf32_word sh_size
 Size of the section.
 
elf32_word sh_addralign
 Alignment requirement for the section's starting address.
 

Detailed Description

A table of all section headers is always present inside the ELF file. This table can be located using its offset from the start of the file, present inside the ELF header's e_shoff field.


The documentation for this struct was generated from the following file: