Everything

 

-pid [V1.07.00 or later]


This option enables the PID facility.

[Specification format]

-pid

 

-

Interpretation when omitted

The PID facility is disabled.

[Detailed description]

-

The PID facility makes the section to which variable data is 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 PID facility.

-

When this option is specified, the section to which variable data is output is changed from the data or bss attribute section to the sdata32 or sbss32 attribute section, respectively.

-

Referencing variable data allocated to the sdata32 or sbss32 attribute section is always performed in GP-relative mode. This allows the sdata32 or sbss32 attribute section to be allocated at a desired address after linkage.

-

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

-

If this option is specified simultaneously with the -r4=none option, an error will occur.

-

If this option is specified simultaneously with the -Omap or -Osmap option, an error will occur.