-REName


This option changes an external symbol name or a section name.

[Specification format]

-REName={[file](name1=name2[,name1=name2]...)|[module](name1=name2[,name1=name2]...)}[[,{[file](name1=name2[,name1=name2]...)|[module](name1=name2[,name1=name2]...)}]...]

 

-

Interpretation when omitted

None

[Detailed description]

-

This option changes an external symbol name or a section name.

-

Specify the symbol name or section name to be changed as name1. Specify the symbol name or section name after changing as name2.

-

Symbol names or section names in specific file file or a module in specific library module can be changed.

-

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

-

When a function name is changed, the operation is not guaranteed.

-

If the specified name matches both section and symbol names, the symbol name is changed.

-

If there are two or more files or modules with the same name, the priority depends on the input order.

[Example of use]

-

To change symbol name "_sym1" to "_data", describe as:

>rlink a.obj b.obj -rename=(_sym1=_data)

 

-

To change section ".SEC1" in library module "lib1" to section ".SEC2", describe as:

>rlink -form=library -library=lib1.lib -rename=(.SEC1=.SEC2)

[Remark]

-

If this option is specified together with the -extract option or -strip option, this option will be invalid.

-

When the -form=absolute option is specified, the section name of the input library cannot be changed.

-

Operation is not guaranteed if this option is used in combination with compile option -Omerge_files.