-2020-10-13 H.J. Lu <hongjiu.lu@intel.com>
-
- * x86_64.cc (Target_x86_64::Target_x86_64): Initialize
- feature_2_used_, feature_2_needed_ and object_feature_2_used_.
- (Target_x86_64::feature_2_used_): New data member.
- (Target_x86_64::feature_2_needed_): Likewise.
- (Target_x86_64::object_isa_1_used_): Likewise.
- (Target_x86_64::record_gnu_property): Support
- GNU_PROPERTY_X86_COMPAT_ISA_1_USED,
- GNU_PROPERTY_X86_COMPAT_ISA_1_NEEDED,
- GNU_PROPERTY_X86_COMPAT_2_ISA_1_USED,
- GNU_PROPERTY_X86_COMPAT_2_ISA_1_NEEDED,
- GNU_PROPERTY_X86_FEATURE_2_USED and
- GNU_PROPERTY_X86_FEATURE_2_NEEDED.
- (Target_x86_64::merge_gnu_properties): Merge FEATURE_2_USED bits.
- Initialize object_feature_2_used_.
- (Target_x86_64::do_finalize_gnu_properties): Support
- GNU_PROPERTY_X86_FEATURE_2_USED and
- GNU_PROPERTY_X86_FEATURE_2_NEEDED.
- * testsuite/gnu_property_a.S (GNU_PROPERTY_X86_ISA_1_USED): Set
- to 0xc0010002.
- (GNU_PROPERTY_X86_ISA_1_NEEDED): Set to 0xc0008002.
- * testsuite/gnu_property_b.S (GNU_PROPERTY_X86_ISA_1_USED): Set
- to 0xc0010002.
- (GNU_PROPERTY_X86_ISA_1_NEEDED): Set to 0xc0008002.
- * testsuite/gnu_property_c.S (GNU_PROPERTY_X86_ISA_1_USED): Set
- to 0xc0010002.
- (GNU_PROPERTY_X86_ISA_1_NEEDED): Set to 0xc0008002.
- * testsuite/gnu_property_test.sh: Updated.
-
-2020-10-13 H.J. Lu <hongjiu.lu@intel.com>
-
- PR gold/22914
- PR gold/23535
- * layout.cc (Layout::attach_allocated_section_to_segment): Place
- a note section in a PT_NOTE segment with the same alignment. Set
- the alignment of the PT_NOTE segment from the alignment of the
- note section.
- (Layout::create_note): Align the NT_GNU_PROPERTY_TYPE_0 note to 8
- bytes for 64-bit ELF.
- (Layout::segment_precedes): Place segments with larger alignments
- first.
- * output.cc (Output_segment::Output_segment): Initialize align_.
- * output.h (Output_segment): Add align, set_align and align_.
- * testsuite/Makefile.am (gnu_property_test.stdout): Pass -lhSWn
- to $(TEST_READELF).
- (gnu_property_test): Pass --build-id to ld.
- * testsuite/Makefile.in: Regenerated.
- * testsuite/gnu_property_test.sh (check_alignment): New.
- Use check_alignment to check the NT_GNU_PROPERTY_TYPE_0 note
- alignment. Verify that there are 2 PT_NOTE segments.
-
-2020-10-13 H.J. Lu <hongjiu.lu@intel.com>
-
- PR gold/21452
- * x86_64.cc (Scan::local_reloc_may_be_function_pointer): Remove
- check for shared library.
- (Scan::global_reloc_may_be_function_pointer): Remove check for
- shared library and symbol visibility.
- * testsuite/icf_safe_so_test.cc (bar_static): New function.
- (main): Take function address of bar_static and use it.
- * testsuite/icf_safe_so_test.sh (arch_specific_safe_fold): Also
- check fold on x86-64. Check bar_static isn't folded.
-
-2020-10-13 H.J. Lu <hongjiu.lu@intel.com>
-
- * icf.cc (Icf::find_identical_sections): Skip zero-sized sections.
-
-2020-10-09 Alan Modra <amodra@gmail.com>
-
- * powerpc.cc (Powerpc_relobj::do_relocate_sections): Don't do
- local entry offset optimisation for lplt_section.
- (Target_powerpc::Branch_info::make_stub): Don't add local
- entry offset to long branch dest passed to
- add_long_branch_entry. Do pass st_other bits.
- (Stub_table::Branch_stub_ent): Add "other_" field.
- (Stub_table::add_long_branch_entry): Add "other" param, and
- save.
- (Stub_table::branch_stub_size): Adjust long branch offset.
- (Stub_table::do_write): Likewise.
- (Target_powerpc::Relocate::relocate): Likewise.
-
-2020-10-09 Alan Modra <amodra@gmail.com>
-
- * powerpc.cc (is_got_reloc): New function.
- (Target_powerpc::Relocate::relocate): Use it here, exclude GOT
- relocs when looking for stubs.
-
-2020-10-08 H.J. Lu <hongjiu.lu@intel.com>
-
- * testsuite/split_i386.sh: Updated for --split-stack-adjust-size
- default change.
- * testsuite/split_x86_64.sh: Likewise.
-
-2020-10-08 Alan Modra <amodra@gmail.com>
-
- * options.h (split_stack_adjust_size): Default to 0x100000.
-
-2020-09-26 Alan Modra <amodra@gmail.com>
-
- * powerpc.cc (Target_powerpc): Rename power10_stubs_ to
- power10_relocs_.
- (Target_powerpc::set_power10_relocs): New accessor.
- (Target_powerpc::set_power10_stubs): Delete.
- (Target_powerpc::power10_stubs): Adjust.
- (Target_powerpc::has_localentry0): New accessor.
- (ld_0_11): New constant.
- (glink_eh_frame_fde_64v1, glink_eh_frame_fde_64v2): Adjust.
- (glink_eh_frame_fde_64v2_localentry0): New.
- (Output_data_glink::pltresolve_size): Update.
- (Output_data_glink::add_eh_frame): Use localentry0 version eh_frame.
- (Output_data_glink::do_write): Move r2 save to start of ELFv2 stub
- and only emit for has_localentry0. Don't use r2 in the stub.
- (Target_powerpc::Scan::local, global): Adjust for
- set_power10_relocs renaming.
- (Target_powerpc::scan_relocs): Warn and reset plt_localentry0_.
-
-2020-09-24 Alan Modra <amodra@gmail.com>
-
- * powerpc.cc (Target_powerpc::Relocate::relocate): Don't skip
- first insn of __tls_get_addr_opt stub.
-
-2020-08-24 Alan Modra <amodra@gmail.com>
-
- * powerpc.cc (Target_powerpc): Add tprel_opt_ and accessors.
- (Target_powerpc::Scan::local): Sanity check tprel high relocs.
- (Target_powerpc::Scan::global): Likewise.
- (Target_powerpc::Relocate::relocate): Control tprel optimisation
- with tprel_opt_ and enable for 32-bit.
-
-2020-08-12 Nick Clifton <nickc@redhat.com>