Apply dynamic relocations for STT_FUNC symbols

Required to support function calls through GOT table.

Change-Id: I174a0269fdd67369d38fe41855b7bd01f350b839


[ROCm/ROCR-Runtime commit: 47f0e6f7d3]
Этот коммит содержится в:
Scott Linder
2018-09-20 17:07:54 -04:00
коммит произвёл Konstantin Zhuravlyov
родитель f4d18d5256
Коммит 42d4d4ebcf
+1
Просмотреть файл
@@ -1697,6 +1697,7 @@ hsa_status_t ExecutableImpl::ApplyDynamicRelocation(hsa_agent_t agent, amd::hsa:
switch (rel->symbol()->type()) {
case STT_OBJECT:
case STT_AMDGPU_HSA_KERNEL:
case STT_FUNC:
{
Segment* symSeg = VirtualAddressSegment(rel->symbol()->value());
symAddr = reinterpret_cast<uint64_t>(symSeg->Address(rel->symbol()->value()));