aboutsummaryrefslogtreecommitdiff
path: root/ld/ldlang.h
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2001-08-03 01:11:21 +0000
committerAlan Modra <amodra@gmail.com>2001-08-03 01:11:21 +0000
commitb6bf44ba1b497f5cf654851f6c360313b05345f4 (patch)
tree5be7e5d3400049da73ac4aa53d8a966f2baed81f /ld/ldlang.h
parent6b8772f1c70017e6adf2db2db687b692a5dd5416 (diff)
downloadgdb-b6bf44ba1b497f5cf654851f6c360313b05345f4.zip
gdb-b6bf44ba1b497f5cf654851f6c360313b05345f4.tar.gz
gdb-b6bf44ba1b497f5cf654851f6c360313b05345f4.tar.bz2
* ld.texinfo (Input Section Basics): Clarify ordering of output
sections. * ldlang.c (callback_t): Add wildcard_list param. (walk_wild_section): Remove "section" param. Rewrite for lang_wild_statement_type change. Remove unique_section_p test. (walk_wild_file): Remove "section" param. (walk_wild): Remove "section" and "file" params. (lang_gc_wild): Likewise. (wild): Likewise. Modify for lang_wild_statement_type change. (wild_sort): Likewise. Add "sec" param. (gc_section_callback): Likewise. (output_section_callback): Likewise. Do unique_section_p test. (map_input_to_output_sections): Modify call to wild. (lang_gc_sections_1): Likewise. (print_wild_statement): Modify for lang_wild_statement_type change. (lang_add_wild): Replace filename, filenames_sorted param with filespec. Replace section_name, sections_sorted, exclude_filename_list with section_list. * ldlang.h (lang_add_wild): Here too. (lang_wild_statement_type): Replace section_name, sections_sorted, and exclude_filename_list with section_list. * ldgram.y (current_file): Delete. (%union): Add wildcard_list. (file_NAME_list): Set type to wildcard_list. Build a linked list rather than calling lang_add_wild for each entry. (input_section_spec_no_keep): Call lang_add_wild here instead. * ld.h (struct wildcard_list): Declare. * mri.c (mri_draw_tree): Modify to suit new lang_add_wild.
Diffstat (limited to 'ld/ldlang.h')
-rw-r--r--ld/ldlang.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/ld/ldlang.h b/ld/ldlang.h
index 348529a..ad1cf62 100644
--- a/ld/ldlang.h
+++ b/ld/ldlang.h
@@ -257,12 +257,10 @@ typedef struct {
typedef struct lang_wild_statement_struct {
lang_statement_header_type header;
- const char *section_name;
- boolean sections_sorted;
const char *filename;
boolean filenames_sorted;
+ struct wildcard_list *section_list;
boolean keep_sections;
- struct name_list *exclude_filename_list;
lang_statement_list_type children;
} lang_wild_statement_type;
@@ -385,7 +383,7 @@ extern void lang_section_start PARAMS ((const char *, union etree_union *));
extern void lang_add_entry PARAMS ((const char *, boolean));
extern void lang_add_target PARAMS ((const char *));
extern void lang_add_wild
- PARAMS ((const char *, boolean, const char *, boolean, boolean, name_list *));
+ PARAMS ((struct wildcard_spec *, struct wildcard_list *, boolean));
extern void lang_add_map PARAMS ((const char *));
extern void lang_add_fill PARAMS ((int));
extern lang_assignment_statement_type * lang_add_assignment PARAMS ((union etree_union *));