|
From: | Nick Clifton |
Subject: | Re: [Bug ld/6478] stab warnings cause linker errors |
Date: | Wed, 14 May 2008 10:37:08 +0100 |
User-agent: | Thunderbird 1.5.0.12 (X11/20080213) |
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
[Prev in Thread] | Current Thread | [Next in Thread] |