diff options
| author | Jakub Konka <kubkon@jakubkonka.com> | 2022-09-18 23:19:33 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-09-18 23:19:33 +0200 |
| commit | e42f83825f1473661700f89ffd3060013261d605 (patch) | |
| tree | 925898512846a68c42de617b807d13553ae33c67 /lib/std | |
| parent | 2698cb346abe01a978edf98ba16ab6aad506b596 (diff) | |
| parent | 4474f8dd6ed58875930f440aad0b893c1c9a414d (diff) | |
| download | zig-e42f83825f1473661700f89ffd3060013261d605.tar.gz zig-e42f83825f1473661700f89ffd3060013261d605.zip | |
Merge pull request #12893 from ziglang/macho-relocs-cleanup
macho: rewrite incremental linker, and init splitting of linking contexts
Diffstat (limited to 'lib/std')
| -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; } |
