Add R_AMDGPU_ABS32 support

Change-Id: I0ee0302d919ede44765adf02eab15015573efef2
Tá an tiomantas seo le fáil i:
Konstantin Zhuravlyov tiomanta 2024-03-26 18:47:29 -04:00
1 tuismitheoir c5e74b7d0a
tiomantas 9e8f185397
1 comhad athraithe
+12
+12
Féach ar an gComhad
@@ -1857,6 +1857,18 @@ hsa_status_t ExecutableImpl::ApplyDynamicRelocation(hsa_agent_t agent, amd::hsa:
break;
}
case ELF::R_AMDGPU_ABS32:
{
if (!symAddr) {
logger_ << "LoaderError: symbol \"" << rel->symbol()->name() << "\" is undefined\n";
return HSA_STATUS_ERROR_VARIABLE_UNDEFINED;
}
uint32_t symAddr32 = uint32_t(symAddr);
relSeg->Copy(rel->offset(), &symAddr32, sizeof(symAddr32));
break;
}
case ELF::R_AMDGPU_ABS64:
{
if (!symAddr) {