source: dev/trunk/abdev/BasicCompiler_Common/include/Linker.h@ 282

Last change on this file since 282 was 282, checked in by dai_9181, 17 years ago

vtbl構築をコード生成後(最終リンクの前)に行うようにした

File size: 855 bytes
Line 
1#pragma once
2
3class Linker
4{
5 NativeCode nativeCode;
6 DWORD imageBase;
7
8public:
9
10 Linker()
11 {
12 }
13
14 const NativeCode &GetNativeCode() const
15 {
16 return nativeCode;
17 }
18
19 void SetImageBase( DWORD imageBase )
20 {
21 this->imageBase = imageBase;
22 }
23
24 // データテーブルスケジュール
25 void ResolveDataTableSchedules( long dataSectionBaseOffset );
26
27 // DLL関数スケジュール
28 void ResolveDllProcSchedules( long codeSectionBaseOffset, long importSectionBaseOffset, long lookupSize, long hintSize );
29
30 // ユーザ定義関数スケジュール
31 void ResolveUserProcSchedules( long codeSectionBaseOffset );
32
33 // グローバル変数スケジュール
34 void ResolveGlobalVarSchedules( long rwSectionBaseOffset );
35
36 // vtblスケジュール
37 void ResolveVtblSchedule( long dataSectionBaseOffset );
38
39 // リンク
40 void Link( ObjectModule &masterObjectModule );
41};
Note: See TracBrowser for help on using the repository browser.