pub const SectionFlags = packed struct(u9) 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
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359 pub const SectionFlags = packed struct(u9) {
/// 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,
pub const default: @This() = .{};
}