mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-14 15:28:20 +00:00
tools like nm and ar only need register_claim_file and add_symbols. Don't abort
if other hooks are missing. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64812 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -142,9 +142,14 @@ ld_plugin_status onload(ld_plugin_tv *tv) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!registeredClaimFile || !registeredAllSymbolsRead || !registeredCleanup ||
|
if (!registeredClaimFile)
|
||||||
!add_symbols || !get_symbols || !add_input_file) {
|
{
|
||||||
(*message)(LDPL_ERROR, "Not all hooks registered for LLVMgold.");
|
(*message)(LDPL_ERROR, "register_claim_file not passed to LLVMgold.");
|
||||||
|
return LDPS_ERR;
|
||||||
|
}
|
||||||
|
if (!add_symbols)
|
||||||
|
{
|
||||||
|
(*message)(LDPL_ERROR, "add_symbols not passed to LLVMgold.");
|
||||||
return LDPS_ERR;
|
return LDPS_ERR;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user