Position-independent is achieved by referencing data in GP-relative or EP-relative mode in the CC-RH.
When the -pid option is specified, the default section to which data is allocated will be the .sdata32 section and .sbss32 section. The code to reference data allocated to these sections is output in GP-relative mode. Similarly as to when not using the PID facility, the allocation section can be changed to the .sdata section or .sdata23 section by using the #pragma section directive or -Xsection option.