|
From: | Nick Clifton |
Subject: | Re: Ask for helping about LD linker |
Date: | Mon, 02 Jun 2008 07:54:06 +0100 |
User-agent: | Thunderbird 1.5.0.12 (X11/20080213) |
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
[Prev in Thread] | Current Thread | [Next in Thread] |