Ignore:
Timestamp:
Nov 1, 2016, 6:02:00 PM (3 years ago)
Author:
matszpk
Message:

CLRadeonExtender: Ignore non-global visibility for kernel symbols.

File:
1 edited

Legend:

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

    r2519 r2521  
    5252        const Elf64_Sym& sym = getSymbol(i);
    5353        const cxbyte symType = ELF64_ST_TYPE(sym.st_info);
    54         if (sym.st_shndx==textIndex && ELF64_ST_BIND(sym.st_info)==STB_GLOBAL &&
     54        if (sym.st_shndx==textIndex &&
    5555            (symType==STT_GNU_IFUNC || symType==STT_OBJECT))
    5656            regionsNum++;
     
    7474       
    7575        const cxbyte symType = ELF64_ST_TYPE(sym.st_info);
    76         if (ELF64_ST_BIND(sym.st_info)==STB_GLOBAL &&
    77             (symType==STT_GNU_IFUNC || symType==STT_OBJECT))
     76        if ((symType==STT_GNU_IFUNC || symType==STT_OBJECT))
    7877        {
    7978            const bool isKernel = (symType==STT_GNU_IFUNC);
Note: See TracChangeset for help on using the changeset viewer.