Changeset 2574 in CLRX


Ignore:
Timestamp:
Nov 16, 2016, 8:48:44 PM (3 years ago)
Author:
matszpk
Message:

CLRadeonExtender: ElfBinGen?: Set align==0 if program header is empty (fix for ROCmBinGen).

File:
1 edited

Legend:

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

    r2573 r2574  
    880880                        sregion.section.zeroOffset;
    881881                SLEV(phdr.p_offset, !zeroOffset ? sroffset : 0);
    882                 if (progHeader.align==0)
     882                if (progHeader.align==0 && progHeader.regionsNum==0)
     883                    SLEV(phdr.p_align, 0);
     884                else if (progHeader.align==0)
    883885                {
    884886                    typename Types::Word align = (sregion.type==ElfRegionType::SECTION) ?
Note: See TracChangeset for help on using the changeset viewer.