Can LD give warnings about the non-static functions defined but never used explicitly?

Pan ruochen panruochen@gmail.com
Fri Dec 26 05:57:00 GMT 2008


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



More information about the Binutils mailing list