| ... | @@ -3486,6 +3486,7 @@ pub const Zld = struct { | ... | @@ -3486,6 +3486,7 @@ pub const Zld = struct { |
| 3486 | scoped_log.debug("locals:", .{}); | 3486 | scoped_log.debug("locals:", .{}); |
| 3487 | for (self.objects.items) |object, id| { | 3487 | for (self.objects.items) |object, id| { |
| 3488 | scoped_log.debug(" object({d}): {s}", .{ id, object.name }); | 3488 | scoped_log.debug(" object({d}): {s}", .{ id, object.name }); |
| | 3489 | if (object.in_symtab == null) continue; |
| 3489 | for (object.symtab) |sym, sym_id| { | 3490 | for (object.symtab) |sym, sym_id| { |
| 3490 | mem.set(u8, &buf, '_'); | 3491 | mem.set(u8, &buf, '_'); |
| 3491 | scoped_log.debug(" %{d}: {s} @{x} in sect({d}), {s}", .{ | 3492 | scoped_log.debug(" %{d}: {s} @{x} in sect({d}), {s}", .{ |
| ... | @@ -3641,7 +3642,7 @@ pub const Zld = struct { | ... | @@ -3641,7 +3642,7 @@ pub const Zld = struct { |
| 3641 | sym.n_sect, | 3642 | sym.n_sect, |
| 3642 | }); | 3643 | }); |
| 3643 | | 3644 | |
| 3644 | if (atom.getFile() != null) { | 3645 | if (atom.getFile() != null) { |
| 3645 | var it = Atom.getInnerSymbolsIterator(self, atom_index); | 3646 | var it = Atom.getInnerSymbolsIterator(self, atom_index); |
| 3646 | while (it.next()) |sym_loc| { | 3647 | while (it.next()) |sym_loc| { |
| 3647 | const inner = self.getSymbol(sym_loc); | 3648 | const inner = self.getSymbol(sym_loc); |