Ignore:
Timestamp:
Nov 19, 2016, 9:57:41 PM (3 years ago)
Author:
matszpk
Message:

CLRadeonExtender: ROCmBinaries: fixed reading symbol for big-endian machines.

File:
1 edited

Legend:

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

    r2576 r2579  
    5959        const cxbyte symType = ELF64_ST_TYPE(sym.st_info);
    6060        const cxbyte bind = ELF64_ST_BIND(sym.st_info);
    61         if (sym.st_shndx==textIndex &&
     61        if (ULEV(sym.st_shndx)==textIndex &&
    6262            (symType==STT_GNU_IFUNC || (bind==STB_GLOBAL && symType==STT_OBJECT)))
    6363            regionsNum++;
     
    7373    {
    7474        const Elf64_Sym& sym = getSymbol(i);
    75         if (sym.st_shndx!=textIndex)
     75        if (ULEV(sym.st_shndx)!=textIndex)
    7676            continue;   // if not in '.text' section
    7777        const size_t value = ULEV(sym.st_value);
Note: See TracChangeset for help on using the changeset viewer.