3.3.3.4 How Do I Stop the Compiler From Using Certain Memory Locations?

Concatenating an address attribute with the noload attribute can be used to block out sections of memory. Also, you can use the option -mreserve. For more on variable attributes and options, see the following sections in this user’s guide:

9.11 Variable Attributes

5.7.1 Options Specific to PIC32M Devices

See the MPLAB® XC32 Assembler, Linker and Utilities User’s Guide (DS50002186) for details on linker scripts.