Apply dynamic relocations for STT_FUNC symbols

Required to support function calls through GOT table.

Change-Id: I174a0269fdd67369d38fe41855b7bd01f350b839
This commit is contained in:
Scott Linder
2018-09-20 17:07:54 -04:00
committed by Konstantin Zhuravlyov
orang tua 01eea21d6c
melakukan 47f0e6f7d3
@@ -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()));