diff options
author | Ian Lance Taylor <ian@airs.com> | 2009-12-31 01:57:55 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 2009-12-31 01:57:55 +0000 |
commit | fc59c57250878209dbcacd68712643d88b1c7adc (patch) | |
tree | e118bf36e60d29e554aa23c914a510c9c50998fe /gold/options.h | |
parent | 1c74fab0d1fd52933617779be761ce2cc860fa31 (diff) | |
download | gdb-fc59c57250878209dbcacd68712643d88b1c7adc.zip gdb-fc59c57250878209dbcacd68712643d88b1c7adc.tar.gz gdb-fc59c57250878209dbcacd68712643d88b1c7adc.tar.bz2 |
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.
Diffstat (limited to 'gold/options.h')
-rw-r--r-- | gold/options.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gold/options.h b/gold/options.h index d8f5fb9..872d142 100644 --- a/gold/options.h +++ b/gold/options.h @@ -819,6 +819,10 @@ class General_options N_("Add DIR to link time shared library search path"), N_("DIR")); + DEFINE_optional_string(sort_common, options::TWO_DASHES, '\0', NULL, + N_("Sort common symbols by alignment"), + N_("[={ascending,descending}]")); + DEFINE_bool(strip_all, options::TWO_DASHES, 's', false, N_("Strip all symbols"), NULL); DEFINE_bool(strip_debug, options::TWO_DASHES, 'S', false, |