PR gold/12525
[binutils-gdb.git] / gold / ChangeLog
index 7a5c36cf3daaa6b1b419f931023d5f5c0f67e621..c02a174494ee382bb33112b8d0eb6020d323374a 100644 (file)
@@ -1,3 +1,208 @@
+2011-03-08  Ian Lance Taylor  <iant@google.com>
+
+       PR gold/12525
+       * fileread.cc: #include <climits>.
+       (GOLD_IOV_MAX): Define.
+       (File_read::read_multiple): Limit number of entries by iov_max.
+       * fileread.h (class File_read): Always set max_readv_entries to
+       128.
+
+2011-03-07  Ian Lance Taylor  <iant@google.com>
+
+       PR gold/12525
+       * options.h (class General_options): Add -dy and -dn.
+
+2011-03-02  Cary Coutant  <ccoutant@google.com>
+
+       * testsuite/script_test_9.t: Add TLS segment.
+
+2011-03-02  Simon Baldwin  <simonb@google.com>
+
+       * configure.ac: Add check for gnu_indirect_function support in
+       the toolchain building binutils.
+       * configure: Rebuild.
+
+2010-02-18  Rafael Ávila de Espíndola <respindola@mozilla.com>
+
+       * symtab.cc (Symbol::should_add_dynsym_entry) Return false for
+       plugin only symbols.
+       (Symbol_table::sized_finalize_symbol) Mark symbol only present
+       in plugin files as not needed in the symbol table.
+
+2011-02-11  Sriraman Tallam  <tmsriram@google.com>
+
+       * output.cc (Output_section::add_input_section): Delay fill
+       generation for section ordering.
+
+2011-02-09  Ian Lance Taylor  <iant@google.com>
+
+       PR gold/12316
+       * object.h (class Sized_relobj): Remove clear_local_symbols.
+       * reloc.cc (Sized_relobj::do_relocate): Don't call
+       clear_local_symbols.
+
+2010-02-08  Rafael Ávila de Espíndola <respindola@mozilla.com>
+
+       * plugin.cc (is_visible_from_outside): Return true for symbols
+       in the -u option.
+
+2011-02-04  Jeffrey Yasskin  <jyasskin@google.com>
+
+       * symtab.cc (Odr_violation_compare::operator()): Sort by just the
+       filename.
+
+2011-02-02  Sriraman Tallam  <tmsriram@google.com>
+
+       * icf.h (is_section_foldable_candidate): Change type of parameter
+        to std::string.
+       * icf.cc (Icf::find_identical_sections): Change type of local variable
+        section_name to be std::string.
+       (is_function_ctor_or_dtor): Change type of parameter to std::string.
+
+2011-01-25  Ian Lance Taylor  <iant@google.com>
+
+       * script.cc (script_add_extern): Rewrite to use
+       add_symbol_reference.
+
+2011-01-25  Doug Kwan  <dougkwan@google.com>
+
+       * icf.cc (get_section_contents): Always lock section's object.
+
+2011-01-24  Ian Lance Taylor  <iant@google.com>
+
+       * options.h (class General_options): Accept
+       --no-detect-odr-violations.
+
+2011-01-24  Ian Lance Taylor  <iant@google.com>
+
+       * version.cc (version_string): Bump to 1.11.
+
+2011-01-24  Ian Lance Taylor  <iant@google.com>
+
+       * plugin.cc (class Plugin_rescan): Define new class.
+       (Plugin_manager::claim_file): Set any_claimed_.
+       (Plugin_manager::save_archive): New function.
+       (Plugin_manager::save_input_group): New function.
+       (Plugin_manager::all_symbols_read): Create Plugin_rescan task if
+       necessary.
+       (Plugin_manager::new_undefined_symbol): New function.
+       (Plugin_manager::rescan): New function.
+       (Plugin_manager::rescannable_defines): New function.
+       (Plugin_manager::add_input_file): Set any_added_.
+       * plugin.h (class Plugin_manager): define new fields rescannable_,
+       undefined_symbols_, any_claimed_, and any_added_.  Declare
+       Plugin_rescan as friend.  Declare new functions.
+       (Plugin_manager::Rescannable): Define type.
+       (Plugin_manager::Rescannable_list): Define type.
+       (Plugin_manager::Undefined_symbol_list): Define type.
+       (Plugin_manager::Plugin_manager): Initialize new fields.
+       * archive.cc (Archive::defines_symbol): New function.
+       (Add_archive_symbols::run): Pass archive to plugins if any.
+       * archive.h (class Archive): Declare defines_symbol.
+       * readsyms.cc (Input_group::~Input_group): New function.
+       (Finish_group::run): Pass input_group to plugins if any.
+       * readsyms.h (class Input_group): Declare destructor.
+       * symtab.cc (add_from_object): Pass undefined symbol to plugins if
+       any.
+
+2011-01-10  Ian Lance Taylor  <iant@google.com>
+
+       * layout.cc (Layout::layout_eh_frame): Mark a writable .eh_frame
+       section as relro.
+       (Layout::set_segment_offsets): Reset increase_relro before calling
+       set_section_addresses a second time.
+
+2011-01-04  Cary Coutant  <ccoutant@google.com>
+
+       * script-sections.cc (Sort_output_sections::operator()): Sort TLS
+       sections before NOBITS sections.
+
+2011-01-01  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * version.cc (print_version): Update copyright to 2011.
+
+2010-12-23  Cary Coutant  <ccoutant@google.com>
+
+       * output.h (Output_data_reloc::add_output_section): Pass OD instead
+       of OS to this->add.  Add OD parameter to second form of the function.
+
+2010-12-20  Ian Lance Taylor  <iant@google.com>
+
+       * dwarf_reader.cc (Sized_dwarf_line_info::read_lines): Only keep
+       second of two consecutive entries with same offset.
+
+2010-12-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+
+       * testsuite/Makefile.am (ifuncmain2static_LDADD)
+       (ifuncmain2_LDADD, ifuncmain4static_LDADD, ifuncmain4_LDADD)
+       (ifuncmain7static_LDADD, ifuncmain7_LDADD): New empty variables,
+       to avoid unneeded links against $(LDADD).
+       * testsuite/Makefile.in: Regenerate.
+
+2010-12-15  Ian Lance Taylor  <iant@google.com>
+
+       PR gold/12324
+       * x86_64.cc (Target_x86_64::Scan::check_non_pic): Give an error
+       for R_X86_64_32 and R_X86_64_PC32.
+       * testsuite/Makefile.am (ver_matching_def.so): Depend on and use
+       ver_matching_def_pic.o.
+       (ver_matching_def_pic.o): New target.
+
+2010-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+
+       * fileread.cc (file_counts_lock, file_counts_initialize_lock)
+       (total_mapped_bytes, current_mapped_bytes, maximum_mapped_bytes):
+       Move definition before File_read::View member definitions.
+       (File_read::View::~View): Initialize and hold lock before
+       updating current_mapped_bytes.
+
+2010-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+
+       * dwarf_reader.cc: Remove outdated comment.
+       * gold-threads.cc: Fix typo in error message.
+       * archive.cc: Fix typos in comments.
+       * archive.h: Likewise.
+       * arm-reloc-property.cc: Likewise.
+       * arm-reloc-property.h: Likewise.
+       * arm-reloc.def: Likewise.
+       * arm.cc: Likewise.
+       * attributes.h: Likewise.
+       * cref.cc: Likewise.
+       * ehframe.cc: Likewise.
+       * fileread.h: Likewise.
+       * gold.h: Likewise.
+       * i386.cc: Likewise.
+       * icf.cc: Likewise.
+       * incremental.h: Likewise.
+       * int_encoding.cc: Likewise.
+       * layout.h: Likewise.
+       * main.cc: Likewise.
+       * merge.h: Likewise.
+       * object.cc: Likewise.
+       * object.h: Likewise.
+       * options.cc: Likewise.
+       * readsyms.cc: Likewise.
+       * reduced_debug_output.cc: Likewise.
+       * reloc.cc: Likewise.
+       * script-sections.cc: Likewise.
+       * sparc.cc: Likewise.
+       * symtab.h: Likewise.
+       * target-reloc.h: Likewise.
+       * target.cc: Likewise.
+       * target.h: Likewise.
+       * timer.cc: Likewise.
+       * timer.h: Likewise.
+       * x86_64.cc: Likewise.
+
+2010-12-09  Cary Coutant  <ccoutant@google.com>
+
+       * layout.cc (Layout::layout_gnu_stack): Add warnings for executable
+       stack.
+       * layout.h (Layout::layout_gnu_stack): Add pointer to Object
+       parameter; change all callers.
+       * object.cc (Sized_relobj::do_layout): Adjust call to layout_gnu_stack.
+       * options.h (warn_execstack): New option.
+
 2010-12-07  Doug Kwan  <dougkwan@google.com>
 
        * arm.cc (Target_arm::Scan::get_reference_flags): Treat R_ARM_PREL31