This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: binutils-2.17: --cref broken? Extra warnings and corrupted data


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]