/tools/dexter/slicer/export/slicer/ |
writer.h | 31 // Specialized buffer for creating a .dex image section 32 // (tracking the section offset, section type, ...) 33 class Section : public slicer::Buffer { 35 Section(dex::u2 mapEntryType) : map_entry_type_(mapEntryType) {} 36 ~Section() = default; 38 Section(const Section&) = delete; 39 Section& operator=(const Section&) = delete [all...] |
/dalvik/dx/src/com/android/dex/ |
TableOfContents.java | 32 public final Section header = new Section(0x0000); 33 public final Section stringIds = new Section(0x0001); 34 public final Section typeIds = new Section(0x0002); 35 public final Section protoIds = new Section(0x0003); 36 public final Section fieldIds = new Section(0x0004) 129 Section section = getSection(type); local 153 Section section = sections[i]; local [all...] |
/device/linaro/bootloader/edk2/BaseTools/Source/C/Common/ |
BasePeCoff.c | 378 // the sections to find which section contains the RVA of the debug
392 // Read section header from file
457 // Read section header from file
481 // section, then skip to the last section for calculating the image size.
493 // the last section mapped into memory (Must be rounded up to
494 // a mulitple of Section Alignment). Per the PE/COFF specification, the
495 // section headers in the Section Table must appear in order of the RVA
497 // by the RVA and the VirtualSize of the last section header in the [all...] |
/device/linaro/bootloader/edk2/DuetPkg/EfiLdr/ |
PeLoader.c | 121 EFI_IMAGE_SECTION_HEADER *Section;
294 // Load each section of the image
313 Section = FirstSection;
320 Base = EfiLdrPeCoffImageAddress (Image, (UINTN)Section->VirtualAddress);
321 End = EfiLdrPeCoffImageAddress (Image, (UINTN)(Section->VirtualAddress + Section->Misc.VirtualSize));
324 // DEBUG((D_LOAD|D_ERROR, "LoadPe: Section %d was not loaded\n", Index));
329 // DEBUG((D_LOAD, "LoadPe: Section %d, loaded at %x\n", Index, Base));
332 // Read the section
335 if (Section->SizeOfRawData) { [all...] |
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BasePeCoffLib/ |
BasePeCoff.c | 299 // the sections to find which section contains the RVA of the debug
313 // Read section header from file
374 // Read section header from file
398 // section, then skip to the last section for calculating the image size.
410 // the last section mapped into memory (Must be rounded up to
411 // a mulitple of Section Alignment). Per the PE/COFF specification, the
412 // section headers in the Section Table must appear in order of the RVA
414 // by the RVA and the VirtualSize of the last section header in the [all...] |
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Library/Pei/PeiLib/ |
PeCoffLoader.c | 496 // the sections to find which section contains the RVA of the debug
510 // Read section header from file
583 // Read section header from file
[all...] |
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Sample/Tools/Source/FwImage/ |
fwimage.c | 122 EFI_IMAGE_SECTION_HEADER *Section;
131 // Search .pdata section
164 SectionNameSize = sizeof(Section->Name);
166 Section = (EFI_IMAGE_SECTION_HEADER *) &FileBuffer[DosHdr->e_lfanew + SectionOffset];
167 if (strcmp (Section->Name, ".pdata") == 0) {
169 // Zero .pdata Section Header Name
179 PdataOffset = Section->PointerToRawData;
180 PdataSize = Section->SizeOfRawData;
213 // Look for the Section Header that starts as the same virtual address as the Base Relocation Data Directory
229 // All the required conditions are met to strip the zero padding of the end of the base relocations section
[all...] |
/device/linaro/bootloader/edk2/EmbeddedPkg/Library/PrePiLib/ |
FwVol.c | 277 Go through the file to search SectionType section,
278 when meeting an encapsuled section.
280 @param SectionType - Filter to find only section of this type.
281 @param Section - From where to search.
283 @param OutputBuffer - Pointer to the section to search.
290 IN EFI_COMMON_SECTION_HEADER *Section,
311 if (Section->Type == SectionType) {
312 *OutputBuffer = (VOID *)(Section + 1);
315 } else if ((Section->Type == EFI_SECTION_COMPRESSION) || (Section->Type == EFI_SECTION_GUID_DEFINED)) { [all...] |
/device/linaro/bootloader/edk2/MdePkg/Include/IndustryStandard/ |
ElTorito.h | 120 /// Initial/Default Entry or Section Entry
134 /// Section Header Entry
139 UINT16 SectionEntries; ///< Number of section entries following this header
141 } Section;
|
/device/linaro/bootloader/edk2/MdePkg/Library/BasePeCoffLib/ |
BasePeCoff.c | 33 Adjust some fields in section header for TE image.
35 @param SectionHeader Pointer to the section header.
85 SizeOfHeader, Section Data Region and Security Data Region be in PE image range.
313 // Read last byte of section header from file
427 // Read last byte of section header from file
475 // Check each section field.
487 // Read section header from file
506 // Adjust some field in Section Header for TE image.
514 // Section data should bigger than the Pe header.
531 // Base on the ImageRead function to check the section data field. [all...] |
/device/linaro/bootloader/edk2/OvmfPkg/Sec/ |
SecMain.c | 130 Locates a section within a series of sections
131 with the specified section type.
133 The Instance parameter indicates which instance of the section
138 @param[in] SectionType The section type to locate
139 @param[in] Instance The section instance number
140 @param[out] FoundSection The FFS section if found
142 @retval EFI_SUCCESS The file and section was found
143 @retval EFI_NOT_FOUND The file and section was not found
159 EFI_COMMON_SECTION_HEADER *Section;
176 Section = (EFI_COMMON_SECTION_HEADER*)(UINTN) CurrentAddress; [all...] |
/device/linaro/bootloader/edk2/SecurityPkg/Library/DxeTpmMeasureBootLib/ |
DxeTpmMeasureBootLib.c | 316 EFI_IMAGE_SECTION_HEADER *Section;
567 // 12. Using the 'PointerToRawData' in the referenced section headers as
569 // words, sort the section headers according to the disk-file offset of
570 // the section.
572 Section = (EFI_IMAGE_SECTION_HEADER *) (
581 while ((Pos > 0) && (Section->PointerToRawData < SectionHeader[Pos - 1].PointerToRawData)) {
585 CopyMem (&SectionHeader[Pos], Section, sizeof(EFI_IMAGE_SECTION_HEADER));
586 Section += 1;
590 // 13. Walk through the sorted table, bring the corresponding section
591 // into memory, and hash the entire section (using the 'SizeOfRawData' [all...] |
/device/linaro/bootloader/edk2/SignedCapsulePkg/Library/IniParsingLib/ |
IniParsingLib.c | 306 SECTION_ITEM *Section;
313 Section = IniContext->SectionHead;
315 while (Section != NULL) {
316 PtrSection = Section;
317 Section = Section->PtrNext;
319 DEBUG((DEBUG_VERBOSE, "Section - %a\n", PtrSection->PtrSection));
521 Add new section item into Section head.
523 @param[in] Buffer Section item data buffer. [all...] |
/external/clang/lib/Sema/ |
SemaAttr.cpp | 250 auto Section = Context.SectionInfos.find(SectionName); 251 if (Section == Context.SectionInfos.end()) { 256 // A pre-declared section takes precedence w/o diagnostic. 257 if (Section->second.SectionFlags == SectionFlags || 258 !(Section->second.SectionFlags & ASTContext::PSF_Implicit)) 260 auto OtherDecl = Section->second.Decl; 277 auto Section = Context.SectionInfos.find(SectionName); 278 if (Section != Context.SectionInfos.end()) { 279 if (Section->second.SectionFlags == SectionFlags) 281 if (!(Section->second.SectionFlags & ASTContext::PSF_Implicit)) [all...] |
/external/google-breakpad/src/common/mac/ |
macho_reader.h | 161 ByteBuffer section_list; // This segment's section list. 187 // True if this is a 64-bit section; false if it is a 32-bit section. 191 // A section in a Mach-O file. All these fields have been byte-swapped as 193 struct Section { 194 // This section's contents. This points into the bytes passed to the 195 // Reader that created this Section. 198 // This section's name. 199 string section_name; // section[_64].sectname 200 // The name of the segment this section belongs to [all...] |
/external/llvm/include/llvm/ObjectYAML/ |
ELFYAML.h | 72 StringRef Section; 87 struct Section { 103 Section(SectionKind Kind) : Kind(Kind) {} 104 virtual ~Section(); 106 struct RawContentSection : Section { 109 RawContentSection() : Section(SectionKind::RawContent) {} 110 static bool classof(const Section *S) { 115 struct NoBitsSection : Section { 117 NoBitsSection() : Section(SectionKind::NoBits) {} 118 static bool classof(const Section *S) [all...] |
/external/llvm/lib/CodeGen/AsmPrinter/ |
DwarfUnit.h | 52 // Index for locating within the debug_range section this particular span. 104 /// The section this unit will be emitted in. 105 MCSection *Section; 115 void initSection(MCSection *Section); 118 assert(Section); 119 return Section; 196 /// Add an offset into a section attribute data and value. 309 sizeof(int32_t) + // Offset Into Abbrev. Section
|
/external/llvm/lib/DebugInfo/PDB/Raw/ |
ModInfo.cpp | 23 ulittle16_t Section; 52 SCBytes SC; // First section contribution of this module.
|
/external/llvm/lib/ExecutionEngine/RuntimeDyld/Targets/ |
RuntimeDyldMachOAArch64.h | 36 const SectionEntry &Section = Sections[RE.SectionID]; 37 uint8_t *LocalAddress = Section.getAddressWithOffset(RE.Offset); 314 const SectionEntry &Section = Sections[RE.SectionID]; 315 uint8_t *LocalAddress = Section.getAddressWithOffset(RE.Offset); 335 uint64_t FinalAddress = Section.getLoadAddressWithOffset(RE.Offset); 344 uint64_t FinalAddress = Section.getLoadAddressWithOffset(RE.Offset); 380 const SectionRef &Section) { 388 SectionEntry &Section = Sections[RE.SectionID]; 396 uintptr_t BaseAddress = uintptr_t(Section.getAddress()); 399 (BaseAddress + Section.getStubOffset() + StubAlignment - 1) [all...] |
RuntimeDyldMachOARM.h | 38 const SectionEntry &Section = Sections[RE.SectionID]; 39 uint8_t *LocalAddress = Section.getAddressWithOffset(RE.Offset); 117 const SectionEntry &Section = Sections[RE.SectionID]; 118 uint8_t *LocalAddress = Section.getAddressWithOffset(RE.Offset); 123 uint64_t FinalAddress = Section.getLoadAddressWithOffset(RE.Offset); 175 const SectionRef &Section) { 177 Section.getName(Name); 181 Section, SectionID); 192 SectionEntry &Section = Sections[RE.SectionID]; 196 Addr = Section.getAddressWithOffset(i->second) [all...] |
RuntimeDyldMachOI386.h | 102 const SectionEntry &Section = Sections[RE.SectionID]; 103 uint8_t *LocalAddress = Section.getAddressWithOffset(RE.Offset); 106 uint64_t FinalAddress = Section.getLoadAddressWithOffset(RE.Offset); 130 const SectionRef &Section) { 132 Section.getName(Name); 135 return populateJumpTable(cast<MachOObjectFile>(Obj), Section, SectionID); 138 Section, SectionID); 152 SectionEntry &Section = Sections[SectionID]; 157 uint8_t *LocalAddress = Section.getAddressWithOffset(Offset); 167 assert(SAI != Obj.section_end() && "Can't find section for address A") [all...] |
/external/llvm/lib/MC/ |
MCELFStreamer.cpp | 104 const MCSectionELF &Section = 106 if (Section.getFlags() & ELF::SHF_TLS) 127 // If bundle alignment is used and there are any instructions in the section, it 130 MCSection *Section) { 131 if (Section && Assembler.isBundlingEnabled() && Section->hasInstructions() && 132 Section->getAlignment() < Assembler.getBundleAlignSize()) 133 Section->setAlignment(Assembler.getBundleAlignSize()); 136 void MCELFStreamer::ChangeSection(MCSection *Section, 140 report_fatal_error("Unterminated .bundle_lock when changing a section"); [all...] |
/external/llvm/lib/Target/Hexagon/ |
HexagonAsmPrinter.cpp | 213 MCSectionELF *Section = OutStreamer.getContext().getELFSection( 215 OutStreamer.SwitchSection(Section); 241 MCSectionELF *Section = OutStreamer.getContext().getELFSection( 244 OutStreamer.SwitchSection(Section);
|
/external/llvm/tools/dsymutil/ |
MachODebugMapParser.cpp | 232 case MachO::N_SECT: // 0xe defined in section number n_sect 440 section_iterator Section = MainBinary.section_end(); 465 Section = *SectionOrErr; 466 if (Section == MainBinary.section_end() || Section->isText())
|
/external/llvm/tools/llvm-objdump/ |
COFFDump.cpp | 159 // Given a symbol sym this functions returns the address and section of it. 175 // Given a vector of relocations for a section and an offset into this section 191 // Given a vector of relocations for a section and an offset into this section 193 // returns the section content and the address inside the content pointed to 202 const coff_section *Section; 203 if (std::error_code EC = resolveSectionAndAddress(Obj, Sym, Section, Addr)) 205 if (std::error_code EC = Obj->getSectionContents(Section, Contents)) 210 // Given a vector of relocations for a section and an offset into this sectio [all...] |