1 2018-01-26 Alan Modra <amodra@gmail.com>
3 * elflink.c (bfd_elf_define_start_stop): Override symbols when
4 they are defined dynamically.
6 2018-01-26 Alan Modra <amodra@gmail.com>
8 * elf64-ppc.c (ppc64_elf_size_stubs): Iterate sizing when
9 .branch_lt changes size.
11 2018-01-25 Alan Modra <amodra@gmail.com>
14 * elfcode.h (elf_object_p): Avoid integer overflow.
16 2018-01-25 Eric Botcazou <ebotcazou@adacore.com>
19 * elfxx-sparc.c (_bfd_sparc_elf_check_relocs) <R_SPARC_TLS_GD_CALL>:
20 Do a mere lookup of the __tls_get_addr symbol instead of adding it.
23 2017-10-19 H.J. Lu <hongjiu.lu@intel.com>
26 * elfxx-sparc.c (sparc_elf_tls_transition): Replace
27 bfd_link_pic with !bfd_link_executable, !bfd_link_pic with
28 bfd_link_executable for TLS check.
29 (_bfd_sparc_elf_check_relocs): Likewise.
30 (allocate_dynrelocs): Likewise.
31 (_bfd_sparc_elf_relocate_section): Likewise.
33 2018-01-24 Renlin Li <renlin.li@arm.com>
35 * elfnn-aarch64.c (elfNN_aarch64_final_link_relocate): Add support for
36 BFD_RELOC_AARCH64_MOVW_PREL_G0, BFD_RELOC_AARCH64_MOVW_PREL_G0_NC,
37 BFD_RELOC_AARCH64_MOVW_PREL_G1, BFD_RELOC_AARCH64_MOVW_PREL_G1_NC,
38 BFD_RELOC_AARCH64_MOVW_PREL_G2, BFD_RELOC_AARCH64_MOVW_PREL_G2_NC,
39 BFD_RELOC_AARCH64_MOVW_PREL_G3.
40 * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend): Likewise.
41 (_bfd_aarch64_elf_resolve_relocation): Likewise.
43 2018-01-24 Renlin Li <renlin.li@arm.com>
45 * reloc.c: Add BFD_RELOC_AARCH64_MOVW_PREL_G0,
46 BFD_RELOC_AARCH64_MOVW_PREL_G0_NC, BFD_RELOC_AARCH64_MOVW_PREL_G1,
47 BFD_RELOC_AARCH64_MOVW_PREL_G1_NC, BFD_RELOC_AARCH64_MOVW_PREL_G2,
48 BFD_RELOC_AARCH64_MOVW_PREL_G2_NC, BFD_RELOC_AARCH64_MOVW_PREL_G3.
49 * elfnn-aarch64.c (elfNN_aarch64_howto_table): Add entries for
50 BFD_RELOC_AARCH64_MOVW_PREL_G0, BFD_RELOC_AARCH64_MOVW_PREL_G0_NC,
51 BFD_RELOC_AARCH64_MOVW_PREL_G1, BFD_RELOC_AARCH64_MOVW_PREL_G1_NC,
52 BFD_RELOC_AARCH64_MOVW_PREL_G2, BFD_RELOC_AARCH64_MOVW_PREL_G2_NC,
53 BFD_RELOC_AARCH64_MOVW_PREL_G3.
54 * bfd-in2.h: Regenerate.
55 * libbfd.h: Regenerate.
57 2018-01-23 Maciej W. Rozycki <macro@mips.com>
59 * elfxx-mips.c (_bfd_mips_elf_final_link): Update a stale
60 `mips_elf32_section_processing' comment reference.
62 2018-01-20 H.J. Lu <hongjiu.lu@intel.com>
65 * elfxx-x86.c (_bfd_x86_elf_link_check_relocs): Check the
66 versioned __tls_get_addr symbol.
68 2018-01-19 Nick Clifton <nickc@redhat.com>
70 * po/fr.po: Updated French translation.
72 2018-01-18 Alan Modra <amodra@gmail.com>
74 * elf32-ppc.c (ppc_elf_create_glink): Correct alignment of .glink.
75 * elf64-ppc.c (ppc64_elf_size_stubs): Handle negative plt_stub_align.
76 (ppc64_elf_build_stubs): Likewise.
78 2018-01-17 Nick Clifton <nickc@redhat.com>
80 * po/ru.po: Updated Russian translation.
81 * po/uk/po: Updated Ukranian translation.
83 2018-01-17 Alan Modra <amodra@gmail.com>
85 * elf64-ppc.c (ppc64_elf_build_stubs): Silence gcc warning.
87 2018-01-17 Alan Modra <amodra@gmail.com>
89 * elf32-ppc.c (GLINK_ENTRY_SIZE): Handle speculation barrier.
90 (CRSETEQ, BEQCTRM): Define.
91 (is_nonpic_glink_stub): Don't check bctr.
92 (ppc_elf_link_hash_table_create): Init new ppc_elf_params field.
93 (ppc_elf_relax_section): Size speculation barrier.
94 (output_bctr): New function.
95 (write_glink_stub): Use output_bctr.
96 (ppc_elf_relocate_section): Use output_bctr for long branch stub.
97 (ppc_elf_finish_dynamic_symbol): Likewise.
98 (ppc_elf_finish_dynamic_sections): Use output_bctr.
99 * elf32-ppc.h (struct ppc_elf_params): Add speculate_indirect_jumps.
100 * elf64-ppc.c (CRSETEQ, BEQCTRM, BEQCTRLM): Define.
101 (GLINK_PLTRESOLVE_SIZE): Size speculation barrier.
102 (size_global_entry_stubs): Handle speculation barrier sizing.
103 (plt_stub_size): Likewise.
104 (output_bctr): New function.
105 (build_plt_stub, build_tls_get_addr_stub): Output speculation
107 (ppc_build_one_stub): Likewise for ppc_stub_plt_branch.
108 (ppc_size_one_stub): Size speculation barrier in ppc_stub_plt_branch.
109 (build_global_entry_stubs): Output speculation barrier.
110 (ppc64_elf_build_stubs): Likewise in __glink_PLTresolve stub.
111 * elf64-ppc.h (struct ppc64_elf_params): Add speculate_indirect_jumps.
113 2018-01-17 Alan Modra <amodra@gmail.com>
115 * elf32-ppc.c (GLINK_ENTRY_SIZE): Add parameters, handle
116 __tls_get_addr_opt, and alignment sizing.
117 (TLS_GET_ADDR_GLINK_SIZE): Delete.
118 (is_nonpic_glink_stub): Don't use GLINK_ENTRY_SIZE.
119 (ppc_elf_get_synthetic_symtab): Recognize stubs spaced at 4, 6,
121 (ppc_elf_link_hash_table_create): Init new ppc_elf_params field.
122 (allocate_dynrelocs): Use new GLINK_ENTRY_SIZE.
123 (ppc_elf_size_dynamic_sections): Likewise. Size branch table
125 (write_glink_stub): Handle __tls_get_addr_opt stub.
126 Pad out to size given by GLINK_ENTRY_SIZE.
127 (ppc_elf_relocate_section): Adjust write_glink_stub call.
128 (ppc_elf_finish_dynamic_symbol): Likewise.
129 (ppc_elf_finish_dynamic_sections): Write PLTresolve without using
130 insn array since so many need rewriting.
131 * elf32-ppc.h (struct ppc_elf_params): Add plt_stub_align.
132 * elf64-ppc.c (GLINK_PLTRESOLVE_SIZE): Rename from
133 GLINK_CALL_STUB_SIZE. Add htab param and evaluate to size without
134 nops. Adjust all uses.
135 (ppc64_elf_get_synthetic_symtab): Don't use GLINK_CALL_STUB_SIZE
136 in glink_vma calculation.
137 (struct ppc_link_hash_table): Add global_entry section pointer.
138 (create_linkage_sections): Create separate section for global
140 (PPC_LO, PPC_HI, PPC_HA): Move earlier.
141 (size_global_entry_stubs): Handle sizing for aligned stubs.
142 (ppc64_elf_size_dynamic_sections): Handle global_entry alloc,
143 and don't stash end of glink branch table in rawsize.
144 (ppc_build_one_stub): Rewrite stub size calculations.
145 (build_global_entry_stubs): Use new section.
146 (ppc64_elf_build_stubs): Don't pad __glink_PLTresolve with nops.
147 Build lazy link stubs out to end of section. Build global entry
148 stubs in new section.
150 2018-01-15 Nick Clifton <nickc@redhat.com>
152 * po/uk.po: Updated Ukranian translation.
154 2018-01-13 Nick Clifton <nickc@redhat.com>
156 * po/bfd.pot: Regenerated.
158 2018-01-13 Nick Clifton <nickc@redhat.com>
160 * version.m4: Bump version to 2.30.51
161 * configure: Regenerate.
163 2018-01-13 Nick Clifton <nickc@redhat.com>
167 2018-01-12 Jens Widell <jl@opera.com>
169 * elf.c (setup_group): Optimize search for group by remembering
170 last found group and restarting search at that index.
171 * elf-bfd.h (struct elf_obj_tdata): Add group_search_offset field.
173 2018-01-12 Gunther Nikl <gnikl@users.sourceforge.net>
175 * aoutx.h (aout_link_check_ar_symbols): Remove default and handle
176 bfd_link_common_skip_none in switch.
178 2018-01-12 Alan Modra <amodra@gmail.com>
181 * elf64-ppc.c (ppc64_elf_gc_mark_dynamic_ref): Ignore dynamic
182 references on forced local symbols.
184 2018-01-12 Vlad Ivanov <vlad@ivanov.email>
186 * elfxx-mips.c (_bfd_mips_elf_final_link): Notify user when
187 .reginfo section has wrong size.
189 2018-01-11 H.J. Lu <hongjiu.lu@intel.com>
192 * elf.c (_bfd_elf_map_sections_to_segments): When generating
193 separate code and read-only data LOAD segments, create a new
194 LOAD segment if the previous section contains text and the
195 current section doesn't or vice versa. Don't put a writable
196 section in a read-only segment if there is a RELRO segment.
198 2018-01-11 H.J. Lu <hongjiu.lu@intel.com>
201 * elflink.c (bfd_elf_gc_mark_dynamic_ref_symbol): Ignore dynamic
202 references on forced local symbols.
204 2018-01-11 H.J. Lu <hongjiu.lu@intel.com>
207 * elflink.c (bfd_elf_gc_sections): Keep all PREINIT_ARRAY,
208 INIT_ARRAY as well as FINI_ARRAY sections for ld -r --gc-section.
210 2017-09-27 Kuan-Lin Chen <kuanlinchentw@gmail.com>
213 * elf32-nds32.c (nds32_elf_relax_loadstore): Fix a typographical error.
215 2018-01-03 John Baldwin <jhb@FreeBSD.org>
217 * elf.c (elfcore_grok_freebsd_note): Handle
218 NT_FREEBSD_PROCSTAT_PROC, NT_FREEBSD_PROCSTAT_FILES, and
219 NT_FREEBSD_PROCSTAT_VMMAP.
221 2018-01-03 Alan Modra <amodra@gmail.com>
223 Update year range in copyright notice of all files.
225 For older changes see ChangeLog-2017
227 Copyright (C) 2018 Free Software Foundation, Inc.
229 Copying and distribution of this file, with or without modification,
230 are permitted in any medium without royalty provided the copyright
231 notice and this notice are preserved.
237 version-control: never