Ignore:
Timestamp:
Nov 7, 2016, 10:02:06 PM (4 years ago)
Author:
matszpk
Message:

CLRadeonExtender: Use new methods to access to notes in DisasmAmdCL2.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • CLRadeonExtender/trunk/amdasm/DisasmAmdCL2.cpp

    r2495 r2548  
    184184       
    185185        {
    186             const cxbyte* noteContent = innerBin.getSectionContent(".note");
    187             size_t notesSize = innerBin.getSectionHeader(".note").sh_size;
     186            const cxbyte* noteContent = (const cxbyte*)innerBin.getNotes();
     187            if (noteContent==nullptr)
     188                throw Exception("Missing notes in inner binary!");
     189            size_t notesSize = innerBin.getNotesSize();
    188190            // find note about AMDGPU
    189191            for (size_t offset = 0; offset < notesSize; )
Note: See TracChangeset for help on using the changeset viewer.