LW_START - start building a directive for output file.

Usage:

#include <ld.h>
lw_start(code);

Where:

unsigned char code;
is a character indicating what kind of directive you want to start. This will be the first character of the directive.

Description:

"lw_start" is the first step in writing out a directive. After this, you use other "lw_" functions to write out the various fields of the directive. You do not have to calculate the length or the checksum of the directive -- these are calculated when you call "lw_end" to close off the directive you have built.

You do not need to create your own LD_DATA and LD_RELOC directives with this routine. Instead, you should build these directives using "lw_dword" and "lw_reloc". The LD utilities will write out appropriate LD_DATA and LD_RELOC directives as they accumulate.

See Also:

expl ld lib lw_end

expl ld lib lw_dword

expl ld lib lw_reloc

Copyright © 1996, Thinkage Ltd.