On 19/04/2021 15:38, Jonathan Wakely via Gcc-help wrote: > 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. > I think the reply I wrote went only to David, not to the list. The manual reference (for those too lazy to find it themselves :-) ) is : <https://gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html#index-fdata-sections>