aboutsummaryrefslogtreecommitdiff
path: root/ld/ld.h
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2008-05-31 16:35:56 +0000
committerNick Clifton <nickc@redhat.com>2008-05-31 16:35:56 +0000
commitde7dd2bdee702cd4a187c09427bd42b7eee239ec (patch)
tree40d84aa2c577867c71021aeb9f0ddc5bc74c6614 /ld/ld.h
parentc7eb6be45e424188fd6f1035ca747f4295f2588c (diff)
downloadgdb-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.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/ld/ld.h b/ld/ld.h
index 69371df..43a4ba2 100644
--- a/ld/ld.h
+++ b/ld/ld.h
@@ -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;