| ... | @@ -848,7 +848,8 @@ pub fn updateSymtabSize(self: *Object, elf_file: *Elf) !void { | ... | @@ -848,7 +848,8 @@ pub fn updateSymtabSize(self: *Object, elf_file: *Elf) !void { |
| 848 | if (local.atom(elf_file)) |atom| if (!atom.flags.alive) continue; | 848 | if (local.atom(elf_file)) |atom| if (!atom.flags.alive) continue; |
| 849 | const esym = local.elfSym(elf_file); | 849 | const esym = local.elfSym(elf_file); |
| 850 | switch (esym.st_type()) { | 850 | switch (esym.st_type()) { |
| 851 | elf.STT_SECTION, elf.STT_NOTYPE => continue, | 851 | elf.STT_SECTION => continue, |
| | 852 | elf.STT_NOTYPE => if (esym.st_shndx == elf.SHN_UNDEF) continue, |
| 852 | else => {}, | 853 | else => {}, |
| 853 | } | 854 | } |
| 854 | local.flags.output_symtab = true; | 855 | local.flags.output_symtab = true; |