Changeset 2549 in CLRX


Ignore:
Timestamp:
Nov 7, 2016, 10:05:36 PM (3 years ago)
Author:
matszpk
Message:

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

File:
1 edited

Legend:

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

    r2533 r2549  
    6868   
    6969    {
    70         const cxbyte* noteContent = binary.getSectionContent(".note");
    71         size_t notesSize = binary.getSectionHeader(".note").sh_size;
     70        const cxbyte* noteContent = (const cxbyte*)binary.getNotes();
     71        if (noteContent==nullptr)
     72            throw Exception("Missing notes in inner binary!");
     73        size_t notesSize = binary.getNotesSize();
    7274        // find note about AMDGPU
    7375        for (size_t offset = 0; offset < notesSize; )
Note: See TracChangeset for help on using the changeset viewer.