Skip to content
Snippets Groups Projects
  1. Jan 01, 2023
  2. Jan 02, 2022
    • Alan Modra's avatar
      Update year range in copyright notice of binutils files · a2c58332
      Alan Modra authored
      The result of running etc/update-copyright.py --this-year, fixing all
      the files whose mode is changed by the script, plus a build with
      --enable-maintainer-mode --enable-cgen-maint=yes, then checking
      out */po/*.pot which we don't update frequently.
      
      The copy of cgen was with commit d1dd5fcc38ead reverted as that commit
      breaks building of bfp opcodes files.
      a2c58332
  3. Mar 20, 2021
    • Cary Coutant's avatar
      Use stdout when printing object file names for -t option. · 35891b47
      Cary Coutant authored
      gold/
      	PR gold/27615
      	* errors.cc (Errors::trace): New method.
      	(gold_trace): New function.
      	* errors.h (Errors::trace): New method.
      	* gold.h (gold_trace): New function.
      	* object.cc (Input_objects::add_object): Use gold_trace to print
      	object file names.
      35891b47
  4. Jan 01, 2021
  5. Jan 01, 2020
  6. Jan 01, 2019
  7. Jan 03, 2018
  8. Jan 02, 2017
  9. Mar 22, 2016
    • Cary Coutant's avatar
      Fix problem where gold fails to issue an undefined symbol error during LTO. · 648c5cbb
      Cary Coutant authored
      During LTO, if (1) an IR file contains a COMDAT group that is kept,
      (2) a later non-claimed file contains the same group, which we discard,
      and (3) the plugin fails to provide a definition of the symbols in that
      COMDAT group, gold silently resolves any references to those symbols
      to 0.
      
      This patch adds a check for a placeholder symbol when deciding
      whether to issue an undefined symbol error. It also adds an extra
      note after any undefined placeholder symbol error that explains
      that a definition was expected from the plugin.
      
      gold/
      	PR gold/19842
      	* errors.cc (Errors::undefined_symbol): Add info message when
      	symbol should have been provided by a plugin.
      	* target-reloc.h (issue_undefined_symbol_error): Check for
      	placeholder symbols defined in discarded sections.
      	* testsuite/Makefile.am (plugin_test_9b): New test case.
      	* testsuite/Makefile.in: Regenerate.
      	* testsuite/plugin_test_9b_elf.cc: New test source file.
      	* testsuite/plugin_test_9b_ir.cc: New test source file.
      648c5cbb
  10. Jan 01, 2016
  11. Jan 01, 2015
  12. Mar 05, 2014
  13. Feb 06, 2014
    • Cary Coutant's avatar
      Fix issues with gold undefined symbol diagnostics. · 1a221d3d
      Cary Coutant authored
      PR binutils/15435 complains that gold issues a visibility error for an
      weak undefined symbol with hidden visibility. The message should be
      suppressed if the symbol is a weak undef.
      
      An earlier patch to add an extra note about key functions when a class's
      vtable symbol is undefined missed a case where the reference to the
      vtable came from a shared library. This patch moves the check to a
      lower-level routine that catches both cases.
      
      gold/
      
      2014-02-05  Cary Coutant  <ccoutant@google.com>
      
      	* errors.cc (Errors::undefined_symbol): Move undef vtable symbol
      	check to here.
      	* target-reloc.h (is_strong_undefined): New function.
      	(relocate_section): Move undef vtable symbol check from here.
      	Check for is_strong_undefined.
      1a221d3d
  14. Jun 08, 2011
    • Cary Coutant's avatar
      * common.cc (Symbol_table::do_allocate_commons_list): Call · e6455dfb
      Cary Coutant authored
      	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.
      e6455dfb
  15. Apr 18, 2011
  16. Jan 07, 2010
    • Ian Lance Taylor's avatar
      PR 10980 · dc3f80fe
      Ian Lance Taylor authored
      	* options.h (class General_options): Add --warn-unresolved-symbols
      	and --error-unresolved-symbols.
      	* errors.cc (Errors::undefined_symbol): Implement
      	--warn-unresolved-symbols.
      dc3f80fe
  17. Dec 14, 2009
  18. Dec 11, 2009
  19. Mar 24, 2009
    • Ian Lance Taylor's avatar
      2009-03-23 Ian Lance Taylor <iant@google.com> · 7f055c20
      Ian Lance Taylor authored
      	* 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.
      7f055c20
  20. Feb 06, 2009
    • Chris Demetriou's avatar
      2009-02-06 Chris Demetriou <cgd@google.com> · f073bbf7
      Chris Demetriou authored
      	* 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.
      f073bbf7
  21. Apr 18, 2008
    • Cary Coutant's avatar
      * errors.cc (Errors::info): New function. · c5818ff1
      Cary Coutant authored
      	(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.
      c5818ff1
  22. Apr 09, 2008
  23. Mar 13, 2008
  24. Jan 07, 2008
  25. Nov 22, 2007
  26. Nov 15, 2007
  27. Oct 14, 2007
Loading