Hi,
I have few functions in a C file but those are not
called at present. Even though those function
definitions are part of the object file.
Those will be called later on.
What CFLAGS should I pass to remove unused functions?
I cannot enable -Ox at present to have any
unpredictable behaviour.
I believe you can use -ffunction-sections -Wl,--gc-sections when you
compile and link. If you have binutils prior to 2.16, this only
works with -static.
-B
On Jul 24, 2006, at 7:07 AM, Parav Pandit wrote:
Hi,
I have few functions in a C file but those are not
called at present. Even