Intel XENIX 286 Programmers Guide (86) - Tenox.tc

Intel XENIX 286 Programmers Guide (86) - Tenox.tc Intel XENIX 286 Programmers Guide (86) - Tenox.tc

09.06.2013 Views

XENIX Programming Programming Commands ld (continued) -i Creates separate instruction and data spaces for small model programs. When the output file is executed, the program text and data areas are allocated separate physical segments. The text portion will be read-only and will be shared by all users executing the file. -m name Creates a link map named name that includes public symbols. -Ms Creates small model programs and checks for errors such as fixup overflow. This option is reserved for object files compiled or assembled using the small model configuration. This is the default model if no -M option is given. -Mm Creates middle model programs and checks for errors. This option is reserved for object files compiled or assembled using the middle model configuration. This option implies -i. -Ml Creates a large model program and checks for errors. The option is reserved for object files compiled using the large model configuration. This option implies -i. -nl num Truncates symbols to the length specified by num. -o name Sets the executable program file name to name instead of a.out. -s Strips the symbol table. -S num Sets the maximum number of data segments to num. If no argument is given, the default is 256. -u symbol Designates the specified symbol as undefined. -v num Specifies the XENIX version number. Acceptable values for num are 2 or 3; 3 is the default. ld should be invoked by using the cc command instead of invoking it directly. cc invokes ld as the last step of compilation, providing all the necessary C language support routines. Invoking ld directly is not recommended since failure to give the com mand line arguments in the right order can result in errors. 8-75

Programming Commands XENIX Programming ld (continued) Files bin/ld See Also as, ar, cc, ranlib Notes The user must make sure that the most recent library versions have been processed with ranlib before linking. If this is not done, ld cannot create executable programs using these libraries. The output of cc is in 86 REL format. The output of ld is in STL 286 format. B-76

Programming Commands <strong>XENIX</strong> Programming<br />

ld (continued)<br />

Files<br />

bin/ld<br />

See Also<br />

as, ar, cc, ranlib<br />

Notes<br />

The user must make sure that the most recent library versions have been processed with<br />

ranlib before linking. If this is not done, ld cannot create executable programs using<br />

these libraries.<br />

The output of cc is in <strong>86</strong> REL format. The output of ld is in STL <strong>2<strong>86</strong></strong> format.<br />

B-76

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!