Is there a way to strip all functions from an object file that I am not using?
Posted
by samoz
on Stack Overflow
See other posts from Stack Overflow
or by samoz
Published on 2010-04-13T23:56:01Z
Indexed on
2010/04/14
0:13 UTC
Read the original article
Hit count: 559
I am trying to save space in my executable and I noticed that several functions are being added into my object files, even though I never call them (the code is from a library).
Is there a way to tell gcc to remove these functions automatically or do I need to remove them manually?
© Stack Overflow or respective owner