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: Ian Lance Taylor <iant at google dot com>
- To: "Pan ruochen" <panruochen at gmail dot com>
- Cc: "Eric Botcazou" <ebotcazou at adacore dot com>, "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: Thu, 25 Dec 2008 22:11:03 -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> <af0faace0812252046v1288d3f2ydd57bece20afe47b@mail.gmail.com>
"Pan ruochen" <panruochen@gmail.com> writes:
> 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?
--print-gc-sections was added in binutils 2.18.
Ian