This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Can LD give warnings about the non-static functions defined but never used explicitly?
- From: "Pan ruochen" <panruochen at gmail dot com>
- To: "Eric Botcazou" <ebotcazou at adacore dot com>
- Cc: "Nick Clifton" <nickc at redhat dot com>, "Alan Modra" <amodra at bigpond dot net dot au>, "Jonathan Adamczewski" <jadamcze at utas dot edu dot au>, "David Daney" <ddaney at caviumnetworks dot com>, binutils at sourceware dot org
- Date: Fri, 26 Dec 2008 12:46:17 +0800
- Subject: Re: Can LD give warnings about the non-static functions defined but never used explicitly?
- References: <af0faace0811232319n6e6789e5t6cc39ff5be836ed4@mail.gmail.com> <af0faace0811261837r7b936540jd0bc82dee352b543@mail.gmail.com> <492E6E37.3010609@redhat.com> <200811271219.33547.ebotcazou@adacore.com>
2008/11/27 Eric Botcazou <ebotcazou@adacore.com>:
>> No, that information is generated by the --print-gc-sections linker
>> command line switch.
>
> Look into the "Discarded input sections" section of the map file...
>
> --
> Eric Botcazou
>
Well, my linker does not recognize the option --print-gc-sections, and
the map file created by the option -Map does not list the "Discarded
input sections"
$mips-elf-ld -v
GNU ld version 2.15
Is it too old?
Best Regards
PRC
Dec 26, 2008