diff options
author | Nick Clifton <nickc@redhat.com> | 2008-05-31 16:35:56 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2008-05-31 16:35:56 +0000 |
commit | de7dd2bdee702cd4a187c09427bd42b7eee239ec (patch) | |
tree | 40d84aa2c577867c71021aeb9f0ddc5bc74c6614 /ld/ld.h | |
parent | c7eb6be45e424188fd6f1035ca747f4295f2588c (diff) | |
download | gdb-de7dd2bdee702cd4a187c09427bd42b7eee239ec.zip gdb-de7dd2bdee702cd4a187c09427bd42b7eee239ec.tar.gz gdb-de7dd2bdee702cd4a187c09427bd42b7eee239ec.tar.bz2 |
PR ld/6430
* testsuite/ld-elfcomm/elfcomm.exp (test_sort_common): Test the
ascending/descending argument to the --sort-common command line
option.
* testsuite/ld-elfcomm/sort-common.s: New file.
* ld.h (enum sort_order): New.
* ldlang.c (lang_check: Fix comment.
(lang_common): Sort commons in ascending or descending order.
(lang_one_common): Likewise.
* lexsup.c (ld_options): Have --sort-common take an option
argument.
(parse_args): Handle argument to --sort-common.
* ld.texinfo (--sort-common): Document new optional argument.
* NEWS: Mention new feature.
Diffstat (limited to 'ld/ld.h')
-rw-r--r-- | ld/ld.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -99,6 +99,8 @@ typedef struct name_list { } name_list; +typedef enum {sort_none, sort_ascending, sort_descending} sort_order; + /* A wildcard specification. */ typedef enum { @@ -265,7 +267,7 @@ typedef struct { /* If TRUE, warning messages are fatal */ bfd_boolean fatal_warnings; - bfd_boolean sort_common; + sort_order sort_common; bfd_boolean text_read_only; |