gold patch committed: Create output section if script assigns to dot

Ian Lance Taylor iant@google.com
Wed Oct 19 15:53:00 GMT 2011


PR 13163 is about a test case in which a linker script creates a section which
contains nothing but an assignment to dot.  That is enough to cause the GNU
linker to create the output section, but gold was not doing so.  This
later led to
a crash in gold.  This patch fixes the problem by creating an output
section which
does an assignment to dot.  Committed to mainline.

Ian



2011-10-19  Ian Lance Taylor  <iant@google.com>

	PR gold/13163
	* script-sections.cc
	(Output_section_element_dot_assignment::needs_output_section): New
	function.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: foo.patch
Type: text/x-patch
Size: 1299 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20111019/dca3a6d9/attachment.bin>


More information about the Binutils mailing list