[gold patch 6/8] Track files added by scripts in incremental info.
Cary Coutant
ccoutant@google.com
Tue Sep 28 19:57:00 GMT 2010
More information about the Binutils mailing list
Tue Sep 28 19:57:00 GMT 2010
- Previous message (by thread): [gold patch 5/8] Add incremental support for --start-lib/--end-lib.
- Next message (by thread): [gold patch 7/8] Restructure Incremental_binary.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
This patch tracks files added from script input files, in order to keep a correlation between files recorded in the incremental info and the input arguments from the command line. -cary * archive.cc (Archive::include_member): Adjust call to report_object. (Add_archive_symbols::run): Add script_info to call to report_archive_begin. (Lib_group::include_member): Adjust call to report_object. (Add_lib_group_symbols::run): Adjust call to report_object. * incremental-dump.cc (dump_incremental_inputs): Remove unnecessary blocks. Add object count for script input files. * incremental.cc (Incremental_inputs::report_archive_begin): Add script_info parameter; change all callers. (Incremental_inputs::report_object): Add script_info parameter; change all callers. (Incremental_inputs::report_script): Store backpointer to incremental info entry. (Output_section_incremental_inputs::set_final_data_size): Record additional information for scripts. (Output_section_incremental_inputs::write_info_blocks): Likewise. * incremental.h (Incremental_script_entry::add_object): New function. (Incremental_script_entry::get_object_count): New function. (Incremental_script_entry::get_object): New function. (Incremental_script_entry::objects_): New data member; adjust constructor. (Incremental_inputs::report_archive_begin): Add script_info parameter. (Incremental_inputs::report_object): Add script_info parameter. (Incremental_inputs_reader::get_object_count): New function. * options.cc (Input_arguments::add_file): Return reference to new input argument. * options.h (Input_argument::set_script_info): New function. (Input_argument::script_info): New function. (Input_argument::script_info_): New data member; adjust all constructors. (Input_file_group::add_file): Return reference to new input argument. (Input_file_lib::add_file): Likewise. (Input_arguments::add_file): Likewise. * readsyms.cc (Add_symbols::run): Adjust call to report_object. * script.cc (Parser_closure::Parser_closure): Add script_info parameter; adjust all callers. (Parser_closure::script_info): New function. (Parser_closure::script_info_): New data member. (read_input_script): Report scripts earlier to incremental info. (script_add_file): Set script_info in Input_argument. (script_add_library): Likewise. * script.h (Script_options::Script_info): Rewrite class. --- gold/archive.cc | 9 ++++--- gold/incremental-dump.cc | 43 ++++++++++++++++---------------------- gold/incremental.cc | 52 +++++++++++++++++++++++++++++++++++++++++---- gold/incremental.h | 42 ++++++++++++++++++++++++++++++++++-- gold/options.cc | 12 +++++----- gold/options.h | 33 ++++++++++++++++++++++------- gold/readsyms.cc | 3 +- gold/script.cc | 46 +++++++++++++++++++++++++--------------- gold/script.h | 20 +++++++++++------ 9 files changed, 184 insertions(+), 76 deletions(-) -------------- next part -------------- A non-text attachment was scrubbed... Name: 6 Type: text/x-patch Size: 20381 bytes Desc: not available URL: <https://sourceware.org/pipermail/binutils/attachments/20100928/02f0ad89/attachment.bin>
- Previous message (by thread): [gold patch 5/8] Add incremental support for --start-lib/--end-lib.
- Next message (by thread): [gold patch 7/8] Restructure Incremental_binary.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Binutils mailing list