bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/6478] stab warnings cause linker errors


From: nickc at redhat dot com
Subject: [Bug ld/6478] stab warnings cause linker errors
Date: 14 May 2008 09:37:39 -0000

------- Additional Comments From nickc at redhat dot com  2008-05-14 09:37 
-------
Subject: Re:  stab warnings cause linker errors

Hi Vincent,

   (I have not forgotten about this problem, but I am really swamped 
just at the moment).

> However, I'm quite surprised when I look at the b-cvs-elf.o symbol table : 
> the 
> _f symbol is both undefined and defined in the .text segment !

This is because of the stab warning - it creates an undefined reference 
to the symbol that it is warning about.

I did find that if you rearrange your test case so that the declaration 
of _f in b.s occurs before the .stabs directives then the conversion 
will work as well.

The problem seems to be that when the undefined reference to _f occurs 
in b.s before the definition, then when b.o is converted into ELF format 
*two* instances of _f are created, one undefined and one defined, and 
when a.o is linked in it is this undefined instance that is used, not 
the defined one.  I have so far been unable to locate exactly where 
these two instances are created in the BFD library.  But I am working on 
it...

Cheers
   Nick




-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=6478

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]