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: Eric Botcazou <ebotcazou at adacore dot com>
- To: "Pan ruochen" <panruochen at gmail 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: Sat, 27 Dec 2008 22:44:29 +0100
- Subject: Re: Can LD give warnings about the non-static functions defined but never used explicitly?
- References: <af0faace0811232319n6e6789e5t6cc39ff5be836ed4@mail.gmail.com> <200811271219.33547.ebotcazou@adacore.com> <af0faace0812252046v1288d3f2ydd57bece20afe47b@mail.gmail.com>
> 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?
Yes, you need 2.17 for the -Map thing.
--
Eric Botcazou