diff options
| author | Jakub Konka <kubkon@jakubkonka.com> | 2022-09-13 15:27:25 +0200 |
|---|---|---|
| committer | Jakub Konka <kubkon@jakubkonka.com> | 2022-09-18 10:00:04 +0200 |
| commit | e601969244d9e3da7f6c88792932297d87c821eb (patch) | |
| tree | 272c198c88b1edb5f366d20ffa887f4298bba19e /lib/std/macho.zig | |
| parent | 79ab46ec918edc5d31c87a2535a30b8d2207228c (diff) | |
| download | zig-e601969244d9e3da7f6c88792932297d87c821eb.tar.gz zig-e601969244d9e3da7f6c88792932297d87c821eb.zip | |
macho: rewrite how we allocate space in incremental context
Diffstat (limited to 'lib/std/macho.zig')
| -rw-r--r-- | lib/std/macho.zig | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/std/macho.zig b/lib/std/macho.zig index 1955a00334..7511b482bd 100644 --- a/lib/std/macho.zig +++ b/lib/std/macho.zig @@ -798,6 +798,11 @@ pub const section_64 = extern struct { return tt == S_ZEROFILL or tt == S_GB_ZEROFILL or tt == S_THREAD_LOCAL_ZEROFILL; } + pub fn isSymbolStubs(sect: section_64) bool { + const tt = sect.@"type"(); + return tt == S_SYMBOL_STUBS; + } + pub fn isDebug(sect: section_64) bool { return sect.attrs() & S_ATTR_DEBUG != 0; } |
