gold patch committed: Remove assertion

Ian Lance Taylor iant@google.com
Mon Sep 12 17:36:00 GMT 2011


This patch to gold removes an incorrect assertion.  The assertion was
intended to ensure that the linker read the local symbols when
processing an object with a .eh_frame section, as the local symbols are
required for .eh_frame merging.  However, this test fails if the object
has no symbols at all.  Since that is a valid input file, the linker
should not assert.  The problem is easy to fix by removing the
assertion.  Committed to mainline.

Ian


2011-09-12  Ian Lance Taylor  <iant@google.com>

	* object.cc (Sized_relobj_file::do_layout): Remove assertion which
	triggered if object has no symbols.


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


More information about the Binutils mailing list