4.14.3 Linker Scripts

Linker scripts are used to instruct the linker how to position sections in memory. There are five different variants of these scripts, tabulated below. These are selected based on the options passed to the linker.

Table 4-16. Linker script variants
Script ExtensionControlling linker optionLinker operation
.xdefault
.xr-rperform no relocation
.xu-Urresolve references to constructors
.xn-nset text to be read-only
.xbn -NSet the text and data sections to be readable and writable.