------- 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. _______________________________________________ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils