bug-binutils
[Top][All Lists]
Advanced

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

Re: Re: Ask for helping about LD linker


From: jian
Subject: Re: Re: Ask for helping about LD linker
Date: Mon, 2 Jun 2008 16:26:18 +0800

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
 

reply via email to

[Prev in Thread] Current Thread [Next in Thread]