XL Compiler of AIX seems to have the -qfuncsect option which places each function in a seperate object control section with the effect that when the final executab开发者_运维技巧le is created it helps in removing unwanted functions.
Is there an equivalent option for the same in gcc? I am unable to find the same.
-ffunction-sections
-fdata-sections
http://gcc.gnu.org/onlinedocs/gcc-4.0.4/gcc/Optimize-Options.html
See -ffunction-sections
精彩评论