Changeset 2562 in CLRX


Ignore:
Timestamp:
Nov 11, 2016, 1:04:44 PM (4 years ago)
Author:
matszpk
Message:

CLRadeonExtender: ElfBinGen?: add support for PHREGION_FILESTART to generator.

File:
1 edited

Legend:

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

    r2561 r2562  
    845845                SLEV(phdr.p_type, progHeader.type);
    846846                SLEV(phdr.p_flags, progHeader.flags);
    847                 const ElfRegionTemplate<Types>& sregion = regions[progHeader.regionStart];
     847                const ElfRegionTemplate<Types> startRegion(sizeof(typename Types::Ehdr),
     848                        (const cxbyte*)nullptr, sizeof(typename Types::Word));
     849               
     850                const ElfRegionTemplate<Types>& sregion =
     851                        (progHeader.regionStart==PHREGION_FILESTART) ? startRegion :
     852                        regions[progHeader.regionStart];
    848853                bool zeroOffset = sregion.type == ElfRegionType::SECTION &&
    849854                        sregion.section.zeroOffset;
Note: See TracChangeset for help on using the changeset viewer.