Re: Removing unused code/variables

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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>





[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux