From e6455dfbc2dae8cc91f64b4120e87e138970cf84 Mon Sep 17 00:00:00 2001 From: Cary Coutant Date: Wed, 8 Jun 2011 04:43:28 +0000 Subject: * 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_data_got::add_got_entry): Call gold_fallback. (Output_data_got::add_got_entry_pair): Likewise. (Output_section::add_input_section): Likewise. (Output_section::add_output_section_data): Likewise. (Output_segment::set_section_list_addresses): Likewise. * x86_64.cc (Output_data_plt_x86_64::add_entry): Likewise. --- gold/main.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'gold/main.cc') diff --git a/gold/main.cc b/gold/main.cc index 7ca0d70..7de1b87 100644 --- a/gold/main.cc +++ b/gold/main.cc @@ -291,6 +291,8 @@ main(int argc, char** argv) // If the user used --noinhibit-exec, we force the exit status to be // successful. This is compatible with GNU ld. - gold_exit(errors.error_count() == 0 - || parameters->options().noinhibit_exec()); + gold_exit((errors.error_count() == 0 + || parameters->options().noinhibit_exec()) + ? GOLD_OK + : GOLD_ERR); } -- cgit v1.1