~ppsspp/ppsspp/ppsspp_1.3.0

« back to all changes in this revision

Viewing changes to ext/armips/Archs/ARM/ArmRelocator.h

  • Committer: Sérgio Benjamim
  • Date: 2017-01-02 00:12:05 UTC
  • Revision ID: sergio_br2@yahoo.com.br-20170102001205-cxbta9za203nmjwm
1.3.0 source (from ppsspp_1.3.0-r160.p5.l1762.a165.t83~56~ubuntu16.04.1.tar.xz).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#pragma once
 
2
#include "Core/ELF/ElfRelocator.h"
 
3
#include "Parser/Parser.h"
 
4
 
 
5
enum {
 
6
        R_ARM_ABS32 = 2,
 
7
        R_ARM_THM_CALL = 10,
 
8
        R_ARM_CALL = 28,
 
9
        R_ARM_JUMP24 = 29,
 
10
        R_ARM_TARGET1 = 38,
 
11
};
 
12
 
 
13
 
 
14
class ArmElfRelocator: public IElfRelocator
 
15
{
 
16
public:
 
17
        ArmElfRelocator(bool arm9): arm9(arm9) { };
 
18
        virtual bool relocateOpcode(int type, RelocationData& data);
 
19
        virtual void setSymbolAddress(RelocationData& data, u64 symbolAddress, int symbolType);
 
20
        virtual CAssemblerCommand* generateCtorStub(std::vector<ElfRelocatorCtor>& ctors);
 
21
private:
 
22
        bool arm9;
 
23
};
 
 
b'\\ No newline at end of file'