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]

RE: ld includes entire archive (.a) when compiling .elf file


Hehe, yeah, it made an empty binary.  I will put in the appropriate switches and post my results.
-Josh



-----Original Message-----
From: Daniel Jacobowitz [mailto:drow@false.org]
Sent: Fri 3/10/2006 6:43 PM
To: Josh Keller
Cc: binutils@sourceware.org; Reuben Johnston
Subject: Re: ld includes entire archive (.a) when compiling .elf file
 
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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]