[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/6478] stab warnings cause linker errors
From: |
ian at airs dot com |
Subject: |
[Bug ld/6478] stab warnings cause linker errors |
Date: |
14 May 2008 13:28:12 -0000 |
------- Additional Comments From ian at airs dot com 2008-05-14 13:28 -------
Subject: Re: stab warnings cause linker errors
Nick Clifton <address@hidden> writes:
> 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...
If I understand what you are getting at, that's how warning symbols
work. Look at MWARN in linker.c. It creates a new symbol, and sets
u.i.link to point to the existing symbol. Perhaps some list somewhere
is still pointing at the old symbol.
--
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.