[gold patch] Fix usage of invalidated version string in Symbol_table::define_special_symbol

Viktor Kutuzov vkutuzov@accesssoftek.com
Fri Sep 16 21:05:00 GMT 2011


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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: binutils-gold-fix-define_special_symbol.patch
Type: text/x-patch
Size: 1847 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20110916/04ba223e/attachment.bin>


More information about the Binutils mailing list