Changeset 2573 in CLRX


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

CLRadeonExtender: ElfBinGen?: Fixed STRSZ in '.dynamic' section.
ROCmBinGen: Add empty '.AMDGPU.config' section.

Location:
CLRadeonExtender/trunk/amdbin
Files:
2 edited

Legend:

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

    r2567 r2573  
    697697            if (haveDynamic)
    698698            {
    699                 if (region.section.type == SHT_STRTAB)
     699                if (region.section.type == SHT_STRTAB &&
     700                    ::strcmp(region.section.name, ".dynstr") == 0)
    700701                    dynValTable[DT_STRSZ] = region.size;
    701702            }
  • CLRadeonExtender/trunk/amdbin/ROCmBinaries.cpp

    r2570 r2573  
    301301                Elf64Types::nobase, 0, false, 8));
    302302    elfBinGen64.addRegion(ElfRegion64::noteSection());
     303    elfBinGen64.addRegion(ElfRegion64(0, (const cxbyte*)nullptr, 1,
     304                ".AMDGPU.config", SHT_PROGBITS, 0));
    303305    elfBinGen64.addRegion(ElfRegion64(commentSize, (const cxbyte*)comment, 1, ".comment",
    304306              SHT_PROGBITS, SHF_MERGE|SHF_STRINGS, 0, 0, 0, 1));
Note: See TracChangeset for help on using the changeset viewer.