-ENTry


This option specifies the execution start address.

[Specification format]

-ENTry={symbol|address}

 

-

Interpretation when omitted

None

[Detailed description]

-

This option defines execution start address with external defined symbol symbol or address address.

-

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

-

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

-

This option setting takes priority over the entry symbol specified at compilation.

[Example of use]

-

To specify main function in C as the execution start address, describe as:

>rlink -entry=_main a.obj b.obj

 

-

To specify 0x100 as the execution start address, describe as:

>rlink -entry=100 a.obj b.obj

[Remark]

-

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