-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 ".text" in library module "lib1" to "data" to section "P", describe as:

>rlink -library=lib.lib -rename=lib1(.text=P) -form=library

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