HomeSort by relevance Sort by last modified time
    Searched refs:RVA (Results 1 - 21 of 21) sorted by null

  /external/chromium_org/courgette/
disassembler_win32_x86.h 41 bool ParseRelocs(std::vector<RVA> *addresses);
44 const Section* RVAToSection(RVA rva) const;
47 // Returns kNoOffset if there is no file offset corresponding to 'rva'.
48 int RVAToFileOffset(RVA rva) const;
50 // Returns same as FileOffsetToPointer(RVAToFileOffset(rva)) except that NULL
51 // is returned if there is no file offset corresponding to 'rva'.
52 const uint8* RVAToPointer(RVA rva) const
    [all...]
disassembler_elf_32.h 29 // Different instructions encode the target rva differently. This
33 explicit TypedRVA(RVA rva) : rva_(rva), offset_(-1) {
38 RVA rva() { function in class:courgette::DisassemblerElf32::TypedRVA
42 RVA relative_target() {
46 void set_relative_target(RVA relative_target) {
61 // Emits the courgette instruction corresponding to the RVA type.
63 RVA target_rva) = 0
    [all...]
assembly_program.h 35 explicit Label(RVA rva) : rva_(rva), index_(kNoIndex), count_(0) {}
37 RVA rva_; // Address referred to by the label.
42 typedef std::map<RVA, Label*> RVAToLabel;
83 // Following instruction will be assembled at address 'rva'.
84 CheckBool EmitOriginInstruction(RVA rva) WARN_UNUSED_RESULT;
105 Label* FindOrMakeAbs32Label(RVA rva);
    [all...]
disassembler_elf_32_x86.h 21 explicit TypedRVAX86(RVA rva) : TypedRVA(rva) {
30 RVA target_rva) OVERRIDE {
44 virtual CheckBool RelToRVA(Elf32_Rel rel, RVA* result)
encoded_program.h 36 CheckBool DefineRel32Label(int index, RVA address) WARN_UNUSED_RESULT;
37 CheckBool DefineAbs32Label(int index, RVA address) WARN_UNUSED_RESULT;
43 CheckBool AddOrigin(RVA rva) WARN_UNUSED_RESULT;
68 ORIGIN = 0, // ORIGIN <rva> - set address for subsequent assembly.
88 typedef NoThrowBuffer<RVA> RvaVector;
97 CheckBool DefineLabelCommon(RvaVector*, int, RVA) WARN_UNUSED_RESULT;
101 CheckBool EvaluateRel32ARM(OP op, size_t& ix_rel32_ix, RVA& current_rva,
disassembler_elf_32_arm.h 29 TypedRVAARM(ARM_RVA type, RVA rva) : TypedRVA(rva), type_(type) { }
38 RVA target_rva);
55 static CheckBool Compress(ARM_RVA type, uint32 arm_op, RVA rva,
63 virtual CheckBool RelToRVA(Elf32_Rel rel, RVA* result)
disassembler_win32_x86.cc 223 bool DisassemblerWin32X86::ParseRelocs(std::vector<RVA> *relocs) {
250 RVA page_rva = ReadU32(block, 0);
269 RVA rva = page_rva + offset; local
271 relocs->push_back(rva);
288 const Section* DisassemblerWin32X86::RVAToSection(RVA rva) const {
291 uint32 offset = rva - section->virtual_address;
299 int DisassemblerWin32X86::RVAToFileOffset(RVA rva) const
380 RVA rva = abs32_locations_[i]; local
671 s << std::hex << rva; local
    [all...]
typedrva_unittest.cc 11 void TestRelativeTargetX86(courgette::RVA word, courgette::RVA expected)
15 courgette::RVA rva,
17 courgette::RVA expected) const;
20 courgette::RVA rva,
22 courgette::RVA expected) const;
25 void TypedRVATest::TestRelativeTargetX86(courgette::RVA word,
26 courgette::RVA expected) const
    [all...]
disassembler_elf_32_x86.cc 24 // Convert an ELF relocation struction into an RVA
25 CheckBool DisassemblerElf32X86::RelToRVA(Elf32_Rel rel, RVA* result) const {
97 std::vector<RVA>::iterator reloc_iter = abs32_locations_.begin();
126 // Quick way to convert from Pointer to RVA within a single Section is to
134 //RVA current_rva = static_cast<RVA>(p - adjust_pointer_to_rva);
153 RVA rva = static_cast<RVA>(rel32 - adjust_pointer_to_rva); local
154 TypedRVAX86* rel32_rva = new TypedRVAX86(rva);
    [all...]
disassembler_elf_32_arm.cc 20 CheckBool DisassemblerElf32ARM::Compress(ARM_RVA type, uint32 arm_op, RVA rva,
90 uint32 align4byte = (rva % 4) ? 2 : 4;
229 RVA relative_target;
230 CheckBool ret = Compress(type_, Read16LittleEndian(op_pointer), rva(),
236 RVA relative_target;
237 CheckBool ret = Compress(type_, Read32LittleEndian(op_pointer), rva(),
248 RVA relative_target;
249 CheckBool ret = Compress(type_, pval, rva(), &c_op_, &relative_target);
260 RVA target_rva)
397 RVA rva = static_cast<RVA>(p - adjust_pointer_to_rva); local
406 RVA rva = static_cast<RVA>(p - adjust_pointer_to_rva); local
426 RVA rva = static_cast<RVA>(p - adjust_pointer_to_rva); local
437 RVA rva = static_cast<RVA>(p - adjust_pointer_to_rva); local
454 RVA rva = static_cast<RVA>(p - adjust_pointer_to_rva); local
    [all...]
types_win_pe.h 41 RVA address_;
encoded_program.cc 149 CheckBool EncodedProgram::DefineRel32Label(int index, RVA value) {
153 CheckBool EncodedProgram::DefineAbs32Label(int index, RVA value) {
157 static const RVA kUnassignedRVA = static_cast<RVA>(-1);
161 RVA rva) {
169 (*rvas)[index] = rva;
185 RVA previous = 0;
195 CheckBool EncodedProgram::AddOrigin(RVA origin) {
408 RVA& current_rva
416 RVA rva; local
438 RVA rva; local
458 RVA rva; local
477 RVA rva; local
497 RVA rva; local
587 RVA rva; local
602 RVA rva; local
731 uint32 rva = abs32_relocs_[i]; local
    [all...]
disassembler_elf_32.cc 142 CheckBool DisassemblerElf32::IsValidRVA(RVA rva) const {
154 if (rva >= begin && rva < end)
161 // Returns RVA for an in memory address, or NULL.
182 RVA DisassemblerElf32::FileOffsetToRVA(size_t offset) const {
206 CheckBool DisassemblerElf32::RVAsToOffsets(std::vector<RVA>* rvas,
210 for (std::vector<RVA>::iterator rva = rvas->begin();
211 rva != rvas->end()
441 RVA rva; local
    [all...]
disassembler_elf_32_x86_unittest.cc 50 std::set<courgette::RVA> abs(disassembler->Abs32Locations().begin(),
59 EXPECT_TRUE(abs.find((*rel32)->rva()) == abs.end());
62 for (std::vector<courgette::RVA>::iterator abs32 =
71 if (*abs32 == (*rel32)->rva()) {
disassembler.h 18 typedef uint32 RVA;
adjustment_method.cc 101 // adjacent labels will have the same RVA difference.
342 RVA m_rva_base = m_info->label_->rva_;
343 RVA p_rva_base = p_info->label_->rva_;
351 RVA m_rva = m_info_next->label_->rva_;
352 RVA p_rva = p_info_next->label_->rva_;
361 RVA m_rva_next = m_info_next_next->label_->rva_;
362 RVA p_rva_next = p_info_next_next->label_->rva_;
399 RVA m_rva = m_info_prev->label_->rva_;
400 RVA p_rva = p_info_prev->label_->rva_;
assembly_program.cc 24 ORIGIN, // ORIGIN <rva> - set current address for assembly.
59 explicit OriginInstruction(RVA rva) : Instruction(ORIGIN, 0), rva_(rva) {}
60 RVA origin_rva() const { return rva_; }
62 RVA rva_;
173 CheckBool AssemblyProgram::EmitOriginInstruction(RVA rva) {
174 return Emit(new(std::nothrow) OriginInstruction(rva));
200 Label* AssemblyProgram::FindOrMakeAbs32Label(RVA rva)
    [all...]
disassembler_win32_x86_unittest.cc 41 std::vector<courgette::RVA> relocs;
  /external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/util/
dbghelp.h 67 PIMAGE_SECTION_HEADER IMAGEAPI ImageRvaToSection(PIMAGE_NT_HEADERS NtHeaders,PVOID Base,ULONG Rva);
68 PVOID IMAGEAPI ImageRvaToVa(PIMAGE_NT_HEADERS NtHeaders,PVOID Base,ULONG Rva,PIMAGE_SECTION_HEADER *LastRvaSection);
    [all...]
  /external/mesa3d/src/gallium/auxiliary/util/
dbghelp.h 67 PIMAGE_SECTION_HEADER IMAGEAPI ImageRvaToSection(PIMAGE_NT_HEADERS NtHeaders,PVOID Base,ULONG Rva);
68 PVOID IMAGEAPI ImageRvaToVa(PIMAGE_NT_HEADERS NtHeaders,PVOID Base,ULONG Rva,PIMAGE_SECTION_HEADER *LastRvaSection);
    [all...]
  /external/chromium_org/tools/symsrc/
pefile.py 499 """Get the RVA of the string."""
533 """The next RVA is taken to be the one immediately following this one.
535 Such RVA could indicate the natural end of the string and will be checked
553 def __get_word_value_at_rva(self, rva):
571 """The next RVA is taken to be the one immediately following this one.
573 Such RVA could indicate the natural end of the string and will be checked
838 def get_offset_from_rva(self, rva):
839 return (rva - self.VirtualAddress) + self.PointerToRawData
852 def contains_rva(self, rva):
866 return self.VirtualAddress <= rva < self.VirtualAddress + siz
    [all...]

Completed in 1221 milliseconds