This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [gold patch] Fix usage of invalidated version string in Symbol_table::define_special_symbol
- From: Viktor Kutuzov <vkutuzov at accesssoftek dot com>
- To: Ian Lance Taylor <iant at google dot com>
- Cc: Binutils <binutils at sourceware dot org>
- Date: Thu, 22 Sep 2011 13:14:01 -0700
- Subject: Re: [gold patch] Fix usage of invalidated version string in Symbol_table::define_special_symbol
- References: <1316207113.7047.23.camel@dp690-dev5v9.accesssoftek.com>
- Reply-to: <vkutuzov at accesssoftek dot com>
ping
-Viktor
On Fri, 2011-09-16 at 14:05 -0700, Viktor Kutuzov wrote:
> Hi Ian,
>
> I found that the Symbol_table::define_special_symbol method can return a
> pointer to an invalidated version string from the local std::string
> object (v) in case of condition only_if_ref == true. This patch should
> fix this problem.
>
> -Viktor.
>
> * symtab.cc (Symbol_table::define_special_symbol): Fix usage of
> the invalidated version string.