Guile: add value-{rvalue-,}reference-value
[binutils-gdb.git] / gold / ChangeLog
index 8ec7014b2a984975f5c18d6030abc57a23549c97..82dae337bb369b68f9e2d6c4cd9931fcd194d804 100644 (file)
-2019-09-20  Alan Modra  <amodra@gmail.com>
-
-       * powerpc.cc (Target_powerpc::Scan::check_non_pic): Move REL24
-       to 32-bit supported.
-
-2019-09-18  Simon Marchi  <simon.marchi@polymtl.ca>
-
-       * testsuite/Makefile.in: Re-generate.
-
-2019-09-09  Phil Blundell  <pb@pbcl.net>
-
-       binutils 2.33 branch created.
-
-2019-08-16  Martin Liska  <mliska@suse.cz>
-
-       PR ld/24912
-       * object.cc (big_endian>::do_layout): Do not report error,
-       but only set a flag.
-       (big_endian>::do_add_symbols): Report error only for when
-       relocatable.
-
-2019-08-02  Alan Modra  <amodra@gmail.com>
-
-       * powerpc.cc (Target_powerpc::Scan::get_reference_flags): Set
-       flags for new relocations, and some missing older relocs.
-       (Target_powerpc::Scan::local): Handle new pcrel tls relocs.
-       Call set_has_static_tls for tprel relocs.
-       (Target_powerpc::Scan::global): Likewise.
-       (Target_powerpc::Relocate::relocate): Handle new pcrel tls relocs.
-
-2019-08-02  Alan Modra  <amodra@gmail.com>
-
-       * powerpc.cc (Powerpc_relocate_functions::rela, rela_ua): Perform
-       signed right shift for signed overflow check.
-
-2019-07-29  Martin Liska  <mliska@suse.cz>
-
-       PR 24768
-       * layout.h (class Layout): Add is_lto_slim_object and
-       set_lto_slim_object.
-       * object.cc (struct lto_section): Add lto_slim_object_.
-       (big_endian>::do_layout): Parse content of
-       .gnu_lto_.lto section.
-       (big_endian>::do_add_symbols): Report error for a missing
-       LTO plugin.
-
-2019-07-13  Alan Modra  <amodra@gmail.com>
-
-       * powerpc.cc (xlate_pcrel_opt): New function.
-       (Target_powerpc::Relocate::relocate): Optimise PCREL34 and
-       GOT_PCREL34 sequences marked with PCREL_OPT.
-
-2019-07-13  Alan Modra  <amodra@gmail.com>
-
-       * powerpc.cc (Powerpc_relobj::make_got_relative): New function.
-       (relative_value_is_known): New functions.
-       (Target_powerpc::Relocate::relocate): Edit code using
-       GOT16_HA, GOT16_LO_DS, and GOT_PCREL34 relocs.
-
-2019-07-13  Alan Modra  <amodra@gmail.com>
-
-       * powerpc.cc (Target_powerpc): Add powerxx_stubs_ and accessor
-       functions.
-       (Target_powerpc::maybe_skip_tls_get_addr_call): Handle PLT_PCREL34
-       and PLT_PCREL34_NOTOC relocs.
-       (Powerpc_relocate_functions): Add addr34, addr34_hi, addr34_ha,
-       addr28, addr16_higher34, addr16_highera34, addr16_highest34,
-       addr16_highest34a functions.
-       (li_11_0, ori_11_11_0, sldi_11_11_34): Define.
-       (paddi_12_pc, pld_12_pc, pnop): Define.
-       (d34, ha34): New inline functions.
-       (Stub_table::add_plt_call_entry): Handle powerxx_stubs.
-       (Stub_table::add_eh_frame): Likewise.
-       (build_powerxx_offset): New function.
-       (Stub_table::plt_call_size): Handle powerxx_stubs.
-       (Stub_table::branch_stub_size): Likewise.
-       (Stub_table::do_write): Likewise.
-       (Target_powerpc::Scan::get_reference_flags): Handle new relocs.
-       (Target_powerpc::Scan::reloc_needs_plt_for_ifunc: Likewise.
-       (Target_powerpc::Scan::local, global, relocate): Likewise.
-
-2019-07-13  Alan Modra  <amodra@gmail.com>
-
-       * ehframe.cc (Fde::operator==): Delete.
-       (Cie::remove_fde): Delete.
-       (Eh_frame::remove_ehframe_for_plt): Delete fde_data and fde_length
-       parameters.  Remove all post-map plt FDEs.
-       * ehframe.h (Fde:post_map): Make const, add variant to compare plt.
-       (Fde::operator==): Delete.
-       (Cie::remove_fde): Implement here.
-       (Cie::last_fde): New accessor.
-       (Eh_frame::remove_ehframe_for_plt): Update prototype.
-       * layout.cc (Layout::remove_eh_frame_for_plt): Delete fde_data and
-       fde_length parameters.
-       * layout.h (Layout::remove_eh_frame_for_plt): Update prototype.
-       * powerpc.cc (Stub_table::tls_get_addr_opt_bctrl_): Delete.
-       (Stub_table::plt_fde_len_, plt_fde_, init_plt_fde): Delete.
-       (Stub_table::add_plt_call_entry): Don't set tls_get_addr_opt_bctrl_.
-       (eh_advance): New function.
-       (stub_sort): New function.
-       (Stub_table::add_eh_frame): Emit eh_frame for notoc plt calls and
-       branches as well as __tls_get_addr_opt plt call stub.
-       (Stub_table::remove_eh_frame): Update to suit.
-
-2019-07-13  Alan Modra  <amodra@gmail.com>
-
-       * powerpc.cc (Target_powerpc::maybe_skip_tls_get_addr_call): Handle
-       notoc calls.
-       (is_branch_reloc): Template on size.  Return true for REL24_NOTOC.
-       Update all callers.
-       (max_branch_delta): Likewise.
-       (Target_powerpc::Branch_info::make_stub): Add a stub for notoc
-       calls to functions needing a valid toc pointer.
-       (Target_powerpc::do_relax): Layout stubs again if any need resize.
-       (add_12_11_12, addi_12_11, addis_12_11, ldx_12_11_12, ori_12_12_0),
-       (oris_12_12_0, sldi_12_12_32): Define.
-       (Stub_table::Plt_stub_ent): Add notoc_ and iter_ fields.
-       (Stub_table::Branch_stub_key, Branch_stub_key_hash): Rename from
-       Branch_stub_ent and Branch_stub_ent hash.  Remove save_res_ from key.
-       (Stub_table::Branch_stub_ent): New struct.
-       (class Stub_table): Add need_resize and resizing vars.
-       (Stub_table::need_resize, branch_size): New accessors.
-       (Stub_table::set_resizing): New function.
-       (Stub_table::add_plt_call_entry): Handle notoc calls and resizing
-       on seeing such or a tocsave stubs after a normal stub using the
-       same sym.
-       (Stub_table::add_long_branch_entry): Similarly.
-       (Stub_table::find_long_branch_entry): Return a Branch_stub_ent*.
-       (Stub_table::define_stub_syms): Adjust
-       (Stub_table::build_tls_opt_head, build_tls_opt_tail): New functions.
-       (build_notoc_offset): New function.
-       (Stub_table::plt_call_size): Move out of line.  Handle notoc calls.
-       (Stub_table::branch_stub_size): Similarly.
-       (Stub_table::do_write): Separate loop for ELFv2 stubs, handling
-       notoc calls.  Simplify ELFv1 loop.  Output notoc branch stubs.
-       Use build_tls_opt_head and build_tls_opt_tail.
-       (Target_powerpc::Scan::get_reference_flags): Handle REL24_NOTOC.
-       (Target_powerpc::Scan::reloc_needs_plt_for_ifunc): Likewise,
-       and PLTSEQ_NOTOC and PLTCALL_NOTOC.
-       (Target_powerpc::Scan::local, global, relocate): Likewise.
-
-2019-06-28  Alan Modra  <amodra@gmail.com>
-
-       * powerpc.cc (Target_powerpc::Relocate::relocate): Don't look
-       at next/previous reloc when relnum is -1.
-
-2019-06-28  Alan Modra  <amodra@gmail.com>
-
-       * powerpc.cc (Stub_table::plt_error): New function.
-       (Stub_table::do_write): Use it.
-       (Output_data_glink::do_write): Don't segfault emitting linkage
-       table error.
-
-2019-06-28  Alan Modra  <amodra@gmail.com>
-
-       * powerpc.cc (Target_powerpc::Scan::get_reference_flags): Handle
-       REL16_HIGH* relocs.
-       (Target_powerpc::Scan::local): Likewise.
-       (Target_powerpc::Scan::global): Likewise.
-       (Target_powerpc::Relocate::relocate): Likewise.
-
-2019-06-10  Martin Liska  <mliska@suse.cz>
-
-       * errors.h: Include string.
-
-2019-05-10  Joshua Oreman  <oremanj@hudson-trading.com>
-
-       PR gold/21066
-       * gc.h (gc_process_relocs): Track relocations in .eh_frame sections
-       when ICF is enabled, even though the .eh_frame sections themselves
-       are not foldable.
-       * icf.cc (get_section_contents): Change arguments to permit operation
-       on just part of a section. Include extra identity regions in the
-       referring section's contents recursively.
-       (match_sections): Lock object here instead of in get_section_contents
-       so that get_section_contents can operate recursively.
-       (Icf::add_ehframe_links): New method.
-       (Icf::find_identical_sections): Pass .eh_frame sections to
-       add_ehframe_links(). Increase default iteration count from 2 to 3
-       because handling exception info typically requires one extra iteration.
-       * icf.h (Icf::extra_identity_list_): New data member with accessor.
-       (is_section_foldable_candidate): Include .gcc_except_table sections.
-       * options.h: Update documentation for new default ICF iteration count.
-       * testsuite/Makefile.am (icf_test_pr21066): New test case.
-       * testsuite/Makefile.in: Regenerate.
-       * testsuite/icf_test_pr21066.cc: New source file.
-       * testsuite/icf_test_pr21066.sh: New test script.
-
-2019-02-19  Egeyar Bagcioglu  <egeyar.bagcioglu@oracle.com>
-
-     PR gold/23870
-     * aarch64.cc (Target_aarch64::Scan::global): Check if a symbol with
-     R_AARCH64_MOVW_.ABS_* relocations requires a PLT entry.
-     * testsuite/Makefile.am: Add aarch64_pr23870 test case.
-     * testsuite/Makefile.in: Regenerate.
-     * testsuite/aarch64_pr23870_bar.c: New file.
-     * testsuite/aarch64_pr23870_foo.c: New file.
-     * testsuite/aarch64_pr23870_main.S: New file.
-
-2019-02-12  Nick Clifton  <nickc@redhat.com>
+2021-03-30  Alan Modra  <amodra@gmail.com>
+
+       PR gold/27625
+       * powerpc.cc (Powerpc_relobj): Add no_tls_marker_, tls_marker_,
+       and tls_opt_error_ variables and accessors.
+       (Target_powerpc::Scan::local, global): Call set_tls_marker and
+       set_no_tls_marker for GD and LD code sequence relocations.
+       (Target_powerpc::Relocate::relocate): Downgrade the "lacks marker
+       reloc" error to a warning when safe to do so, and omit the error
+       entirely if not optimising TLS sequences.  Do not optimise GD and
+       LD sequences for objects lacking marker relocs.
+       (Target_powerpc::relocate_relocs): Heed no_tls_marker here too.
+
+2021-03-19  Cary Coutant  <ccoutant@gmail.com>
+
+       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.
+
+2021-03-19  Cary Coutant  <ccoutant@gmail.com>
+
+       PR gold/pr23870
+       * testsuite/aarch64_pr23870_bar.c: Return a magic value.
+       * testsuite/aarch64_pr23870_foo.c: Check the magic value and return
+       success or failure.
+
+2021-03-19  Holger Berger  <holger.berger@googlemail.com>
+
+       PR gold/26541
+       * output.cc (gold_fallocate): Use errno when calling system fallocate.
+
+2021-03-19  Cary Coutant  <ccoutant@gmail.com>
+
+       PR gold/26585
+       * main.cc (main): Fix typo in previous patch.
+
+2021-03-19  Duncan Simpson  <dr.duncan.p.simpson@gmail.com>
+
+       PR gold/26585
+       * configure.ac: Add check for mallinfo2.
+       * configure: Regenerate.
+       * config.in: Regenerate from previous commit.
+       * main.cc (main): Use mallinfo2 if available.
+
+2021-03-19  Cary Coutant  <ccoutant@gmail.com>
+
+       PR gold/27246
+       * dwarf_reader.cc (Dwarf_abbrev_table::do_get_abbrev): Handle
+       DW_FORM_implicit_const.
+       (Dwarf_ranges_table::read_ranges_table): Add version parameter;
+       Adjust all callers.  Look for .debug_rnglists section if DWARF 5.
+       (Dwarf_ranges_table::read_range_list_v5): New method.
+       (Dwarf_die::read_attributes): Handle new DWARF 5 DW_FORM codes.
+       (Dwarf_die::skip_attributes): Likewise.
+       (Dwarf_info_reader::do_parse): Support DWARF 5 unit header format.
+       (Dwarf_info_reader::read_3bytes_from_pointer): New method.
+       (Sized_dwarf_line_info::Sized_dwarf_line_info): Initialize
+       str_buffer_, str_buffer_start, reloc_map_, line_number_map_.
+       Look for .debug_line_str section.
+       (Sized_dwarf_line_info::read_header_prolog): Support DWARF 5 prolog.
+       (Sized_dwarf_line_info::read_header_tables): Rename to...
+       (Sized_dwarf_line_info::read_header_tables_v2): ... this.
+       (Sized_dwarf_line_info::read_header_tables_v5): New method.
+       (Sized_dwarf_line_info::process_one_opcode): Insert missing "this->".
+       Change advance_line to signed int64_t.
+       (Sized_dwarf_line_info::read_lines): Add endptr parameter; adjust
+       callers.  Insert missing "this->".
+       (Sized_dwarf_line_info::read_line_mappings): Support DWARF 5.
+       (Sized_dwarf_line_info::do_addr2line): Add debug code.
+       * dwarf_reader.h (Dwarf_abbrev_table::Attribute): Add implicit_const
+       field. Adjust constructor.
+       (Dwarf_abbrev_table::add_sttribute): Add implicit_const parameter.
+       (Dwarf_ranges_table::read_ranges_table): Add version parameter.
+       (Dwarf_ranges_table::read_range_list_v5): New method.
+       (Dwarf_die): Remove unused attr_off field.
+       (Dwarf_info_reader::Dwarf_info_reader): Initialize unit_type_ field.
+       (Dwarf_info_reader::is_type_unit): New method.
+       (Dwarf_info_reader::read_3bytes_from_pointer): New method.
+       (Dwarf_info_reader::read_range_list): Call read_range_list_v5 for
+       DWARF 5 range lists.
+       (Dwarf_info_reader::is_type_unit_): Remove.
+       (Dwarf_info_reader::unit_type_): New field.
+       (Sized_dwarf_line_info::~Sized_dwarf_line_info): Delete
+       str_buffer_start_.
+       (Sized_dwarf_line_info::read_header_tables): Rename to...
+       (Sized_dwarf_line_info::read_header_tables_v2): ... this.
+       (Sized_dwarf_line_info::read_header_tables_v5): New method.
+       (Sized_dwarf_line_info::read_lines): Add endptr parameter.
+       (Sized_dwarf_line_info::Dwarf_line_infoHeader): Add address_size field.
+       (Sized_dwarf_line_info::str_buffer_): New field.
+       (Sized_dwarf_line_info::str_buffer_end_): New field.
+       (Sized_dwarf_line_info::str_buffer_start_): New field.
+       (Sized_dwarf_line_info::end_of_header_length_): New field.
+       (Sized_dwarf_line_info::end_of_unit_): New field.
+
+2021-01-28  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR gold/27246
+       * dwarf_reader.cc (Sized_dwarf_line_info::read_header_prolog):
+       Skip address size and segment selector for DWARF5.
+
+2021-01-19  Alan Modra  <amodra@gmail.com>
+
+       PR 27203
+       * powerpc.cc (do_plt_fde_location): Remove doing_static_link
+       assertion.
+
+2021-01-17  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * testsuite/ifuncmain6pie.c: Remove non-JUMP_SLOT relocations
+       against foo in ifuncmod6.so.
+       * testsuite/ifuncmod6.c: Likewise.
+
+2021-01-14  Nick Clifton  <nickc@redhat.com>
 
        * po/fr.po: Updated French translation.
 
-2019-01-21  Nick Clifton  <nickc@redhat.com>
+2021-01-11  Nick Clifton  <nickc@redhat.com>
 
+       * po/sr.po: Updated Serbian translation.
        * po/uk.po: Updated Ukranian translation.
 
-2019-01-19  Nick Clifton  <nickc@redhat.com>
+2021-01-09  Nick Clifton  <nickc@redhat.com>
 
-       * po/gold.pot: Regenerate.
+       * 2.36 release branch crated.
 
-2018-06-24  Nick Clifton  <nickc@redhat.com>
+2021-01-03  Alan Modra  <amodra@gmail.com>
 
-       2.32 branch created.
+       PR 27140
+       * powerpc.cc (Target_powerpc::Branch_info::make_stub): Only access
+       object->st_other() when 64-bit.
+       (Stub_table::add_long_branch_entry): Ignore "other" when 32-bit.
 
-2019-01-09  Andrew Paprocki  <andrew@ishiboo.com>
+2021-01-01  Nicolas Boulenguez  <nicolas@debian.org>
 
-       * configure: Regenerate.
+       * tilegx.cc: Correct comment spelling.
 
-2019-01-01  Alan Modra  <amodra@gmail.com>
+2021-01-01  Alan Modra  <amodra@gmail.com>
 
        Update year range in copyright notice of all files.
 
-For older changes see ChangeLog-2018
+For older changes see ChangeLog-2020
 \f
-Copyright (C) 2019 Free Software Foundation, Inc.
+Copyright (C) 2021 Free Software Foundation, Inc.
 
 Copying and distribution of this file, with or without modification,
 are permitted in any medium without royalty provided the copyright