Changeset 2543 in CLRX


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

CLRadeonExtender: ElfBinaries?: fixes for condition when no null section added.

File:
1 edited

Legend:

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

    r2542 r2543  
    450450    sectionRegions.reset(new cxuint[sectionsNum+1]);
    451451    sectionRegions[0] = UINT_MAX;
    452     cxuint sectionCount = 1;
     452    cxuint sectionCount = addNullSection;
    453453    typename Types::Word address = 0;
    454454   
     
    865865                            SLEV(sym.st_value, inSym.value);
    866866                        // if not use conversion to address with section addrBase
    867                         else if (inSym.sectionIndex != 0 && regions[sectionRegions[
     867                        else if ((inSym.sectionIndex != 0 || !addNullSection) &&
     868                                regions[sectionRegions[
    868869                                    inSym.sectionIndex]].section.addrBase != 0)
    869870                            SLEV(sym.st_value, inSym.value + regionOffsets[
Note: See TracChangeset for help on using the changeset viewer.