* lexsup.c (parse_args): Add support for new options -( -) with
authorIan Lance Taylor <ian@airs.com>
Thu, 23 Jun 1994 00:36:00 +0000 (00:36 +0000)
committerIan Lance Taylor <ian@airs.com>
Thu, 23 Jun 1994 00:36:00 +0000 (00:36 +0000)
commitcf4245afad703696b6f5f7240a62355e6e510738
tree32e693e86a9d53a81530d953515c1eb4db2517b0
parent2e66a62730944dd7826bfb7d065257c9cc339d8c
* lexsup.c (parse_args): Add support for new options -( -) with
synonyms --start-group --end-group.
* ldlang.h (enum statement_enum): Add lang_group_statement_enum.
(lang_group_statement_type): Define new struct.
(lang_statement_union_type): Add group_statement field.
(lang_enter_group, lang_leave_group): Declare.
* ldlang.c (lang_for_each_statement_worker): Handle
lang_group_statement_enum.
(map_input_to_output_sections, print_statement): Likewise.
(lang_size_sections, lang_do_assignments): Likewise.
(open_input_bfds): Completely rewrite.  Now does its own looping,
rather than using lang_for_each_statement.  Handle groups.
(lang_process): Update call to open_input_bfds.
(print_group): New static function.
(lang_enter_group, lang_leave_group): New static functions.
* ldfile.c (ldfile_open_file): If the file has already been
opened, just return rather than taking an assertion failure.
* ldver.c (help): Mention new options.
* ld.texinfo: Document new options.
ld/ChangeLog