Internal Error in GDB (was: ld includes entire archive (.a) when compiling .elf file)
Josh Keller
jkeller@keytechinc.com
Fri Apr 7 14:17:00 GMT 2006
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]
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
> 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
More information about the Binutils
mailing list