Changeset 3812 in CLRX


Ignore:
Timestamp:
Feb 16, 2018, 5:33:23 PM (17 months ago)
Author:
matszpk
Message:

CLRadeonExtender: AsmROCm: Fixed dump for extra symbols (sort symbols).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • CLRadeonExtender/trunk/tests/amdasm/AsmROCmFormat.cpp

    r3811 r3812  
    247247    }
    248248    // print extra symbols if supplied
    249     for (BinSymbol symbol: output->extraSymbols)
     249    Array<BinSymbol> extraSymbols(output->extraSymbols.begin(), output->extraSymbols.end());
     250    std::sort(extraSymbols.begin(), extraSymbols.end(),
     251              [](const BinSymbol& s1, const BinSymbol& s2)
     252              { return s1.name < s2.name; });
     253   
     254    for (BinSymbol symbol: extraSymbols)
    250255        os << "  Symbol: name=" << symbol.name << ", value=" << symbol.value <<
    251256                ", size=" << symbol.size << ", section=" << symbol.sectionId << "\n";
     
    15071512    Sym: datav
    15081513    Sym: globalValX
     1514  Symbol: name=datav.GOT, value=16, size=0, section=4294967055
     1515  Symbol: name=gdata1, value=0, size=0, section=4294967046
     1516  Symbol: name=gdata2, value=20, size=0, section=4294967046
    15091517  Symbol: name=globalValX, value=334, size=0, section=4294967294
    15101518  Symbol: name=globalValX.GOT, value=24, size=0, section=4294967055
    1511   Symbol: name=datav.GOT, value=16, size=0, section=4294967055
    1512   Symbol: name=gdata2, value=20, size=0, section=4294967046
    1513   Symbol: name=gdata1, value=0, size=0, section=4294967046
    15141519)ffDXD",
    15151520        "", true
Note: See TracChangeset for help on using the changeset viewer.