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

Eric Botcazou ebotcazou@adacore.com
Sun Dec 28 22:55:00 GMT 2008


> 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



More information about the Binutils mailing list