Everything

-cfi_add_func [V2.08.00 or later]


< Optimizing Linkage Editor (rlink) Options / Output Options >

[Format]

-cfi_add_func={ <function symbol> | <function address> }[,{ <function symbol> | <function address> }]...

[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] [V2.08.00 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]

-

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

-cfi_add_func=_sub1,100 -cfi_add_func=_sub2