-VECTN


This option stores address values in the specified areas in the vector table.

[Specification format]

-VECTN=suboption[, ...]
  suboption := {vector-number=symbol|vector-number=address}

 

-

Interpretation when omitted

None

[Detailed description]

-

This option stores the specified address values in the specified locations of the vector table.

-

When this option is specified, the optimizing linker creates a vector table section and stores the specified address values in the vector table even if no interrupt handlers are written in the source program.

-

Specify an even number within the range of 0x0 to 0x7E in hexadecimal for "vector-number".

-

Specify the external name of the target function prefixed with an underscore (_) as symbol.

-

Specify the desired hexadecimal address for address.

-

The value to be set at address 0x2 and 0x3 of the vector table is determined in the following order of priority.
-rrm option > -debug_monitor option > Assembly source file specification > -vectn option > -vect option

-

When the -SPLIT_VECT option is not specified, set a value in an unused area which is not specified with the -VECTN option according to the following priority.

1. Value specified with the VECT option

2. If there is a defined symbol with the name (internal name) of "__dummy_int" in the link target, the address of that symbol

3. If there is a defined symbol with the name (internal name) of "dummy_int" in the link target, the address of that symbol

4. 0 for cases other than any of the above

-

When the -SPLIT_VECT option is specified, a section for each vector number is not generated for an unused area which is not specified with the -VECTN option.

[Example of use]

-

To store the address of _dummy at address 0x14 in the vector table, describe as:

>rlink a.obj b.obj -vectn=14=_dummy

[Remark]

-

This option is ignored when the user creates a vector table address section in the source program because the vector table is not automatically created in this case.

-

If the -form={object|relocate|library} option, -strip option, or -extract option is specified, this option will be invalid.