-pic [V1.07.00 or later]


This option enables the PIC facility.

[Specification format]

-pic

 

-

Interpretation when omitted

The PIC facility is disabled.

[Detailed description]

-

The PIC facility makes the section to which functions are allocated position-independent.

See "4.2.6.1 Allocation of function and data to section " and "8.6 PIC/PID Facility" for details about the PIC facility.

-

When this option is specified, the section to which the function code is output is changed from the text attribute section to the pctext attribute section.

-

Referencing a function allocated to the pctext attribute section is always performed in PC-relative mode. This allows the pctext attribute section to be allocated at a desired address after linkage.

-

When this option is specified, the predefined macro __PIC will be valid.

-

If this option is not specified simultaneously with the -pirod option, an error will occur.