Mercurial > projects > ddmd
diff dmd/Module.d @ 22:fd4acc376c45
Implemented object file output and linking on linux.
author | Robert Clipsham <robert@octarineparrot.com> |
---|---|
date | Thu, 08 Apr 2010 04:21:03 +0100 |
parents | 5c9b78899f5d |
children | 460959608115 |
line wrap: on
line diff
--- a/dmd/Module.d Wed Apr 07 00:51:29 2010 +0100 +++ b/dmd/Module.d Thu Apr 08 04:21:03 2010 +0100 @@ -899,9 +899,9 @@ /* This should work, but causes optlink to fail in common/newlib.asm */ objextdef(s.Sident); } else { - version (XXX) {///ELFOBJ || MACHOBJ - int nbytes = reftoident(DATA, Offset(DATA), s, 0, CFoff); - Offset(DATA) += nbytes; + version (ELFOBJ_OR_MACHOBJ) {///ELFOBJ || MACHOBJ + int nbytes = reftoident(Segment.DATA, Offset(Segment.DATA), s, 0, CF.CFoff); + Offset(Segment.DATA) += nbytes; } else { int nbytes = reftoident(Segment.DATA, Doffset, s, 0, CF.CFoff); Doffset() += nbytes;