5.6.4.1 General

Table 5-8. General Category
OptionDescriptionCommand Line1
Heap Size (bytes)Specify the size of the heap in bytes. Allocate a run-time heap of size bytes for use by C programs. The heap is allocated from unused data memory. If not enough memory is available, an error is reported.-Wl,--defsym=_min_heap_size=size
Minimum stack size (bytes)Specify the minimum size of the stack in bytes. By default, the linker allocates all unused data memory for the run-time stack. Alternatively, the programmer may allocate the stack by declaring two global symbols: __SP_init and __SPLIM_init. Use this option to ensure that at least a minimum sized stack is available. The actual stack size is reported in the link map output file. If the minimum size is not available, an error is reported.-Wl,--defsym=_min_stack_size=size
Allow overlapped sectionsCheck to not check section addresses for overlaps.

Uncheck to check for overlaps.

--no-check-sections

--check-sections

Init data sectionsCheck to support initialized data.

Uncheck to not support.

--data-init

--no-data-init

Remove unused sectionsCheck to enable garbage collection of unused input sections (on some targets).

Uncheck to disable garbage collection.

--gc-sections

--no-gc-sections

Use response file to linkPass linker options in a file rather than on the command line. On Windows systems, this option allows you to properly link projects with a large number of object files that would normally overrun the command-line length limitation of the Windows OS.
Additional driver optionsType here any additional driver options that do not have dedicated GUI widgets in the Project Properties dialog. The string entered here will be emitted verbatim with the other driver options.
Create default ISRCheck to create an interrupt function for unused vectors.

Uncheck to not create a default ISR.

--isr

--no-isr

Stack guardband sizeEnter a stack guardband size to ensure that enough stack space is available to process a stack overflow exception.--stackguard=size
No Interrupt Vector TableCheck to prevent the linker from generating an IVT/AIVT vector table. If there is one defined by the user then it will be used; otherwise the memory will remain unprogrammed.

Uncheck to allow the linker to generate a vector table.

--no-ivt
  1. For details on linker command-line options, see MPLAB® XC32 Assembler, Linker and Utilities User’s Guide for PIC32A MCU.