On Thursday, 7 March 2013 at 19:26:49 UTC, Walter Bright wrote:
If anyone is interested I'll put it up on github.
There's much more to making a linker. There's the debug info
(which you mentioned), then there are the resource files, the
module definition files, and lastly the myriad of rather
complex switches that are expected. Almost none of that is
tested by the dmd test suite.
Nevertheless having a linker written in D goes hand-in-hand with
having a compiler written in D. I'd be interested in seeing his
work. I'd also be interested in having something that's
documented and that isn't bound by licensing issues.
We also have the abandoned DDL[1] project which had a linker that
supports OMF, and Eric Anderton was nice enough to document his
process of implementing it:
http://www.dsource.org/forums/viewtopic.php?t=959
[1] http://dsource.org/projects/ddl/