Dear Nick, Thanks for your advice,It works well according to your advice. But how to remove the unused functions in system library(maybe compile the system library without --funciton-sections) when linking program.
Best regards. 2008-06-02 jian 发件人: Nick Clifton 发送时间: 2008-06-02 15:08:08 收件人: jian 抄送: bug-binutils 主题: Re: Ask for helping about LD linker Hi Jian, > Excuse me,I don't know how to remove unused functions and variable when > linking ELF. Compile your program with --function-sections. Link your program with -Wl,--gc-sections. Note: This feature is not implemented for all targets. If it does not work for you then it may be that the target you are working with is one of the unsupported targets. Cheers Nick
_______________________________________________ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils