binutils-2.17: --cref broken? Extra warnings and corrupted data
Paul R. Nash
nashpaulr@gmail.com
Tue Jul 18 16:28:00 GMT 2006
On 7/17/06, Alan Modra <amodra@bigpond.net.au> wrote:
> On Mon, Jul 17, 2006 at 03:30:53PM -0700, H. J. Lu wrote:
> > --cref was broken by --as-needed.
>
> Ah. My bug then.
>
> > cref stores the string pointer from
> > a dso. When memory of unused dso is freed, cref reference is corrupted.
One note about this, in reading the bug report for pr/2939 I'm unsure
that the discussed scenario actually matches my test case, but you
guys are the experts. To be clear though, I have not explicitly used
the --as-needed flags in my repro case. In the example H.J. gives in
the bug, the symbol in the "missing from main hash" error message is
still a valid string, so it doesn't fully iilustrate that the pointer
is in fact dangling and in many cases will be a garbage string.
Anyway...just wanted to make sure we're really talking about the same thing. :-)
Thanks all...
-PN
More information about the Binutils
mailing list