This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
This patch changes gold to return exit status 2 when we need to fallback to --incremental-full, but --incremental-update was used or it's too late to switch modes. This allows the build system to rerun the full link automatically (useful if it is sending only a subset of input files to a remote build machine for an incremental update). OK? -cary 2011-05-02 Cary Coutant <ccoutant@google.com> * common.cc (Symbol_table::do_allocate_commons_list): Call gold_fallback. * errors.cc (Errors::fatal): Adjust call to gold_exit. (Errors::fallback): New function. (gold_fallback): New function. * errors.h (Errors::fallback): New function. * gold.cc (gold_exit): Change status parameter to enum; adjust all callers. (queue_initial_tasks): Call gold_fallback. * gold.h: Include cstdlib. (Exit_status): New enum type. (gold_exit): Change status parameter to enum. (gold_fallback): New function. * layout.cc (Layout::set_section_offsets): Call gold_fallback. (Layout::create_symtab_sections): Likewise. (Layout::create_shdrs): Likewise. * main.cc (main): Adjust call to gold_exit. * output.cc (Output_section::add_input_section): Call gold_fallback. (Output_section::add_output_section_data): Likewise. (Output_segment::set_section_list_addresses): Likewise. * output.h (Output_data_got::add_got_entry): Likewise. (Output_data_got::add_got_entry_pair): Likewise. * x86_64.cc (Output_data_plt_x86_64::add_entry): Likewise.
Attachment:
incr-patch-21.txt
Description: Text document
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |