/device/linaro/bootloader/edk2/BaseTools/Source/C/GenFw/ |
GenFw.c | 543 EFI_IMAGE_SECTION_HEADER *SectionHeader;
572 SectionHeader = (EFI_IMAGE_SECTION_HEADER *) ((UINT8 *) &(PeHdr->Pe32.OptionalHeader) + PeHdr->Pe32.FileHeader.SizeOfOptionalHeader);
573 for (Index = 0; Index < PeHdr->Pe32.FileHeader.NumberOfSections; Index ++, SectionHeader ++) {
574 SectionSize = MAX (SectionHeader->Misc.VirtualSize, SectionHeader->SizeOfRawData);
577 FirstSectionOffset = MIN (FirstSectionOffset, SectionHeader->VirtualAddress);
578 XipLength = MAX (XipLength, SectionHeader->VirtualAddress + SectionSize);
579 if (SectionHeader->VirtualAddress != SectionHeader->PointerToRawData) {
583 if (SectionHeader->Misc.VirtualSize > SectionHeader->SizeOfRawData) { [all...] |
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Sample/Tools/Source/FwImage/ |
fwimage.c | 202 EFI_IMAGE_SECTION_HEADER *SectionHeader;
210 SectionHeader = (EFI_IMAGE_SECTION_HEADER *)(FileBuffer + DosHdr->e_lfanew + sizeof(UINT32) + sizeof (EFI_IMAGE_FILE_HEADER) + PeHdr->PeHeader32.FileHeader.SizeOfOptionalHeader);
211 for (Index = 0; Index < PeHdr->PeHeader32.FileHeader.NumberOfSections; Index++, SectionHeader++) {
215 if (strcmp (SectionHeader->Name, ".reloc") == 0) {
216 SectionHeader->Misc.VirtualSize = Optional32->DataDirectory[EFI_IMAGE_DIRECTORY_ENTRY_BASERELOC].Size;
223 if (AllignedRelocSize < SectionHeader->SizeOfRawData) {
227 if (SectionHeader->PointerToRawData + SectionHeader->SizeOfRawData == Optional32->SizeOfImage) {
231 Optional32->SizeOfImage -= (SectionHeader->SizeOfRawData - AllignedRelocSize);
232 Optional32->SizeOfInitializedData -= (SectionHeader->SizeOfRawData - AllignedRelocSize); [all...] |
/device/linaro/bootloader/edk2/SecurityPkg/Tcg/Tcg2Dxe/ |
MeasureBootPeCoff.c | 64 EFI_IMAGE_SECTION_HEADER *SectionHeader;
76 SectionHeader = NULL;
253 SectionHeader = (EFI_IMAGE_SECTION_HEADER *) AllocateZeroPool (sizeof (EFI_IMAGE_SECTION_HEADER) * Hdr.Pe32->FileHeader.NumberOfSections);
254 if (SectionHeader == NULL) {
274 while ((Pos > 0) && (Section->PointerToRawData < SectionHeader[Pos - 1].PointerToRawData)) {
275 CopyMem (&SectionHeader[Pos], &SectionHeader[Pos - 1], sizeof(EFI_IMAGE_SECTION_HEADER));
278 CopyMem (&SectionHeader[Pos], Section, sizeof(EFI_IMAGE_SECTION_HEADER));
290 Section = (EFI_IMAGE_SECTION_HEADER *) &SectionHeader[Index];
352 if (SectionHeader != NULL) { [all...] |
/device/linaro/bootloader/edk2/SecurityPkg/Tcg/TrEEDxe/ |
MeasureBootPeCoff.c | 64 EFI_IMAGE_SECTION_HEADER *SectionHeader;
76 SectionHeader = NULL;
253 SectionHeader = (EFI_IMAGE_SECTION_HEADER *) AllocateZeroPool (sizeof (EFI_IMAGE_SECTION_HEADER) * Hdr.Pe32->FileHeader.NumberOfSections);
254 if (SectionHeader == NULL) {
274 while ((Pos > 0) && (Section->PointerToRawData < SectionHeader[Pos - 1].PointerToRawData)) {
275 CopyMem (&SectionHeader[Pos], &SectionHeader[Pos - 1], sizeof(EFI_IMAGE_SECTION_HEADER));
278 CopyMem (&SectionHeader[Pos], Section, sizeof(EFI_IMAGE_SECTION_HEADER));
290 Section = (EFI_IMAGE_SECTION_HEADER *) &SectionHeader[Index];
352 if (SectionHeader != NULL) { [all...] |
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/dexbacked/ |
OatFile.java | 269 private List<SectionHeader> getSections() { 287 return new AbstractList<SectionHeader>() { 288 @Override public SectionHeader get(int index) { 307 for (SectionHeader header: getSections()) { 308 if (header.getType() == SectionHeader.TYPE_DYNAMIC_SYMBOL_TABLE) { 329 private abstract class SectionHeader { 332 public SectionHeader(int offset) { this.offset = offset; } 342 private class SectionHeader32Bit extends SectionHeader { 351 private class SectionHeader64Bit extends SectionHeader { 366 public SymbolTable(@Nonnull SectionHeader header) [all...] |
/device/linaro/bootloader/edk2/BaseTools/Source/C/Common/ |
BasePeCoff.c | 271 EFI_IMAGE_SECTION_HEADER SectionHeader;
399 &SectionHeader
406 if (DebugDirectoryEntryRva >= SectionHeader.VirtualAddress &&
407 DebugDirectoryEntryRva < SectionHeader.VirtualAddress + SectionHeader.Misc.VirtualSize) {
409 DebugDirectoryEntryRva - SectionHeader.VirtualAddress + SectionHeader.PointerToRawData;
464 &SectionHeader
471 if (DebugDirectoryEntryRva >= SectionHeader.VirtualAddress &&
472 DebugDirectoryEntryRva < SectionHeader.VirtualAddress + SectionHeader.Misc.VirtualSize) { [all...] |
FvLib.h | 94 EFI_COMMON_SECTION_HEADER *SectionHeader
106 IN EFI_COMMON_SECTION_HEADER *SectionHeader
|
FvLib.c | 751 IN EFI_COMMON_SECTION_HEADER *SectionHeader
754 if (SectionHeader == NULL) {
757 if (GetLength(SectionHeader->Size) == 0xffffff) {
795 EFI_COMMON_SECTION_HEADER *SectionHeader
799 if (SectionHeader == NULL) {
802 Length = GetLength(SectionHeader->Size);
804 Length = ((EFI_COMMON_SECTION_HEADER2 *)SectionHeader)->ExtendedSize;
|
/prebuilts/go/darwin-x86/src/debug/plan9obj/ |
file_test.go | 15 sections []*SectionHeader 22 []*SectionHeader{ 33 []*SectionHeader{ 61 have := &sh.SectionHeader
|
file.go | 33 // A SectionHeader represents a single Plan 9 a.out section header. 36 type SectionHeader struct { 44 SectionHeader 187 s.SectionHeader = SectionHeader{
|
/prebuilts/go/linux-x86/src/debug/plan9obj/ |
file_test.go | 15 sections []*SectionHeader 22 []*SectionHeader{ 33 []*SectionHeader{ 61 have := &sh.SectionHeader
|
/device/linaro/bootloader/edk2/MdePkg/Library/BasePeCoffLib/ |
BasePeCoff.c | 35 @param SectionHeader Pointer to the section header.
41 EFI_IMAGE_SECTION_HEADER *SectionHeader,
45 SectionHeader->VirtualAddress -= TeStrippedOffset;
46 SectionHeader->PointerToRawData -= TeStrippedOffset;
110 EFI_IMAGE_SECTION_HEADER SectionHeader;
495 &SectionHeader
509 PeCoffLoaderAdjustOffsetForTeImage (&SectionHeader, (UINT32)Hdr.Te->StrippedSize - sizeof (EFI_TE_IMAGE_HEADER));
512 if (SectionHeader.SizeOfRawData > 0) {
516 if (SectionHeader.VirtualAddress < ImageContext->SizeOfHeaders ||
517 SectionHeader.PointerToRawData < ImageContext->SizeOfHeaders) { [all...] |
/device/linaro/bootloader/edk2/IntelFrameworkModulePkg/Universal/SectionExtractionDxe/ |
SectionExtraction.c | 279 EFI_COMMON_SECTION_HEADER *SectionHeader;
283 SectionHeader = (EFI_COMMON_SECTION_HEADER *)SectionStream;
286 if (IS_SECTION2 (SectionHeader)) {
287 SectionLength = SECTION2_SIZE (SectionHeader);
289 SectionLength = SECTION_SIZE (SectionHeader);
300 SectionHeader = (EFI_COMMON_SECTION_HEADER *) ((UINT8 *) SectionHeader + SectionLength);
305 NextSectionHeader = ALIGN_POINTER(SectionHeader, 4);
306 TotalLength += (UINTN) NextSectionHeader - (UINTN) SectionHeader;
307 SectionHeader = NextSectionHeader; [all...] |
/device/linaro/bootloader/edk2/MdeModulePkg/Core/Dxe/SectionExtraction/ |
CoreSectionExtraction.c | 269 EFI_COMMON_SECTION_HEADER *SectionHeader;
273 SectionHeader = (EFI_COMMON_SECTION_HEADER *)SectionStream;
276 if (IS_SECTION2 (SectionHeader)) {
277 SectionLength = SECTION2_SIZE (SectionHeader);
279 SectionLength = SECTION_SIZE (SectionHeader);
290 SectionHeader = (EFI_COMMON_SECTION_HEADER *) ((UINT8 *) SectionHeader + SectionLength);
295 NextSectionHeader = ALIGN_POINTER(SectionHeader, 4);
296 TotalLength += (UINTN) NextSectionHeader - (UINTN) SectionHeader;
297 SectionHeader = NextSectionHeader; [all...] |
/prebuilts/go/darwin-x86/src/debug/pe/ |
section.go | 52 func readRelocs(sh *SectionHeader, r io.ReadSeeker) ([]Reloc, error) { 68 // SectionHeader is similar to SectionHeader32 with Name 70 type SectionHeader struct { 85 SectionHeader
|
/prebuilts/go/linux-x86/src/debug/pe/ |
section.go | 52 func readRelocs(sh *SectionHeader, r io.ReadSeeker) ([]Reloc, error) { 68 // SectionHeader is similar to SectionHeader32 with Name 70 type SectionHeader struct { 85 SectionHeader
|
/device/linaro/bootloader/edk2/SecurityPkg/Library/DxeTpmMeasureBootLib/ |
DxeTpmMeasureBootLib.c | 318 EFI_IMAGE_SECTION_HEADER *SectionHeader;
332 SectionHeader = NULL;
558 SectionHeader = (EFI_IMAGE_SECTION_HEADER *) AllocateZeroPool (sizeof (EFI_IMAGE_SECTION_HEADER) * Hdr.Pe32->FileHeader.NumberOfSections);
559 if (SectionHeader == NULL) {
579 while ((Pos > 0) && (Section->PointerToRawData < SectionHeader[Pos - 1].PointerToRawData)) {
580 CopyMem (&SectionHeader[Pos], &SectionHeader[Pos - 1], sizeof(EFI_IMAGE_SECTION_HEADER));
583 CopyMem (&SectionHeader[Pos], Section, sizeof(EFI_IMAGE_SECTION_HEADER));
595 Section = (EFI_IMAGE_SECTION_HEADER *) &SectionHeader[Index];
680 if (SectionHeader != NULL) { [all...] |
/external/llvm/tools/llvm-pdbdump/ |
LinePrinter.h | 75 SectionHeader,
|
/device/linaro/bootloader/edk2/MdePkg/Include/IndustryStandard/ |
Sal.h | 646 SAL_SEC_HEADER SectionHeader;
691 SAL_SEC_HEADER SectionHeader;
745 SAL_SEC_HEADER SectionHeader;
793 SAL_SEC_HEADER SectionHeader;
826 SAL_SEC_HEADER SectionHeader;
859 SAL_SEC_HEADER SectionHeader;
888 SAL_SEC_HEADER SectionHeader;
|
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BasePeCoffLib/ |
BasePeCoff.c | 209 EFI_IMAGE_SECTION_HEADER SectionHeader;
320 &SectionHeader
327 if (DebugDirectoryEntryRva >= SectionHeader.VirtualAddress &&
328 DebugDirectoryEntryRva < SectionHeader.VirtualAddress + SectionHeader.Misc.VirtualSize) {
330 DebugDirectoryEntryFileOffset = DebugDirectoryEntryRva - SectionHeader.VirtualAddress + SectionHeader.PointerToRawData;
381 &SectionHeader
388 if (DebugDirectoryEntryRva >= SectionHeader.VirtualAddress &&
389 DebugDirectoryEntryRva < SectionHeader.VirtualAddress + SectionHeader.Misc.VirtualSize) { [all...] |
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/Pei/PeiLib/ |
PeCoffLoader.c | 375 EFI_IMAGE_SECTION_HEADER SectionHeader;
517 &SectionHeader
524 if (DebugDirectoryEntryRva >= SectionHeader.VirtualAddress &&
525 DebugDirectoryEntryRva < SectionHeader.VirtualAddress + SectionHeader.Misc.VirtualSize) {
527 DebugDirectoryEntryFileOffset = DebugDirectoryEntryRva - SectionHeader.VirtualAddress + SectionHeader.PointerToRawData;
590 &SectionHeader
597 if (DebugDirectoryEntryRva >= SectionHeader.VirtualAddress &&
598 DebugDirectoryEntryRva < SectionHeader.VirtualAddress + SectionHeader.Misc.VirtualSize) { [all...] |
/frameworks/compile/mclinker/include/mcld/LD/ |
ELFReader.h | 40 typedef llvm::ELF::Elf32_Shdr SectionHeader; 125 typedef llvm::ELF::Elf64_Shdr SectionHeader;
|
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Include/Ipf/ |
SalApi.h | 474 SAL_SEC_HEADER SectionHeader;
515 SAL_SEC_HEADER SectionHeader;
572 SAL_SEC_HEADER SectionHeader;
614 SAL_SEC_HEADER SectionHeader;
643 SAL_SEC_HEADER SectionHeader;
672 SAL_SEC_HEADER SectionHeader;
697 SAL_SEC_HEADER SectionHeader;
|
/prebuilts/go/darwin-x86/src/debug/macho/ |
file_test.go | 16 sections []*SectionHeader 37 []*SectionHeader{ 61 []*SectionHeader{ 81 []*SectionHeader{ 146 have := &sh.SectionHeader
|
/prebuilts/go/linux-x86/src/debug/macho/ |
file_test.go | 16 sections []*SectionHeader 37 []*SectionHeader{ 61 []*SectionHeader{ 81 []*SectionHeader{ 146 have := &sh.SectionHeader
|