PatchworkOS  966e257
A non-POSIX operating system.
Loading...
Searching...
No Matches
Elf64_Shdr Struct Reference

ELF64 Section Header. More...

#include <elf.h>

Collaboration diagram for Elf64_Shdr:

Data Fields

Elf64_Word sh_name
 Index of the section name in the string table.
 
Elf64_Word sh_type
 Section type.
 
Elf64_Xword sh_flags
 Section flags.
 
Elf64_Addr sh_addr
 If the section will appear in memory, this will be its virtual address, otherwise 0
 
Elf64_Off sh_offset
 Section's file offset in bytes.
 
Elf64_Xword sh_size
 Section size in bytes.
 
Elf64_Word sh_link
 
Elf64_Word sh_info
 Depends on section type.
 
Elf64_Xword sh_addralign
 Section byte alignment requirement.
 
Elf64_Xword sh_entsize
 

Detailed Description

ELF64 Section Header.

See also
https://gabi.xinuos.com/elf/03-sheader.html

Stored in the section header table, which is located at the file offset e_shoff and contains e_shnum entries where each entry is e_shentsize bytes long.

Each section header describes a section in the ELF file, for example the .text or .data sections.

Definition at line 467 of file elf.h.

Field Documentation

◆ sh_name

Elf64_Word Elf64_Shdr::sh_name

Index of the section name in the string table.

Definition at line 469 of file elf.h.

◆ sh_type

Elf64_Word Elf64_Shdr::sh_type

Section type.

Definition at line 470 of file elf.h.

◆ sh_flags

Elf64_Xword Elf64_Shdr::sh_flags

Section flags.

Definition at line 471 of file elf.h.

◆ sh_addr

Elf64_Addr Elf64_Shdr::sh_addr

If the section will appear in memory, this will be its virtual address, otherwise 0

Definition at line 472 of file elf.h.

◆ sh_offset

Elf64_Off Elf64_Shdr::sh_offset

Section's file offset in bytes.

Definition at line 473 of file elf.h.

◆ sh_size

Elf64_Xword Elf64_Shdr::sh_size

Section size in bytes.

Definition at line 474 of file elf.h.

◆ sh_link

Elf64_Word Elf64_Shdr::sh_link

Depends on section type, for symbol tables this is the section header index of the associated string table

Definition at line 475 of file elf.h.

◆ sh_info

Elf64_Word Elf64_Shdr::sh_info

Depends on section type.

Definition at line 477 of file elf.h.

◆ sh_addralign

Elf64_Xword Elf64_Shdr::sh_addralign

Section byte alignment requirement.

Definition at line 478 of file elf.h.

◆ sh_entsize

Elf64_Xword Elf64_Shdr::sh_entsize

If the section holds a table of fixed-size entries, this is the size of each entry, otherwise 0

Definition at line 479 of file elf.h.


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