Ignore:
Timestamp:
Nov 1, 2016, 6:38:52 AM (3 years ago)
Author:
matszpk
Message:

CLRadeonExtender: Correct size from symbol to kernel code size.

File:
1 edited

Legend:

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

    r2512 r2514  
    8585        if (value+0x100 > codeOffset+codeSize)
    8686            throw Exception("Kernel offset is too big!");
    87         kernels[j++] = { getSymbolName(i), value, size, value+0x100 };
     87        kernels[j++] = { getSymbolName(i), value, (size>=0x100) ? size-0x100 : 0,
     88            value+0x100 };
    8889    }
    8990    std::sort(symOffsets.get(), symOffsets.get()+symsNum,
Note: See TracChangeset for help on using the changeset viewer.