Searched refs:RVA (Results 1 - 20 of 20) sorted by relevance

/external/chromium_org/courgette/
H A Ddisassembler_win32_x86.h41 bool ParseRelocs(std::vector<RVA> *addresses);
44 const Section* RVAToSection(RVA rva) const;
48 int RVAToFileOffset(RVA rva) const;
52 const uint8* RVAToPointer(RVA rva) const;
69 void HistogramTargets(const char* kind, const std::map<RVA, int>& map);
81 bool IsValidRVA(RVA rva) const { return rva < size_of_image_; }
83 // Returns description of the RVA, e.g. ".text+0x1243". For debugging only.
84 std::string DescribeRVA(RVA rva) const;
92 // RVA - relative virtual address (offset within *loaded image*)
95 RVA FileOffsetToRV
[all...]
H A Ddisassembler_elf_32.h33 explicit TypedRVA(RVA rva) : rva_(rva), offset_(-1) {
38 RVA rva() {
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;
72 const RVA rva_;
73 RVA relative_target_;
94 std::vector<RVA> &Abs32Locations() { return abs32_locations_; }
153 CheckBool IsValidRVA(RVA rv
[all...]
H A Ddisassembler_elf_32_arm.h29 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)
H A Dassembly_program.h35 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;
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);
H A Dencoded_program.h36 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;
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,
H A Ddisassembler_win32_x86.cc223 bool DisassemblerWin32X86::ParseRelocs(std::vector<RVA> *relocs) {
250 RVA page_rva = ReadU32(block, 0);
269 RVA rva = page_rva + offset;
288 const Section* DisassemblerWin32X86::RVAToSection(RVA rva) const {
299 int DisassemblerWin32X86::RVAToFileOffset(RVA rva) const {
310 // Small RVA values point into the file header in the loaded image.
311 // RVA 0 is the module load address which Windows uses as the module handle.
312 // RVA 2 sometimes occurs, I'm not sure what it is, but it would map into the
321 const uint8* DisassemblerWin32X86::RVAToPointer(RVA rva) const {
380 RVA rv
[all...]
H A Ddisassembler_elf_32_x86.h21 explicit TypedRVAX86(RVA rva) : TypedRVA(rva) {
30 RVA target_rva) OVERRIDE {
44 virtual CheckBool RelToRVA(Elf32_Rel rel, RVA* result)
H A Dtypedrva_unittest.cc11 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 {
42 courgette::RVA rva,
44 courgette::RVA expecte
[all...]
H A Ddisassembler_elf_32_x86.cc24 // 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);
160 RVA target_rva = rel32_rva->rva() + rel32_rva->relative_target();
H A Ddisassembler_elf_32_arm.cc20 CheckBool DisassemblerElf32ARM::Compress(ARM_RVA type, uint32 arm_op, RVA rva,
229 RVA relative_target;
236 RVA relative_target;
248 RVA relative_target;
260 RVA target_rva) {
271 // Convert an ELF relocation struction into an RVA
272 CheckBool DisassemblerElf32ARM::RelToRVA(Elf32_Rel rel, RVA* result) const {
333 std::vector<RVA>::iterator reloc_iter = abs32_locations_.begin();
376 // Quick way to convert from Pointer to RVA within a single Section is to
390 RVA target_rv
[all...]
H A Dencoded_program.cc149 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) {
185 RVA previous = 0;
195 CheckBool EncodedProgram::AddOrigin(RVA origin) {
408 RVA& current_rva,
416 RVA rva;
438 RVA rv
[all...]
H A Dtypes_win_pe.h41 RVA address_;
H A Ddisassembler_elf_32_x86_unittest.cc50 std::set<courgette::RVA> abs(disassembler->Abs32Locations().begin(),
62 for (std::vector<courgette::RVA>::iterator abs32 =
H A Ddisassembler_elf_32.cc142 CheckBool DisassemblerElf32::IsValidRVA(RVA rva) const {
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();
374 RVA target_rva = Read32LittleEndian(p);
378 file_offset += sizeof(RVA);
389 RVA target_rva = (RVA)(origin + (file_offset - origin_offset) +
441 RVA rv
[all...]
H A Ddisassembler.h18 typedef uint32 RVA; typedef in namespace:courgette
H A Dadjustment_method.cc101 // 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_;
H A Dassembly_program.cc59 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) {
200 Label* AssemblyProgram::FindOrMakeAbs32Label(RVA rva) {
204 Label* AssemblyProgram::FindOrMakeRel32Label(RVA rva) {
249 Label* AssemblyProgram::FindLabel(RVA rva, RVAToLabel* labels) {
371 typedef CheckBool (EncodedProgram::*DefineLabelMethod)(int index, RVA value);
H A Ddisassembler_win32_x86_unittest.cc41 std::vector<courgette::RVA> relocs;
/external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/util/
H A Ddbghelp.h904 typedef DWORD RVA; typedef
909 RVA Rva;
931 RVA StreamDirectoryRva;
983 RVA CSDVersionRva;
1049 RVA ModuleNameRva;
1088 RVA TypeNameRva;
1089 RVA ObjectNameRva;
1125 RVA ModuleNameRva;
/external/mesa3d/src/gallium/auxiliary/util/
H A Ddbghelp.h904 typedef DWORD RVA; typedef
909 RVA Rva;
931 RVA StreamDirectoryRva;
983 RVA CSDVersionRva;
1049 RVA ModuleNameRva;
1088 RVA TypeNameRva;
1089 RVA ObjectNameRva;
1125 RVA ModuleNameRva;

Completed in 1305 milliseconds