http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56783



--- Comment #6 from Dick Guertin <dick.guertin at gmail dot com> 2013-03-29 
21:19:47 UTC ---

(In reply to comment #5)

> (In reply to comment #4)

> > 

> > Johanathan, 4.2 was NOT a typo.  That was the version of g++ that came with

> > Snow Leopard.  It was failing.  I replaced it by version 4.7 obtained from

> > SourceForge, and it fails in EXACTLY the same way.

> 

> Then the problem is unlikely to be GCC.  I'm fairly sure Apple's modified GCC

> 4.2 should work with their own OS and linker.  Maybe the problem is with your

> GDB version, which you haven't stated.

> 

> > Therefore, the linker must be adding the "signatures" to the linked module,

> > probably by reading the object decks AND the source files.  But that only 
> > seems

> > to be happening with g++ 4.0.1 and associated linker.  The linker with 
> > versions

> > 4.2 and higher must have revised linkers that DO NOT create the 
> > "signatures".

> 

> GCC doesn't have an associated linker, it is using the Apple linker that comes

> with the OS.



First, my apology for not giving the gdp version.  I assume you meant this:

GNU gdb 6.3.50-20050815 (Apple version gdb-1515) (Sat Jan 15 08:33:48 UTC 2011)



Next, let me point out that this gdb works correctly with source modules

compiled and linked on Tiger with g++ 4.0.1 and Mac OS X 10.4.11.  It also

worked on Leopard, system 10.5.  But it now fails with the same sources

compiled and link with g++ 4.2 or higher on Mac OS X 10.6.  Therefore, it must

be the Apple linker because if I use "vi" to view a linked module, I find path

information to sources in the OS 10.4 system, but paths to objects in the 10.6

system.  If gdb reads the 10.4 linked module, it then reads the sources and

constructs the symbol-table with signatures.  But if gdb reads the 10.6 linked

modules, all it finds are references to the objects, which do NOT carry the

signature information.



So, I'm forced to agree with you,  Unfortunately, Apple says they won't "fix"

it in Snow Leopard (10.6), which is where the linker resides.  Bummer.

Reply via email to