diff --git a/projects/rocr-runtime/runtime/hsa-runtime/libamdhsacode/amd_hsa_code.cpp b/projects/rocr-runtime/runtime/hsa-runtime/libamdhsacode/amd_hsa_code.cpp index 5780e3b992..5579a54f0b 100644 --- a/projects/rocr-runtime/runtime/hsa-runtime/libamdhsacode/amd_hsa_code.cpp +++ b/projects/rocr-runtime/runtime/hsa-runtime/libamdhsacode/amd_hsa_code.cpp @@ -1505,15 +1505,11 @@ namespace code { bool AmdHsaCode::PullElfV2() { - Segment* note = NULL; for (size_t i = 0; i < img->segmentCount(); ++i) { Segment* s = img->segment(i); if (s->type() == PT_LOAD) { dataSegments.push_back(s); } - else if (s->type() == PT_NOTE && s->align() >= 4) { - note = s; - } } for (size_t i = 0; i < img->sectionCount(); ++i) { Section* sec = img->section(i);