From dde11e307d5c57d5ffc86e204366f74c4c37a4e1 Mon Sep 17 00:00:00 2001 From: Konstantin Zhuravlyov Date: Thu, 28 Mar 2019 19:20:55 -0400 Subject: [PATCH] Process symbols with 0 address Change-Id: I9ed943a8ccd3b103edd6aba8264c009d8cda29fa [ROCm/ROCR-Runtime commit: 70011347571279936159ddeb7a7c2eb405882ee6] --- projects/rocr-runtime/runtime/hsa-runtime/loader/executable.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/projects/rocr-runtime/runtime/hsa-runtime/loader/executable.cpp b/projects/rocr-runtime/runtime/hsa-runtime/loader/executable.cpp index de439cc9df..bad09195cb 100644 --- a/projects/rocr-runtime/runtime/hsa-runtime/loader/executable.cpp +++ b/projects/rocr-runtime/runtime/hsa-runtime/loader/executable.cpp @@ -1301,8 +1301,6 @@ hsa_status_t ExecutableImpl::LoadDefinitionSymbol(hsa_agent_t agent, } uint64_t address = SymbolAddress(agent, sym); - if (!address) { return HSA_STATUS_ERROR_INVALID_CODE_OBJECT; } - SymbolImpl *symbol = nullptr; if (string_ends_with(sym->GetSymbolName(), ".kd")) { // V3.