5.7.1.10 Gen-pie-static Option
The -mgen-pie-static
option generates position-independent code suitable for
statically linking into a Position-Independent Executable (PIE). Such code accesses all
constant addresses through a Global Offset Table (GOT). A special ELF loader, running on
the target device, resolves the GOT entries and loads the final executable image into
memory.
Pass this option to the xc32-gcc
compilation driver when compiling,
assembling, and linking.