* ldlex.l: Recognize keyword SORT.
authorIan Lance Taylor <ian@airs.com>
Fri, 15 May 1998 07:29:35 +0000 (07:29 +0000)
committerIan Lance Taylor <ian@airs.com>
Fri, 15 May 1998 07:29:35 +0000 (07:29 +0000)
commit26c7ca95b46ccf6757225c0b9dfa832f530fc23b
treee2661ca761a139f7e1d8d4ba2b9edd36d46ade02
parentf1a0162a2805dadd13b943e386ac9af09e921430
* ldlex.l: Recognize keyword SORT.
* ldgram.y (current_file): Change to struct wildcard_spec.
(%union): Add new fields cname and wildcard.
(wildcard_name, wildcard_spec): New nonterminals.
(file_NAME_list): Use wildcard_spec.
(input_section_spec): Change current_file usage.
* ld.h (struct wildcard_spec): Define.
* ldlang.h (lang_wild_statement_struct): Add new fields
sections_sorted and filenames_sorted.
(lang_add_wild): Update declaration.
* ldlang.c (wild_sort): New static function.
(wild_section): Use wild_sort.
(print_wild_statement): Print sorting information.
(lang_add_wild): Add new parameters sections_sorted and
filenames_sorted.  Change all callers.
* mri.c (mri_draw_tree): Update calls to lang_add_wild.
* scripttempl/elf.sc: Sort .ctors.* and .dtors.* by section name.
* scripttempl/elfd10v.sc: Likewise.
* scripttempl/elfd30v.sc: Likewise.
* scripttempl/elfppc.sc: Likewise.
ld/ChangeLog
ld/ld.h
ld/ldlang.c
ld/scripttempl/elf.sc
ld/scripttempl/elfd10v.sc [new file with mode: 0644]
ld/scripttempl/elfd30v.sc
ld/scripttempl/elfppc.sc