From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2860 invoked by alias); 7 Apr 2006 14:15:40 -0000 Received: (qmail 2833 invoked by uid 22791); 7 Apr 2006 14:15:38 -0000 X-Spam-Check-By: sourceware.org Received: from mail.keytechinc.com (HELO mercury.keytechinc.com) (209.143.109.90) by sourceware.org (qpsmtpd/0.31) with SMTP; Fri, 07 Apr 2006 14:15:36 +0000 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: Internal Error in GDB (was: ld includes entire archive (.a) when compiling .elf file) Date: Fri, 07 Apr 2006 14:17:00 -0000 Message-ID: From: "Josh Keller" To: "Daniel Jacobowitz" Cc: , "Reuben Johnston" Mailing-List: contact binutils-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sourceware.org X-SW-Source: 2006-04/txt/msg00107.txt.bz2 =20 Daniel, for some reason, when I turn on garbage collection, I get the following error (many, many times) when I run gdb: Internal error: pc 0x0 in read in psymtab, but not in symtab. I can still debug my program, but I get these errors all over the place. I saw a thread back in 2002 titled (Internal error in GDB) initially posted by Steven Johnson. I'm not sure what the ultimate resolution was. Any ideas? -Josh -----Original Message----- From: Daniel Jacobowitz [mailto:drow@false.org]=20 Sent: Friday, March 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=20 > uncalled functions and unused variables? Does the ld linker even have > the capability to automatically remove uncalled functions without=20 > having to specify each used section? I'm sorry if I sound really=20 > 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