mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-05 09:09:04 +08:00
fix: improve propagating external functions info to kernel
When relocation points to symbol that is not defined within module mark it as optional. When symbol is available at dynamic linking time then info from the function is retrieved but when the symbol is not available then ignore the dependency. Any unresolved symbol needed for module linking is already handled in a separate place. Related-To: NEO-16243, NEO-16263, NEO-16262, NEO-16268 Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
a440a3e8ea
commit
15d0feeda8
@@ -24,6 +24,7 @@ struct WhiteBox<NEO::LinkerInput> : NEO::LinkerInput {
|
||||
|
||||
using BaseClass::dataRelocations;
|
||||
using BaseClass::exportedFunctionsSegmentId;
|
||||
using BaseClass::externalSymbols;
|
||||
using BaseClass::extFuncSymbols;
|
||||
using BaseClass::extFunDependencies;
|
||||
using BaseClass::kernelDependencies;
|
||||
|
||||
@@ -57,7 +57,7 @@ struct MockElf : public NEO::Elf::Elf<numBits> {
|
||||
relocations.emplace_back(reloc);
|
||||
}
|
||||
|
||||
void setupSecionNames(std::unordered_map<uint32_t, std::string> map) {
|
||||
void setupSectionNames(std::unordered_map<uint32_t, std::string> map) {
|
||||
sectionNames = map;
|
||||
overrideSectionNames = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user