This option specifies the execution start address.
[Specification format]
- | 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. |
- | Be sure to specify symbol if you intend to enable inter-module optimization (-optimize[={symbol_delete|speed}]). If address is specified with this option, optimization regarding deletion of unreferenced symbols 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. |