ld Manual

Introduction to ld
ld Manual529650.001
1-5
Running Windows ld on the PC
Example 1-5 links object files named obj3.o and obj4.o together into a program
named prog. It also associates prog with a user library with the Guardian name
$a.b.c. The backslash prevents the shell from misinterpreting the dollar sign ($).
Example 1-6 uses the C object files test1.o and test2.o to build a program named
prog. Because the program is a C program, the ccppmain.o library object file is
required. The obey option directs ld to link all of the required run-time libraries in the
program.
Running Windows ld on the PC
Using ETK, you can run Windows ld on:
Windows NT
Windows 2000
Windows XP
Components of Windows ld
Example 1-5. Creating a Program File (OSS)
ld obj3.o obj4.o -o prog -libname \$a.b.c
Example 1-6. Creating an Executable C Program (OSS)
ld /user/lib/ccppmain.o test1.o test2.o \
-obey /usr/lib/libc.obey -o prog
Component Description
ld.dll A Windows DLL that implements ld functionality
ld.exe A Windows executable file that provides a direct command line interface
for ld functionality