Re: remove unused symbol and function

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Weijun,

You could try -ffunction-sections, -fdata-sections, and -gc-sections
(garbage collect unused sections).

May or may not work, and could be platform dependent as to how well they
work.

You're better off not including the unused foo1 which depends on
unresolveable foo2 in the first place.

Another hack would be to define a (spoofed and also unused) foo2.  That'd
make foo1 happy.

HTH,
--Eljay

"Don't anthropomorphize computers.  They hate it when you do that."


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux