Changeset 120

Show
Ignore:
Timestamp:
08/21/05 00:49:43 (3 years ago)
Author:
pragma
Message:

minor tweaks and changes.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/ddl/omfloader.d

    r119 r120  
    542542    } 
    543543     
    544     protected void resolveInternals(){ 
    545      
     544    protected void resolveInternals(){   
    546545        // go through all the external records, and resolve them to PublicSymbols and Dependencies 
    547546        for(uint extIdx=1; extIdx<this.externs.length; extIdx++){ 
     
    602601                debug writefln("%d dest %0.8X to %0.8X",fix.destSegmentIndex,*dest,fixupAmount); 
    603602                 
    604                 *dest = fixupAmount; 
     603                *dest += fixupAmount; 
    605604            } 
    606605        } 
     
    614613        resolveInternals(); 
    615614         
    616         /+ 
     615         
    617616        debug{ 
    618617            // read in foobar.x and display its value 
    619             PublicSymbol sym = this.publics["_D6foobar1xk"]; 
     618            PublicSymbol sym = this.publics["_D6foobar1zk"]; 
    620619            uint* x = cast(uint*)(&this.segments[sym.segmentIndex].data[sym.offset]); 
    621620            writefln("test: %0.8X",*x); 
     
    658657            writefln("add: %d",add(42,69)); 
    659658             
    660         }       +/ 
     659        }        
    661660    } 
    662661}