-SEction_forbid [V2.01.00 or later]


This option suppresses link-time optimization of specific sections.

[Specification format]

-SEction_forbid=sub [, ...]
    sub:= ( section-name[, ...] )
       |   file ( section-name[, ...] )
       |   module ( section-name[, ...] )

 

-

Interpretation when omitted

None

[Detailed description]

-

This option suppresses link-time optimization of specific sections.

-

Specify a section for which you wish to suppress link-time optimization with section-name.

-

Specifying file or module prior to section-name allows link-time optimization to be suppressed for sections included in a specific input file or library module.

-

Specify the input file name exactly as it is shown in the link map file, with uppercase and lowercase characters distinguished.

[Output example of link map file]

*** Options ***
-Input=DefaultBuild\main.obj

-

If this option is specified more than once, all specifications will be valid.

-

An error will occur in any of the following cases.

-

When the specified section-name, file, or module cannot be found

-

When section-name is not specified

-

A warning will be output and this option ignored in the following case.

-

When the -nooptimize option is specified

[Example of use]

-

To suppress link-time optimization of the .SEC1 section, describe as:

>rlink a.obj b.obj -optimize -section_forbid=(.SEC1)

-

To suppress link-time optimization of the .SEC1 and .SEC2 sections in a.obj, describe as:

>rlink a.obj b.obj -optimize -section_forbid=a.obj(.SEC1,.SEC2)