Home
last modified time | relevance | path

Searched refs:rva (Results 1 – 21 of 21) sorted by relevance

/external/chromium_org/tools/symsrc/
Dpefile.py553 def __get_word_value_at_rva(self, rva): argument
838 def get_offset_from_rva(self, rva): argument
839 return (rva - self.VirtualAddress) + self.PointerToRawData
852 def contains_rva(self, rva): argument
866 return self.VirtualAddress <= rva < self.VirtualAddress + size
868 def contains(self, rva): argument
870 return self.contains_rva(rva)
1837 def parse_directory_bound_imports(self, rva, size): argument
1842 start = rva
1849 self.__data__[rva:rva+bnd_descr_size],
[all …]
/external/chromium_org/courgette/
Ddisassembler_elf_32_arm.cc20 CheckBool DisassemblerElf32ARM::Compress(ARM_RVA type, uint32 arm_op, RVA rva, in Compress() argument
90 uint32 align4byte = (rva % 4) ? 2 : 4; in Compress()
230 CheckBool ret = Compress(type_, Read16LittleEndian(op_pointer), rva(), in ComputeRelativeTarget()
237 CheckBool ret = Compress(type_, Read32LittleEndian(op_pointer), rva(), in ComputeRelativeTarget()
249 CheckBool ret = Compress(type_, pval, rva(), &c_op_, &relative_target); in ComputeRelativeTarget()
395 RVA rva = static_cast<RVA>(p - adjust_pointer_to_rva); in ParseRel32RelocsFromSection() local
397 rel32_rva = new TypedRVAARM(ARM_OFF8, rva); in ParseRel32RelocsFromSection()
401 target_rva = rel32_rva->rva() + rel32_rva->relative_target(); in ParseRel32RelocsFromSection()
404 RVA rva = static_cast<RVA>(p - adjust_pointer_to_rva); in ParseRel32RelocsFromSection() local
406 rel32_rva = new TypedRVAARM(ARM_OFF11, rva); in ParseRel32RelocsFromSection()
[all …]
Ddisassembler_elf_32.cc142 CheckBool DisassemblerElf32::IsValidRVA(RVA rva) const { in IsValidRVA()
154 if (rva >= begin && rva < end) in IsValidRVA()
210 for (std::vector<RVA>::iterator rva = rvas->begin(); in RVAsToOffsets() local
211 rva != rvas->end(); in RVAsToOffsets()
212 rva++) { in RVAsToOffsets()
216 if (!RVAToFileOffset(*rva, &offset)) in RVAsToOffsets()
226 for (ScopedVector<TypedRVA>::iterator rva = rvas->begin(); in RVAsToOffsets() local
227 rva != rvas->end(); in RVAsToOffsets()
228 rva++) { in RVAsToOffsets()
232 if (!RVAToFileOffset((*rva)->rva(), &offset)) in RVAsToOffsets()
[all …]
Dencoded_program.cc161 RVA rva) { in DefineLabelCommon() argument
169 (*rvas)[index] = rva; in DefineLabelCommon()
419 RVA rva; in EvaluateRel32ARM() local
420 if (!VectorAt(rel32_rva_, index, &rva)) in EvaluateRel32ARM()
425 static_cast<uint32>(rva - in EvaluateRel32ARM()
441 RVA rva; in EvaluateRel32ARM() local
442 if (!VectorAt(rel32_rva_, index, &rva)) in EvaluateRel32ARM()
446 (uint32) (rva - current_rva), in EvaluateRel32ARM()
461 RVA rva; in EvaluateRel32ARM() local
462 if (!VectorAt(rel32_rva_, index, &rva)) in EvaluateRel32ARM()
[all …]
Ddisassembler_elf_32.h33 explicit TypedRVA(RVA rva) : rva_(rva), offset_(-1) { in TypedRVA() argument
38 RVA rva() { in rva() function
68 return a->rva() < b->rva(); in IsLessThan()
153 CheckBool IsValidRVA(RVA rva) const WARN_UNUSED_RESULT;
160 CheckBool RVAToFileOffset(RVA rva, size_t* result) const WARN_UNUSED_RESULT;
187 CheckBool CheckSection(RVA rva) WARN_UNUSED_RESULT;
Dassembly_program.h35 explicit Label(RVA rva) : rva_(rva), index_(kNoIndex), count_(0) {} in Label() argument
84 CheckBool EmitOriginInstruction(RVA rva) WARN_UNUSED_RESULT;
105 Label* FindOrMakeAbs32Label(RVA rva);
108 Label* FindOrMakeRel32Label(RVA rva);
143 Label* FindLabel(RVA rva, RVAToLabel* labels);
Ddisassembler_win32_x86.cc265 RVA rva = page_rva + offset; in ParseRelocs() local
267 relocs->push_back(rva); in ParseRelocs()
284 const Section* DisassemblerWin32X86::RVAToSection(RVA rva) const { in RVAToSection()
287 uint32 offset = rva - section->virtual_address; in RVAToSection()
295 int DisassemblerWin32X86::RVAToFileOffset(RVA rva) const { in RVAToFileOffset()
296 const Section* section = RVAToSection(rva); in RVAToFileOffset()
298 uint32 offset = rva - section->virtual_address; in RVAToFileOffset()
310 if (rva == 0 || rva == 2) in RVAToFileOffset()
311 return rva; in RVAToFileOffset()
317 const uint8* DisassemblerWin32X86::RVAToPointer(RVA rva) const { in RVAToPointer()
[all …]
Ddisassembler_win32_x64.cc265 RVA rva = page_rva + offset; in ParseRelocs() local
267 relocs->push_back(rva); in ParseRelocs()
284 const Section* DisassemblerWin32X64::RVAToSection(RVA rva) const { in RVAToSection()
287 uint32 offset = rva - section->virtual_address; in RVAToSection()
295 int DisassemblerWin32X64::RVAToFileOffset(RVA rva) const { in RVAToFileOffset()
296 const Section* section = RVAToSection(rva); in RVAToFileOffset()
298 uint32 offset = rva - section->virtual_address; in RVAToFileOffset()
310 if (rva == 0 || rva == 2) in RVAToFileOffset()
311 return rva; in RVAToFileOffset()
317 const uint8* DisassemblerWin32X64::RVAToPointer(RVA rva) const { in RVAToPointer()
[all …]
Dtypedrva_unittest.cc15 courgette::RVA rva,
20 courgette::RVA rva,
42 courgette::RVA rva, in TestRelativeTargetARM() argument
46 = new courgette::DisassemblerElf32ARM::TypedRVAARM(arm_rva, rva); in TestRelativeTargetARM()
50 EXPECT_EQ(rva + typed_rva->relative_target(), expected); in TestRelativeTargetARM()
56 courgette::RVA rva, in TestARMOPEncode() argument
61 EXPECT_TRUE(courgette::DisassemblerElf32ARM::Compress(arm_rva, op, rva, in TestARMOPEncode()
63 EXPECT_EQ(rva + addr, expected); in TestARMOPEncode()
Ddisassembler_win32_x86.h48 const Section* RVAToSection(RVA rva) const;
52 int RVAToFileOffset(RVA rva) const;
56 const uint8* RVAToPointer(RVA rva) const;
85 bool IsValidRVA(RVA rva) const { return rva < size_of_image_; } in IsValidRVA() argument
88 std::string DescribeRVA(RVA rva) const;
Ddisassembler_win32_x64.h48 const Section* RVAToSection(RVA rva) const;
52 int RVAToFileOffset(RVA rva) const;
56 const uint8* RVAToPointer(RVA rva) const;
85 bool IsValidRVA(RVA rva) const { return rva < size_of_image_; } in IsValidRVA() argument
88 std::string DescribeRVA(RVA rva) const;
Dassembly_program.cc59 explicit OriginInstruction(RVA rva) : Instruction(ORIGIN, 0), rva_(rva) {} in OriginInstruction() argument
173 CheckBool AssemblyProgram::EmitOriginInstruction(RVA rva) { in EmitOriginInstruction() argument
174 return Emit(new(std::nothrow) OriginInstruction(rva)); in EmitOriginInstruction()
200 Label* AssemblyProgram::FindOrMakeAbs32Label(RVA rva) { in FindOrMakeAbs32Label() argument
201 return FindLabel(rva, &abs32_labels_); in FindOrMakeAbs32Label()
204 Label* AssemblyProgram::FindOrMakeRel32Label(RVA rva) { in FindOrMakeRel32Label() argument
205 return FindLabel(rva, &rel32_labels_); in FindOrMakeRel32Label()
249 Label* AssemblyProgram::FindLabel(RVA rva, RVAToLabel* labels) { in FindLabel() argument
250 Label*& slot = (*labels)[rva]; in FindLabel()
252 slot = new(std::nothrow) Label(rva); in FindLabel()
Ddisassembler_elf_32_arm.h29 TypedRVAARM(ARM_RVA type, RVA rva) : TypedRVA(rva), type_(type) { } in TypedRVAARM() argument
55 static CheckBool Compress(ARM_RVA type, uint32 arm_op, RVA rva,
Ddisassembler_elf_32_x86.cc153 RVA rva = static_cast<RVA>(rel32 - adjust_pointer_to_rva); in ParseRel32RelocsFromSection() local
154 TypedRVAX86* rel32_rva = new TypedRVAX86(rva); in ParseRel32RelocsFromSection()
160 RVA target_rva = rel32_rva->rva() + rel32_rva->relative_target(); in ParseRel32RelocsFromSection()
Ddisassembler_elf_32_x86.h21 explicit TypedRVAX86(RVA rva) : TypedRVA(rva) { in TypedRVAX86() argument
Ddisassembler_elf_32_x86_unittest.cc59 EXPECT_TRUE(abs.find((*rel32)->rva()) == abs.end()); in TestExe()
71 if (*abs32 == (*rel32)->rva()) { in TestExe()
Dencoded_program.h43 CheckBool AddOrigin(RVA rva) WARN_UNUSED_RESULT;
/external/chromium_org/base/win/
Dpe_image.cc522 bool PEImage::ImageRVAToOnDiskOffset(DWORD rva, DWORD *on_disk_offset) const { in ImageRVAToOnDiskOffset() argument
523 LPVOID address = RVAToAddr(rva); in ImageRVAToOnDiskOffset()
550 PVOID PEImage::RVAToAddr(DWORD rva) const { in RVAToAddr()
551 if (rva == 0) in RVAToAddr()
554 return reinterpret_cast<char*>(module_) + rva; in RVAToAddr()
557 PVOID PEImageAsData::RVAToAddr(DWORD rva) const { in RVAToAddr()
558 if (rva == 0) in RVAToAddr()
561 PVOID in_memory = PEImage::RVAToAddr(rva); in RVAToAddr()
Dpe_image.h216 virtual PVOID RVAToAddr(DWORD rva) const;
220 bool ImageRVAToOnDiskOffset(DWORD rva, DWORD *on_disk_offset) const;
236 virtual PVOID RVAToAddr(DWORD rva) const;
/external/llvm/include/llvm/Support/
DCOFF.h443 void setHintNameRVA(uint32_t rva) { data = rva; } in setHintNameRVA()
/external/chromium_org/v8/tools/
Dgrokdump.py548 self.minidump, d.location.rva)
559 self.minidump, d.location.rva)
563 self.minidump, self.exception.thread_context.rva)
566 self.minidump, self.exception.thread_context.rva)
569 self.minidump, self.exception.thread_context.rva)
572 thread_list = MINIDUMP_THREAD_LIST.Read(self.minidump, d.location.rva)
581 self.minidump, d.location.rva)
587 self.minidump, d.location.rva)
593 self.minidump, d.location.rva)
699 cb(self, r.start, r.memory.data_size, r.memory.rva)
[all …]