This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: ld includes entire archive (.a) when compiling .elf file
- From: Daniel Jacobowitz <drow at false dot org>
- To: Josh Keller <jkeller at keytechinc dot com>
- Cc: binutils at sourceware dot org, Reuben Johnston <rjohnston at keytechinc dot com>
- Date: Fri, 10 Mar 2006 18:43:10 -0500
- Subject: Re: ld includes entire archive (.a) when compiling .elf file
- References: <E736F3E26DE59146A2343541510255B56D22A6@mercury.keytechinc.com>
On Fri, Mar 10, 2006 at 06:08:53PM -0500, Josh Keller wrote:
> How will specifying the start of execution with (-e) remove the uncalled
> functions and unused variables? Does the ld linker even have the
> capability to automatically remove uncalled functions without having to
> specify each used section? I'm sorry if I sound really confused, I'm
> pretty new to this. Thanks for your patience.
No, you need that to prevent the linker from removing everything.
--
Daniel Jacobowitz
CodeSourcery