Ignore:
Timestamp:
Jul 19, 2019, 10:25:54 PM (5 months ago)
Author:
matszpk
Message:

CLRadeonExtender: GCNAsm: Add VOP1 instructions testcases for GFX10. Fixed segfault for new ROCm binary format if STT_FUNC symbols present (accept only real kernel symbols).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • CLRadeonExtender/trunk/amdbin/ROCmBinaries.cpp

    r4430 r4817  
    14111411        const cxbyte bind = ELF64_ST_BIND(sym.st_info);
    14121412        if (ULEV(sym.st_shndx)==textIndex &&
    1413             (symType==STT_GNU_IFUNC || symType==STT_FUNC ||
     1413            (symType==STT_GNU_IFUNC || (symType==STT_FUNC && !newBinFormat) ||
    14141414                (bind==STB_GLOBAL && symType==STT_OBJECT)))
    14151415            regionsNum++;
     
    14441444            // if function kernel
    14451445            else if (symType==STT_FUNC)
     1446            {
     1447                if (newBinFormat)
     1448                    continue;
    14461449                type = ROCmRegionType::FKERNEL;
     1450            }
    14471451            symOffsets[j] = std::make_pair(value, j);
    14481452            if (type!=ROCmRegionType::DATA && value+0x100 > codeOffset+codeSize)
Note: See TracChangeset for help on using the changeset viewer.