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 Struct

SectionFlags

Public Struct
std.Build.Configuration.Step.ObjCopy.SectionFlags
pub const SectionFlags = packed struct(u9)

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

Values

File

Build/Configuration.zig:1338
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() = .{};
        }