| author | |
| committer | |
| log | 600348283fa5ea9646f91997e0a32f4632ca30b8 |
| tree | 82f062eb4fed41456afe76145e0936514aae41ce |
| parent | f8458a549ba7fbd29b3d045019313704f1305e89 |
1 files changed, 1 insertions(+), 0 deletions(-)
src/link/MachO/dead_strip.zig+1| ... | ... | @@ -92,6 +92,7 @@ fn collectRoots(roots: *std.AutoHashMap(*Atom, void), macho_file: *MachO) !void |
| 92 | 92 | const source_sect = object.getSourceSection(source_sym.n_sect - 1); |
| 93 | 93 | const is_gc_root = blk: { |
| 94 | 94 | if (source_sect.isDontDeadStrip()) break :blk true; |
| 95 | if (mem.eql(u8, "__StaticInit", source_sect.sectName())) break :blk true; | |
| 95 | 96 | switch (source_sect.type_()) { |
| 96 | 97 | macho.S_MOD_INIT_FUNC_POINTERS, |
| 97 | 98 | macho.S_MOD_TERM_FUNC_POINTERS, |