Zig 0.17.0-dev (Split by item)

This is an example of documentation generated by ZigDoc, an alternative to Zig's built-in Auto Doc feature. See also examples in other modes/formats. The project being documented here (as the example) is the Zig library itself.

SHT

elf.SHT
pub const SHT = enum(Word)

File

lib/std/elf.zig:515

Code

pub const SHT = enum(Word) {
    /// Section header table entry unused
    NULL = 0,
    /// Program data
    PROGBITS = 1,
    /// Symbol table
    SYMTAB = 2,
    /// String table
    STRTAB = 3,
    /// Relocation entries with addends
    RELA = 4,
    /// Symbol hash table
    HASH = 5,
    /// Dynamic linking information
    DYNAMIC = 6,
    /// Notes
    NOTE = 7,
    /// Program space with no data (bss)
    NOBITS = 8,
    /// Relocation entries, no addends
    REL = 9,
    /// Reserved
    SHLIB = 10,
    /// Dynamic linker symbol table
    DYNSYM = 11,
    /// Array of constructors
    INIT_ARRAY = 14,
    /// Array of destructors
    FINI_ARRAY = 15,
    /// Array of pre-constructors
    PREINIT_ARRAY = 16,
    /// Section group
    GROUP = 17,
    /// Extended section indices
    SYMTAB_SHNDX = 18,
    /// RELR relative relocations
    RELR = 19,
    _,

    /// Number of defined types
    pub const NUM = @typeInfo(SHT).@"enum".field_names.len;

    /// Start of OS-specific
    pub const LOOS: SHT = @fromBackingInt(@intCast(0x60000000));
    /// End of OS-specific
    pub const HIOS: SHT = @fromBackingInt(@intCast(0x6fffffff));

    /// LLVM address-significance table
    pub const LLVM_ADDRSIG: SHT = @fromBackingInt(@intCast(0x6fff4c03));

    /// GNU hash table
    pub const GNU_HASH: SHT = @fromBackingInt(@intCast(0x6ffffff6));
    /// GNU version definition table
    pub const GNU_VERDEF: SHT = @fromBackingInt(@intCast(0x6ffffffd));
    /// GNU needed versions table
    pub const GNU_VERNEED: SHT = @fromBackingInt(@intCast(0x6ffffffe));
    /// GNU symbol version table
    pub const GNU_VERSYM: SHT = @fromBackingInt(@intCast(0x6fffffff));

    /// Start of processor-specific
    pub const LOPROC: SHT = @fromBackingInt(@intCast(0x70000000));
    /// End of processor-specific
    pub const HIPROC: SHT = @fromBackingInt(@intCast(0x7fffffff));

    /// Unwind information
    pub const X86_64_UNWIND: SHT = @fromBackingInt(@intCast(0x70000001));

    /// Start of application-specific
    pub const LOUSER: SHT = @fromBackingInt(@intCast(0x80000000));
    /// End of application-specific
    pub const HIUSER: SHT = @fromBackingInt(@intCast(0xffffffff));
}