Пример #1
0
 void CreatePESections()
 {
     sections = new List <PESection>();
     sections.Add(textSection = new PESection(".text", 0x60000020));
     if (GetWin32Resources() != null)
     {
         sections.Add(rsrcSection = new PESection(".rsrc", 0x40000040));
     }
 }
Пример #2
0
 void CreateSections()
 {
     sections = new List <PESection>();
     sections.Add(textSection  = new PESection(".text", 0x60000020));
     sections.Add(sdataSection = new PESection(".sdata", 0xC0000040));
     if (GetWin32Resources() != null)
     {
         sections.Add(rsrcSection = new PESection(".rsrc", 0x40000040));
     }
     // Should be last so any data in a previous section can add relocations
     sections.Add(relocSection = new PESection(".reloc", 0x42000040));
 }
Пример #3
0
 private void CreateSections()
 {
     sections = new List <PESection>();
     sections.Add(textSection = new PESection(".text", 0x60000020));
     if (GetWin32Resources() != null)
     {
         sections.Add(rsrcSection = new PESection(".rsrc", 0x40000040));
     }
     if (!Options.Is64Bit)
     {
         sections.Add(RelocSection = new PESection(".reloc", 0x42000040));
     }
 }
Пример #4
0
 internal void AddSdataChunks(PESection sdataSection)
 {
     sdataSection.Add(sdataChunk, DEFAULT_SDATA_ALIGNMENT);
 }