Changeset 1456


Ignore:
Timestamp:
2013-11-08T10:53:39+01:00 (8 months ago)
Author:
moo
Message:

relocate: fix for virtual_src=0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/processor/foot.m4

    r1455 r1456  
    148148 
    149149    /* diff to new_ptr */ 
    150     ptrdiff_t ptrdiff = ptrsub(dst, src); 
     150    ptrdiff_t ptrdiff = ptrsub(dst, virtual_src); 
    151151    ptrdiff_t relocatediff = (ptrdiff_t) ptradd($1 *, virtual_dst, offset); 
    152     assert(ptradd($1 *, src, ptrdiff) == dst); 
    153152 
    154153    xc_relocate_$1(dst, ptrdiff, relocatediff TSRMLS_CC); 
Note: See TracChangeset for help on using the changeset viewer.