Zig 0.17.0-dev (Split by item)

Shortcut keys
?
Show these tips
S
Focus search field
Esc
Clear focus & close tips
U
Jump to source code
↑
Move up in search results
↓
Move down in search results
↵
Go to active search result
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 standard library. Public Enum

PT

Public Enum
std.elf.PT
pub const PT = enum(Word)

Values

  • pub const NUM

    Number of defined types

  • pub const LOOS

    Start of OS-specific

  • pub const HIOS

    End of OS-specific

  • pub const GNU_EH_FRAME

    GCC .eh_frame_hdr segment

  • pub const GNU_STACK

    Indicates stack executability

  • pub const GNU_RELRO

    Read-only after relocation

  • pub const LOSUNW
  • pub const HISUNW
  • pub const SUNWBSS

    Sun specific segment

  • pub const SUNWSTACK

    Stack segment

  • pub const LOPROC

    Start of processor-specific

  • pub const HIPROC

    End of processor-specific

File

elf.zig:426
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
pub const PT = enum(Word) {
    /// Program header table entry unused
    NULL = 0,
    /// Loadable program segment
    LOAD = 1,
    /// Dynamic linking information
    DYNAMIC = 2,
    /// Program interpreter
    INTERP = 3,
    /// Auxiliary information
    NOTE = 4,
    /// Reserved
    SHLIB = 5,
    /// Entry for header table itself
    PHDR = 6,
    /// Thread-local storage segment
    TLS = 7,
    _,

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

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

    /// GCC .eh_frame_hdr segment
    pub const GNU_EH_FRAME: PT = @fromBackingInt(@intCast(0x6474e550));
    /// Indicates stack executability
    pub const GNU_STACK: PT = @fromBackingInt(@intCast(0x6474e551));
    /// Read-only after relocation
    pub const GNU_RELRO: PT = @fromBackingInt(@intCast(0x6474e552));

    pub const LOSUNW: PT = @fromBackingInt(@intCast(0x6ffffffa));
    pub const HISUNW: PT = @fromBackingInt(@intCast(0x6fffffff));

    /// Sun specific segment
    pub const SUNWBSS: PT = @fromBackingInt(@intCast(0x6ffffffa));
    /// Stack segment
    pub const SUNWSTACK: PT = @fromBackingInt(@intCast(0x6ffffffb));

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