Changeset 273 in dev for trunk/abdev/BasicCompiler_Common/src/Linker.cpp
- Timestamp:
- Aug 11, 2007, 4:03:49 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/abdev/BasicCompiler_Common/src/Linker.cpp
r263 r273 78 78 void Linker::ResolveGlobalVarSchedules( long rwSectionBaseOffset ) 79 79 { 80 int allInitVarSize = compiler.GetObjectModule().meta.GetGlobalVars().GetAllInitSize(); 81 80 82 BOOST_FOREACH( const Schedule &schedule, nativeCode.GetSchedules() ) 81 83 { … … 84 86 if( nativeCode.GetLong( schedule.GetOffset() ) & 0x80000000 ) 85 87 { 86 extern int AllInitGlobalVarSize;87 88 nativeCode.Overwrite( 88 89 schedule.GetOffset(), 89 static_cast<long>( AllInitGlobalVarSize + (nativeCode.GetLong( schedule.GetOffset() ) & 0x7FFFFFFF) + imageBase + rwSectionBaseOffset )90 static_cast<long>( allInitVarSize + (nativeCode.GetLong( schedule.GetOffset() ) & 0x7FFFFFFF) + imageBase + rwSectionBaseOffset ) 90 91 ); 91 92 } … … 101 102 } 102 103 103 void Linker::Link( vector<ObjectModule *> &objectModules)104 void Linker::Link( ObjectModule &masterObjectModule ) 104 105 { 105 106 // nativeCodeは初期状態でなければならない … … 108 109 SetError(); 109 110 } 110 111 /*112 BOOST_FOREACH( ObjectModule *pObjectModule, objectModules )113 {114 }*/115 ObjectModule &masterObjectModule = *objectModules[0];116 111 117 112 nativeCode.Put( masterObjectModule.globalNativeCode, false );
Note:
See TracChangeset
for help on using the changeset viewer.