removing unused functions during final link

Andrew Haley aph@redhat.com
Wed Sep 3 10:21:00 GMT 2014


On 09/03/2014 04:20 AM, Melvin Blades wrote:
> Using gcc instead of ld, I was able to get it to strip unused
>  functions if all the functions in a file are not called.
>  But I could not get it to strip  unused functions if they  are in the
>  same source file as used functions .
> 
>  Is there a way to get it strip ALL the unused functions?

That should have worked.  Please tell us the exact command you used.

Andrew.




More information about the Gcc-help mailing list