Line | |
---|
1 | #pragma once
|
---|
2 |
|
---|
3 |
|
---|
4 | ///////////////////////
|
---|
5 | // リロケーション情報
|
---|
6 | ///////////////////////
|
---|
7 | class CReloc{
|
---|
8 | public:
|
---|
9 | char *buffer;
|
---|
10 | int length;
|
---|
11 | DWORD NowPageRVAToReloc;
|
---|
12 | DWORD NowCountAddrToReloc;
|
---|
13 |
|
---|
14 | CReloc();
|
---|
15 | ~CReloc();
|
---|
16 | void AllFree(void);
|
---|
17 | void copy(CReloc *por);
|
---|
18 |
|
---|
19 | private:
|
---|
20 | std::vector<DWORD> codeSectionAddresses;
|
---|
21 | public:
|
---|
22 | void AddSchedule_CodeSection(DWORD addr);
|
---|
23 |
|
---|
24 | private:
|
---|
25 | std::vector<DWORD> dataSectionAddresses;
|
---|
26 | public:
|
---|
27 | void AddSchedule_DataSection(DWORD addr);
|
---|
28 |
|
---|
29 | private:
|
---|
30 | void __add(DWORD addr);
|
---|
31 | public:
|
---|
32 | void ResetRelocBuffer(void);
|
---|
33 | };
|
---|
34 | extern CReloc *pobj_Reloc;
|
---|
35 |
|
---|
36 |
|
---|
37 | void NativeBuffer_StaticRelocation(int iStartPos,int iSize,int offset);
|
---|
Note:
See
TracBrowser
for help on using the repository browser.