gold patch committed: Don't look at uninitialized value

Ian Lance Taylor iant@google.com
Fri Jan 8 22:35:00 GMT 2010


While investigating another bug, I noticed that some code in gold was
looking at an uninitialized variable.  If Layout::layout_eh_frame
returns NULL, it does not set *offset.  I committed this patch to fix
the problem.

Ian


2010-01-08  Ian Lance Taylor  <iant@google.com>

	* object.cc (Sized_relobj::do_layout): Don't get confused if
	layout_eh_frame returns NULL.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: foo.patch
Type: text/x-diff
Size: 975 bytes
Desc: offset
URL: <https://sourceware.org/pipermail/binutils/attachments/20100108/4a3b8e08/attachment.bin>


More information about the Binutils mailing list