Ignore:
Timestamp:
Nov 4, 2016, 10:18:28 PM (4 years ago)
Author:
matszpk
Message:

CLRadeonExtender: Add Elf_Dyn to Elf.h. Some updates in ROCmBinaries.

File:
1 edited

Legend:

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

    r2535 r2536  
    1919
    2020#include <CLRX/Config.h>
     21#include <cassert>
    2122#include <cstdint>
    2223#include <algorithm>
     
    181182             Array<cxbyte>* aPtr) const
    182183{
    183     ElfBinaryGen64 elfBinGen64;
    184    
    185184    const char* comment = "CLRX ROCmBinGenerator " CLRX_VERSION;
    186185    uint32_t commentSize = ::strlen(comment);
     
    193192    }
    194193   
     194    ElfBinaryGen64 elfBinGen64;
    195195    elfBinGen64.addRegion(ElfRegion64::programHeaderTable());
    196196    elfBinGen64.addRegion(ElfRegion64::dynsymSection());
     
    210210    elfBinGen64.addRegion(ElfRegion64::sectionHeaderTable());
    211211   
    212     size_t binarySize;
     212    size_t binarySize = elfBinGen64.countSize();
    213213    /****
    214214     * prepare for write binary to output
     
    239239     * write binary to output
    240240     ****/
    241     //elfBinGen64->generate(bos);
    242     //assert(bos.getWritten() == binarySize);
     241    FastOutputBuffer bos(256, *os);
     242    elfBinGen64.generate(bos);
     243    assert(bos.getWritten() == binarySize);
    243244    }
    244245    catch(...)
Note: See TracChangeset for help on using the changeset viewer.