elf: do not panic if we already have create a PLT entry for a symbol

This commit is contained in:
Jakub Konka
2024-10-02 12:17:00 +02:00
committed by Andrew Kelley
parent 906cf48e14
commit 133aa709b0

View File

@@ -110,7 +110,7 @@ pub const File = union(enum) {
} else if (!sym.flags.has_plt) {
log.debug("'{s}' needs PLT", .{sym.name(ef)});
try ef.plt.addSymbol(ref, ef);
} else unreachable;
}
}
if (sym.flags.needs_copy_rel and !sym.flags.has_copy_rel) {
log.debug("'{s}' needs COPYREL", .{sym.name(ef)});