gold 2.20 backport: Don't create unnecessary version symbol

Ian Lance Taylor iant@google.com
Sat Nov 7 02:19:00 GMT 2009


I think Doug's patch to make gold not create an unnecessary version
symbol is appropriate for the 2.20.1 release.  I backported it as
follows.

Ian


2009-11-06  Ian Lance Taylor  <iant@google.com>

	Bring over from mainline:
	2009-10-16  Doug Kwan  <dougkwan@google.com>

	* dynobj.cc (Versions::Versions): Initialize version_script_.
	Only insert base version symbol definition for a shared object
	if version script defines any version versions.
	(Versions::define_base_version): New method definition.
	(Versions::add_def): Check that base version is not needed.
	(Versions::add_need): Define base version lazily.
	* dynobj.h (Versions::define_base_version): New method declaration.
	(Versions::needs_base_version_): New data member declaration.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: foo.patch
Type: text/x-diff
Size: 4565 bytes
Desc: backport
URL: <https://sourceware.org/pipermail/binutils/attachments/20091107/a43f2dc0/attachment.bin>


More information about the Binutils mailing list