9.2 Command Line Information

Linker scripts are specified on the command line using either the -T option or the --script option (see 3.6 Options That Control Output File Creation ). For example:
xc32-ld -o output.elf input.o --script mylinkerscript.ld
If the linker is invoked through xc32-gcc, use the driver's -Wl, option to pass the linker option directly to the linker. For example:
xc32-gcc -o output.elf input.o -Wl,--script,mylinkerscript.ld