gold patch committed: Don't crash if only TLS symbol is undefined

Ian Lance Taylor iant@google.com
Sat Jul 9 05:11:00 GMT 2011


This gold patch slightly extends the last patch to avoid crashing if the
only TLS symbol in the link is an undefined reference.  Committed to
mainline.

Ian


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

	PR gold/11317
	* target-reloc.h (issue_undefined_symbol_error): New inline
	function, broken out of relocate_section.
	(relocate_section): Call issue_undefined_symbol_error.
	* i386.cc (Target_i386::Relocate::relocate_tls): Don't crash if
	there is no TLS segment if we are about to issue an undefined
	symbol error.
	* 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: 8952 bytes
Desc: patch
URL: <https://sourceware.org/pipermail/binutils/attachments/20110709/1c403265/attachment.bin>


More information about the Binutils mailing list