structstd.Build.Step.ObjCopy.SectionFlags[src]

Fields

alloc: bool = false

add SHF_ALLOC

contents: bool = false

if section is SHT_NOBITS, set SHT_PROGBITS, otherwise do nothing

load: bool = false

if section is SHT_NOBITS, set SHT_PROGBITS, otherwise do nothing (same as contents)

readonly: bool = false

readonly: clear default SHF_WRITE flag

code: bool = false

add SHF_EXECINSTR

exclude: bool = false

add SHF_EXCLUDE

large: bool = false

add SHF_X86_64_LARGE. Fatal error if target is not x86_64

merge: bool = false

add SHF_MERGE

strings: bool = false

add SHF_STRINGS

Source Code

Source code
pub const SectionFlags = packed struct {
    /// add SHF_ALLOC
    alloc: bool = false,

    /// if section is SHT_NOBITS, set SHT_PROGBITS, otherwise do nothing
    contents: bool = false,

    /// if section is SHT_NOBITS, set SHT_PROGBITS, otherwise do nothing (same as contents)
    load: bool = false,

    /// readonly: clear default SHF_WRITE flag
    readonly: bool = false,

    /// add SHF_EXECINSTR
    code: bool = false,

    /// add SHF_EXCLUDE
    exclude: bool = false,

    /// add SHF_X86_64_LARGE. Fatal error if target is not x86_64
    large: bool = false,

    /// add SHF_MERGE
    merge: bool = false,

    /// add SHF_STRINGS
    strings: bool = false,
}