Ignore:
Timestamp:
Nov 16, 2016, 6:02:18 PM (3 years ago)
Author:
matszpk
Message:

CLRadeonExtender: ROCmBinGen: Set physAddr and virtAddr to program headers.

File:
1 edited

Legend:

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

    r2566 r2568  
    266266    elfBinGen64.addDynamics(sizeof(dynTags)/sizeof(int32_t), dynTags);
    267267    // elf program headers
    268     elfBinGen64.addProgramHeader({ PT_PHDR, PF_R, 0, 1, true, 0, 0, 0 });
     268    elfBinGen64.addProgramHeader({ PT_PHDR, PF_R, 0, 1,
     269                    true, Elf64Types::nobase, Elf64Types::nobase, 0 });
    269270    elfBinGen64.addProgramHeader({ PT_LOAD, PF_R, PHREGION_FILESTART, 4,
    270                     true, 0, 0, 0, 0x1000 });
    271     elfBinGen64.addProgramHeader({ PT_LOAD, PF_R|PF_X, 4, 1, true, 0, 0, 0 });
    272     elfBinGen64.addProgramHeader({ PT_LOAD, PF_R|PF_W, 5, 1, true, 0, 0, 0 });
    273     elfBinGen64.addProgramHeader({ PT_DYNAMIC, PF_R|PF_W, 5, 1, true, 0, 0, 0, 8 });
    274     elfBinGen64.addProgramHeader({ PT_GNU_RELRO, PF_R, 5, 1, true, 0, 0, 0, 1 });
     271                    true, Elf64Types::nobase, Elf64Types::nobase, 0, 0x1000 });
     272    elfBinGen64.addProgramHeader({ PT_LOAD, PF_R|PF_X, 4, 1,
     273                    true, Elf64Types::nobase, Elf64Types::nobase, 0 });
     274    elfBinGen64.addProgramHeader({ PT_LOAD, PF_R|PF_W, 5, 1,
     275                    true, Elf64Types::nobase, Elf64Types::nobase, 0 });
     276    elfBinGen64.addProgramHeader({ PT_DYNAMIC, PF_R|PF_W, 5, 1,
     277                    true, Elf64Types::nobase, Elf64Types::nobase, 0, 8 });
     278    elfBinGen64.addProgramHeader({ PT_GNU_RELRO, PF_R, 5, 1,
     279                    true, Elf64Types::nobase, Elf64Types::nobase, 0, 1 });
    275280    elfBinGen64.addProgramHeader({ PT_GNU_STACK, PF_R|PF_W, PHREGION_FILESTART, 0,
    276281                    true, 0, 0, 0 });
Note: See TracChangeset for help on using the changeset viewer.