gold patch committed: Implement --sort-common

Ian Lance Taylor iant@google.com
Thu Dec 31 01:58:00 GMT 2009


PR 10931 points out that gold does not implement the --sort-common
option.  Fixed with this patch.  Committed to mainline.

Ian


2009-12-30  Ian Lance Taylor  <iant@google.com>

	PR 10931
	* options.h (class General_options): Add --sort-common option.
	* symtab.h (class Symbol_table): Define Sort_commons_order enum.
	* common.cc (Sort_common): Add sort_order parameter to
	constructor.  Add sort_order_ field.
	(Sort_commons::operator): Check sort_order_.
	(Symbol_table::allocate_commons): Determine the sort order.
	(Symbol_table::do_allocate_commons): Add sort_order parameter.
	Change all callers.
	(Symbol_table::do_allocate_commons_list): Likewise.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: foo.patch
Type: text/x-diff
Size: 8258 bytes
Desc: sort-common
URL: <https://sourceware.org/pipermail/binutils/attachments/20091231/ebf3f61d/attachment.bin>


More information about the Binutils mailing list