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

  /external/chromium_org/courgette/
disassembler_win32_x64.h 45 bool ParseRelocs(std::vector<RVA> *addresses);
48 const Section* RVAToSection(RVA rva) const;
51 // Returns kNoOffset if there is no file offset corresponding to 'rva'.
52 int RVAToFileOffset(RVA rva) const;
54 // Returns same as FileOffsetToPointer(RVAToFileOffset(rva)) except that NULL
55 // is returned if there is no file offset corresponding to 'rva'.
56 const uint8* RVAToPointer(RVA rva) const
    [all...]
disassembler_win32_x86.h 45 bool ParseRelocs(std::vector<RVA> *addresses);
48 const Section* RVAToSection(RVA rva) const;
51 // Returns kNoOffset if there is no file offset corresponding to 'rva'.
52 int RVAToFileOffset(RVA rva) const;
54 // Returns same as FileOffsetToPointer(RVAToFileOffset(rva)) except that NULL
55 // is returned if there is no file offset corresponding to 'rva'.
56 const uint8* RVAToPointer(RVA rva) const
    [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)
55 std::map<RVA, int> rel32_target_rvas_;
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_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)
74 std::map<RVA, int> rel32_target_rvas_;
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.
89 typedef NoThrowBuffer<RVA> RvaVector;
99 CheckBool DefineLabelCommon(RvaVector*, int, RVA) WARN_UNUSED_RESULT;
103 CheckBool EvaluateRel32ARM(OP op, size_t& ix_rel32_ix, RVA& current_rva,
disassembler_win32_x64.cc 219 bool DisassemblerWin32X64::ParseRelocs(std::vector<RVA> *relocs) {
246 RVA page_rva = ReadU32(block, 0);
265 RVA rva = page_rva + offset; local
267 relocs->push_back(rva);
284 const Section* DisassemblerWin32X64::RVAToSection(RVA rva) const {
287 uint32 offset = rva - section->virtual_address;
295 int DisassemblerWin32X64::RVAToFileOffset(RVA rva) const
376 RVA rva = abs32_locations_[i]; local
667 s << std::hex << rva; local
    [all...]
disassembler_win32_x86.cc 219 bool DisassemblerWin32X86::ParseRelocs(std::vector<RVA> *relocs) {
246 RVA page_rva = ReadU32(block, 0);
265 RVA rva = page_rva + offset; local
267 relocs->push_back(rva);
284 const Section* DisassemblerWin32X86::RVAToSection(RVA rva) const {
287 uint32 offset = rva - section->virtual_address;
295 int DisassemblerWin32X86::RVAToFileOffset(RVA rva) const
376 RVA rva = abs32_locations_[i]; local
667 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) {
410 RVA& current_rva
418 RVA rva; local
440 RVA rva; local
460 RVA rva; local
479 RVA rva; local
499 RVA rva; local
590 RVA rva; local
605 RVA rva; local
743 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 22 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_x64_unittest.cc 41 std::vector<courgette::RVA> relocs;
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 252 milliseconds