diff --git a/projects/rocr-runtime/runtime/hsa-runtime/libamdhsacode/amd_elf_image.cpp b/projects/rocr-runtime/runtime/hsa-runtime/libamdhsacode/amd_elf_image.cpp index 1005d8d60c..2fdaab0b2d 100644 --- a/projects/rocr-runtime/runtime/hsa-runtime/libamdhsacode/amd_elf_image.cpp +++ b/projects/rocr-runtime/runtime/hsa-runtime/libamdhsacode/amd_elf_image.cpp @@ -1456,7 +1456,7 @@ namespace elf { } for (size_t i = 1; i < sections.size(); ++i) { - if (i == ehdr.e_shstrndx || i == ehdr.e_shstrndx) { continue; } + if (i == ehdr.e_shstrndx) { continue; } std::unique_ptr& section = sections[i]; if (section->type() == SHT_STRTAB) { strtabSection = static_cast(section.get()); } if (section->type() == SHT_SYMTAB) { symtabSection = static_cast(section.get()); }