Ah thank you! I understand the distinction now. Turns out the default settings in MCUXpresso already had those options enabled. -----Original Message----- From: Jonathan Wakely [mailto:jwakely.gcc@xxxxxxxxx] Sent: Monday, April 19, 2021 9:39 AM To: David Sherman <DSherman@xxxxxxxxxxxxxxx> Cc: gcc-help@xxxxxxxxxxx Subject: Re: Removing unused code/variables On Mon, 19 Apr 2021 at 14:33, David Sherman wrote: > > Hi, can you explain what those switches mean? I'm looking in the LD documentation and there is no mention of these. Those are GCC options, so they're documented in the GCC manual. The -Wl, option passes whatever follows to the linker, so --gc-sections is an LD option.