gold patch committed: Error when mixing TLS and non-TLS symbols

Ian Lance Taylor iant@google.com
Sat Jul 9 00:48:00 GMT 2011
PR 12279 points out that gold silently permits linking together TLS and
non-TLS symbols.  This patch adds an error for that case, and avoids
crashing later.  Committed to mainline.

Ian


2011-07-08  Ian Lance Taylor  <iant@google.com>

	PR gold/12279
	* resolve.cc (Symbol_table::should_override): Add fromtype
	parameter.  Change all callers.  Give error when linking together
	TLS and non-TLS symbol.
	(Symbol_table::should_override_with_special): Add fromtype
	parameter.  Change all callers.
	* i386.cc (Target_i386::Relocate::relocate_tls): Don't crash if
	there is no TLS segment if we have reported some errors.
	* x86_64.cc (Target_x86_64::relocate_tls): Likewise.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: foo.patch
Type: text/x-diff
Size: 13350 bytes
Desc: patch
URL: <https://sourceware.org/pipermail/binutils/attachments/20110709/49af0db2/attachment.bin>


More information about the Binutils mailing list