summaryrefslogtreecommitdiff
path: root/gold/errors.cc
Commit message (Collapse)AuthorAgeFilesLines
* * common.cc (Symbol_table::do_allocate_commons_list): CallCary Coutant2011-06-081-1/+23
| | | | | | | | | | | | | | | | | | | | | | | | | 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.
* * object.cc (Relocate_info::location): Simplify location string.Ian Lance Taylor2011-04-181-9/+7
| | | | | | | | * errors.cc (Errors::error_at_location): Don't print program name. (Errors::warning_at_location): Likewise. (Errors::undefined_symbol): Likewise. * testsuite/debug_msg.sh: Update accordingly.
* PR 10980Ian Lance Taylor2010-01-071-6/+18
| | | | | | | * options.h (class General_options): Add --warn-unresolved-symbols and --error-unresolved-symbols. * errors.cc (Errors::undefined_symbol): Implement --warn-unresolved-symbols.
* Revert -Wshadow changes, all changes from:Ian Lance Taylor2009-12-141-3/+3
| | | | | | 2009-12-11 Doug Kwan <dougkwan@google.com> 2009-12-11 Nick Clifton <nickc@redhat.com> * configure.ac: Remove -Wshadow when setting WARN_CXXFLAGS.
* Add -Wshadow to the gcc command line options used when compiling the binutils.Nick Clifton2009-12-111-3/+3
| | | | Fix up all warnings generated by the addition of this switch.
* 2009-03-23 Ian Lance Taylor <iant@google.com>Ian Lance Taylor2009-03-241-5/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * gold-threads.h (class Initialize_lock): Define. * gold-threads.cc (class Initialize_lock_once): Define. (initialize_lock_control): New static variable. (initialize_lock_pointer): New static variable. (initialize_lock_once): New static function. (Initialize_lock::Initialize_lock): Define. (Initialize_lock::initialize): Define. * target-select.h: Include "gold-threads.h". (class Target_selector): Add lock_ and initialize_lock_ fields. Don't define instantiate_target, just declare it. * target-select.cc (Target_selector::Target_selector): Initialize new fields. (Target_selector::instantiate_target): Define. * descriptors.h: Include "gold-threads.h". (class Descriptors): Add initialize_lock_ field. * descriptors.cc (Descriptors::Descriptors): Initialize new field. (Descriptors::open): Use initialize_lock_ field * errors.h (class Errors): Add initialize_lock_ field. * errors.cc (Errors::Errors): Initialize new field. (Errors::initialize_lock): Use initialize_lock_ field. * powerpc.cc (class Target_selector_powerpc): Remove instantiated_target_ field. In do_recognize call instantiate_target rather than do_instantiate_target. In do_instantiate_target just allocate a new target. * sparc.cc (class Target_selector_sparc): Likewise.
* 2009-02-06 Chris Demetriou <cgd@google.com>Chris Demetriou2009-02-061-26/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | * gold.h (gold_undefined_symbol): Change to take only a Symbol pointer and to report location as the file name associated with the symbol. (gold_undefined_symbol_at_location): New function to replace the old gold_undefined_symbol functionality. * target-reloc.h (relocate_section): Update to use gold_undefined_symbol_at_location. * symtab.cc (Symbol_table::warn_about_undefined_dynobj_symbol): Call gold_undefined_symbol function rather than gold_error. * errors.h (Errors::undefined_symbol): Take location as a string, rather than calculating it from a relocation. * errors.cc (Errors::fatal): Print "fatal error:" before the formatted message. (Errors::error, Errors::error_at_location): Print "error: " before the formatted message. (Errors::undefined_symbol): Take location as a string, rather than calculating it from a relocation. (gold_undefined_symbol_at_location): New function akin to old gold_undefined_symbol, calculates location from relocation. (gold_undefined_symbol): Change to take only a Symbol pointer and to report location as the file name associated with the symbol. * testsuite/debug_msg.sh: Update for changed error messages. * testsuite/undef_symbol.sh: Likewise.
* * errors.cc (Errors::info): New function.Cary Coutant2008-04-171-0/+20
| | | | | | | | | | | | | | | | | | | | (gold_info): New function. * errors.h (Errors::info): New function. * gold.h (gold_info): New function. * object.cc (Input_objects::add_object): Print trace output. * options.cc (options::parse_set): New function. (General_options::parse_wrap): Deleted. (General_options::General_options): Deleted initializer. * options.h (options::String_set): New typedef. (options::parse_set): New function. (DEFINE_set): New macro. (General_options::wrap): Changed to use DEFINE_set. Changed callers of any_wrap_symbols and is_wrap_symbol. (General_options::trace, General_options::trace_symbol): New options. (General_options::any_wrap_symbols, General_options::is_wrap_symbol) (General_options::wrap_symbols_): Deleted. * symtab.cc (Symbol_table::add_from_object): Print trace output.
* * errors.cc (Errors::undefined_symbol): Mention symbol version ifIan Lance Taylor2008-04-091-3/+9
| | | | there is one.
* Update copyright years. Update language files.Ian Lance Taylor2008-03-131-1/+1
|
* Report linker script errors with line numbers. Ignore OUTPUT_FORMATIan Lance Taylor2008-01-071-24/+31
| | | | with three arguments, and ignore OUTPUT_ARCH.
* Add threading support.Ian Lance Taylor2007-11-221-7/+39
|
* From Craig Silverstein: Add support for --demangle.Ian Lance Taylor2007-11-151-1/+1
|
* Run all error handling through an Errors object. Delete output fileIan Lance Taylor2007-10-141-0/+314
on error.