09.06.2013 Views

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

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

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

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

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

ld (continued)<br />

-i Creates separate instruction and data spaces for small model programs. When<br />

the output file is executed, the program text and data areas are allocated<br />

separate physical segments. The text portion will be read-only and will be<br />

shared by all users executing the file.<br />

-m name<br />

Creates a link map named name that includes public symbols.<br />

-Ms Creates small model programs and checks for errors such as fixup overflow.<br />

This option is reserved for object files compiled or assembled using the small<br />

model configuration. This is the default model if no -M option is given.<br />

-Mm Creates middle model programs and checks for errors. This option is reserved<br />

for object files compiled or assembled using the middle model configuration.<br />

This option implies -i.<br />

-Ml Creates a large model program and checks for errors. The option is reserved for<br />

object files compiled using the large model configuration. This option implies -i.<br />

-nl num<br />

Truncates symbols to the length specified by num.<br />

-o name<br />

Sets the executable program file name to name instead of a.out.<br />

-s Strips the symbol table.<br />

-S num<br />

Sets the maximum number of data segments to num. If no argument is given,<br />

the default is 256.<br />

-u symbol<br />

Designates the specified symbol as undefined.<br />

-v num<br />

Specifies the <strong>XENIX</strong> version number. Acceptable values for num are 2 or 3; 3 is<br />

the default.<br />

ld should be invoked by using the cc command instead of invoking it directly. cc invokes<br />

ld as the last step of compilation, providing all the necessary C language support<br />

routines. Invoking ld directly is not recommended since failure to give the com mand<br />

line arguments in the right order can result in errors.<br />

8-75

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

Saved successfully!

Ooh no, something went wrong!