Runtime & Linker explanations?

Status
Not open for further replies.

wadesworld

Seniorius Lurkius
20
Has anyone seen any good explanations of how the linker and runtime architectures work for any platform? BSD would be preferred, but any good documentation would be useful, regardless of platform.

Specifically, I'm looking for things like the documentation on the object file format and how the linker takes the object code and packages it into the runtime format.

Thanks,

Wade
 

earl

Well-known member
3,066
Under windows, the object file format is COFF (Common Object File Format). For the exact format spec, search the MSDN.

Under unix, it varies -- it used to be a.out and COFF, now elf seems to be making headway and is more common.

As for the linker, do man ld or search for ld. Other commands (for creating .a's -- ar and ranlib -- which you then link with -l; or libtool, to create a .so -- equivalent to .dll; or ldd -- help find linking problems)

-earl-
 
Status
Not open for further replies.