This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
On Mon, Nov 24, 2008 at 03:19:32PM +0800, Pan ruochen wrote:Can LD give warnings about the non-static functions defined but never used explicitly? I want to optimize the code size by removing those unused functions.
No, but if you compile with -ffunction-sections -fdata-sections and link with -gc-sections, ld will trim off the unused functions for you.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |