The MASM Forum Archive 2004 to 2012

General Forums => The Campus => Topic started by: realcr on August 21, 2007, 07:21:18 PM

Title: Creating a linker
Post by: realcr on August 21, 2007, 07:21:18 PM
Hi everyone.

I was wondering if you know about any tutorials , source code , or any information about creating linkers.
I actually thought it would be easy to download ld - the gnu linker sources , but I didn't manage to find it , maybe because "ld" is such a short name ,
or just because trying to link is more common then trying to create a linker.

thanks in advance,
realcr.
Title: Re: Creating a linker
Post by: u on August 21, 2007, 08:49:55 PM
http://sources.redhat.com/binutils/

To create a linker, it'll be insanely harder to start with the source of LD. Because you simply need to know the file-formats. LD's srccode should be just a resource for tips on how to make your linker.
Title: Re: Creating a linker
Post by: japheth on August 21, 2007, 09:11:08 PM

two other linkers which understand COFF and where source is available are:

- Open Watcom WLINK
- LadSoft VALX

They are not easy to understand, though, because they accept not only COFF but also OMF (16-bit and 32-bit), which makes things ways more complicated.