Everything

 

-DEFine


This option defines an undefined symbol forcedly.

[Specification format]

-DEFine=suboption[, ...]
  suboption := symbol1=symbol2
            |  symbol1=value

 

-

Interpretation when omitted

None

[Detailed description]

-

This option defines undefined symbol symbol1 forcedly as external defined symbol symbol2 or numerical value value.

-

Specify value in hexadecimal.
If the specified value starts with a character from A to F, symbols are searched first, and if corresponding symbol is not found, the value is interpreted as a numerical value.
Values starting with 0 are always interpreted as numerical values.

-

If the specified symbol name is a C variable name, add "_" at the head of the definition name in the program.

[Example of use]

-

To define "_sym1" as the same value as external defined symbol "data", describe as:

>rlink -define=_sym1=data a.obj b.obj

 

-

To define "_sym2" as 0x4000, describe as:

>rlink -define=_sym2=4000 a.obj b.obj

[Remark]

-

If the -form={object|relocate|library} option is specified, this option will be invalid.