Do not auto-stub unresolved objects (#4562)

* Patch unresolved object stubs with unresolve indicator

* Don't autostub unresolved objects in the first place
This commit is contained in:
kalaposfos13 2026-06-18 19:03:30 +02:00 committed by GitHub
parent d54e6b07f5
commit d9f68b53c9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -371,7 +371,10 @@ bool Linker::Resolve(const std::string& name, Loader::SymbolType sym_type, Modul
}
const auto aeronid = AeroLib::FindByNid(sr.name.c_str());
if (aeronid) {
if (sym_type == Loader::SymbolType::Object) {
return_info->name = aeronid ? aeronid->name : "Unknown object";
return_info->virtual_address = 0;
} else if (aeronid) {
return_info->name = aeronid->name;
return_info->virtual_address = AeroLib::GetStub(aeronid->nid);
} else {