-CFI_ADD_Func [Professional Edition only] [V1.06 or later]


This option specifies the symbol or address of a function to be added to the function list for use in detecting illegal indirect function calls.

[Specification format]

-CFI_ADD_Func={symbol|address}[, ...]

 

-

Interpretation when omitted

None

[Detailed description]

-

This option registers the symbol or address of functions in the function list for use in detecting illegal indirect function calls.
For details on detecting illegal indirect function calls, refer to the item on the '-control_flow_integrity [Professional Edition only] [V1.06 or later]' compile option.

-

Specify addresses in hexadecimal.

-

If the specified symbol of a function is not included in the load module that was optimized by the linker, an error will occur.

-

If this option is specified more than once, all specified symbols or addresses of functions are registered in the function list.

-

When this option is used, the -CFI option must also be specified. If the -CFI option is not specified, an error will occur.

[Example of use]

-

To register the main function of the C source code, function address 0x100, and the function sub in the C source code in the function list, write this as:

>rlink -cfi -cfi_add_func=_main,100 -cfi_add_func=_sub a.obj b.obj