3.7.1.3.2 XC8 Linker - Memory Model Options

Figure 3-7. XC8 Linker - Memory model options
Garbage collect unused sections
This selector specifies if the linker should remove sections that it considers are not used.