internal void AddTextChunks(PESection textSection) { textSection.Add(vtableFixups, DEFAULT_VTBL_FIXUPS_ALIGNMENT); if (cpuArch != null) { textSection.Add(stubsChunk, cpuArch.GetStubAlignment(stubType)); } }
void AddChunksToSections() { textSection.Add(strongNameSignature, DEFAULT_STRONGNAMESIG_ALIGNMENT); textSection.Add(constants, DEFAULT_CONSTANTS_ALIGNMENT); textSection.Add(methodBodies, DEFAULT_METHODBODIES_ALIGNMENT); textSection.Add(netResources, DEFAULT_NETRESOURCES_ALIGNMENT); textSection.Add(metaData, DEFAULT_METADATA_ALIGNMENT); if (rsrcSection != null) { rsrcSection.Add(win32Resources, DEFAULT_WIN32_RESOURCES_ALIGNMENT); } }
private void AddChunksToSections() { textSection.Add(ImportAddressTable, DEFAULT_IAT_ALIGNMENT); textSection.Add(ImageCor20Header, DEFAULT_COR20HEADER_ALIGNMENT); textSection.Add(strongNameSignature, DEFAULT_STRONGNAMESIG_ALIGNMENT); textSection.Add(constants, DEFAULT_CONSTANTS_ALIGNMENT); textSection.Add(methodBodies, DEFAULT_METHODBODIES_ALIGNMENT); textSection.Add(netResources, DEFAULT_NETRESOURCES_ALIGNMENT); textSection.Add(metaData, DEFAULT_METADATA_ALIGNMENT); textSection.Add(debugDirectory, DEFAULT_DEBUGDIRECTORY_ALIGNMENT); textSection.Add(ImportDirectory, DEFAULT_IMPORTDIRECTORY_ALIGNMENT); textSection.Add(StartupStub, DEFAULT_STARTUPSTUB_ALIGNMENT); if (rsrcSection != null) { rsrcSection.Add(win32Resources, DEFAULT_WIN32_RESOURCES_ALIGNMENT); } if (RelocSection != null) { RelocSection.Add(RelocDirectory, DEFAULT_RELOC_ALIGNMENT); } }
void AddChunksToSections() { textSection.Add(imageCor20Header, DEFAULT_COR20HEADER_ALIGNMENT); textSection.Add(strongNameSignature, DEFAULT_STRONGNAMESIG_ALIGNMENT); textSection.Add(constants, DEFAULT_CONSTANTS_ALIGNMENT); textSection.Add(methodBodies, DEFAULT_METHODBODIES_ALIGNMENT); textSection.Add(netResources, DEFAULT_NETRESOURCES_ALIGNMENT); textSection.Add(metaData, DEFAULT_METADATA_ALIGNMENT); textSection.Add(debugDirectory, DEFAULT_DEBUGDIRECTORY_ALIGNMENT); if (rsrcSection != null) { rsrcSection.Add(win32Resources, DEFAULT_WIN32_RESOURCES_ALIGNMENT); } }
void AddChunksToSections() { var machine = Options.PEHeadersOptions.Machine ?? Machine.I386; bool is64bit = machine == Machine.AMD64 || machine == Machine.IA64 || machine == Machine.ARM64; uint pointerAlignment = is64bit ? 8U : 4; textSection.Add(importAddressTable, pointerAlignment); textSection.Add(imageCor20Header, DEFAULT_COR20HEADER_ALIGNMENT); textSection.Add(strongNameSignature, DEFAULT_STRONGNAMESIG_ALIGNMENT); managedExportsWriter.AddTextChunks(textSection); textSection.Add(constants, DEFAULT_CONSTANTS_ALIGNMENT); textSection.Add(methodBodies, DEFAULT_METHODBODIES_ALIGNMENT); textSection.Add(netResources, DEFAULT_NETRESOURCES_ALIGNMENT); textSection.Add(metaData, DEFAULT_METADATA_ALIGNMENT); textSection.Add(debugDirectory, DebugDirectory.DEFAULT_DEBUGDIRECTORY_ALIGNMENT); textSection.Add(importDirectory, pointerAlignment); textSection.Add(startupStub, startupStub.Alignment); managedExportsWriter.AddSdataChunks(sdataSection); if (GetWin32Resources() != null) { rsrcSection.Add(win32Resources, DEFAULT_WIN32_RESOURCES_ALIGNMENT); } relocSection.Add(relocDirectory, DEFAULT_RELOC_ALIGNMENT); }
internal void AddSdataChunks(PESection sdataSection) { sdataSection.Add(sdataChunk, DEFAULT_SDATA_ALIGNMENT); }