struct SectionFlags [src]

Fields

alloc: bool = falseadd SHF_ALLOC
contents: bool = falseif section is SHT_NOBITS, set SHT_PROGBITS, otherwise do nothing
load: bool = falseif section is SHT_NOBITS, set SHT_PROGBITS, otherwise do nothing (same as contents)
readonly: bool = falsereadonly: clear default SHF_WRITE flag
code: bool = falseadd SHF_EXECINSTR
exclude: bool = falseadd SHF_EXCLUDE
large: bool = falseadd SHF_X86_64_LARGE. Fatal error if target is not x86_64
merge: bool = falseadd SHF_MERGE
strings: bool = falseadd SHF_STRINGS

Source

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, }