Everything

 

-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.

[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.

-

Be sure to specify symbol if you intend to enable link-time optimization (-optimize[=symbol_delete]). If address is specified with this option, link-time optimization will be disabled.

-

If the address specified by the -entry option is included in any of the sections allocated by the -start option, optimization in the range from the first address of the section up to the address specified by the -entry option will be suppressed.