]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - bfd/ChangeLog
MIPS/BFD: Correctly report unsupported `.reginfo' section size
[thirdparty/binutils-gdb.git] / bfd / ChangeLog
1 2018-02-05 Maciej W. Rozycki <macro@mips.com>
2
3 * elfxx-mips.c (_bfd_mips_elf_section_processing): For
4 SHT_MIPS_REGINFO sections don't assert the correct size and
5 report an error instead.
6
7 2018-02-05 Maciej W. Rozycki <macro@mips.com>
8
9 * elf.c (_bfd_elf_write_object_contents): Propagate a failure
10 status from `->elf_backend_section_processing'.
11
12 2018-02-02 Jim Wilson <jimw@sifive.com>
13
14 PR ld/22756
15 * elfnn-riscv.c (riscv_relax_delete_bytes): New parameter link_info.
16 If link_info->wrap_hash, check for a duplicate symbol and ignore.
17 (_bfd_riscv_relax_call, bfd_riscv_relax_lui, _bfd_riscv_relax_tls_le):
18 Pass new argument to riscv_relax_delete_bytes.
19 (_bfd_riscv_relax_align, _bfd_riscv_relax_delete): Likewise. Remove
20 ATTRIBUTE_UNUSED from link_info parameter.
21
22 2018-02-02 Alan Modra <amodra@gmail.com>
23
24 * elf64-ppc.c (ppc64_elf_relocate_section): Don't relocate nops
25 emitted for toc sequence optimization. Set and use "howto" later.
26
27 2018-02-01 Simon Marchi <simon.marchi@ericsson.com>
28
29 * elf64-ppc.c (ppc64_elf_archive_symbol_lookup): Avoid pointer
30 arithmetic on NULL pointer.
31 * elflink.c (_bfd_elf_archive_symbol_lookup,
32 elf_link_add_archive_symbols): Likewise.
33
34 2018-01-31 Michael Matz <matz@suse.de>
35
36 * elflink.c (bfd_elf_define_start_stop): Fix check of
37 def_dynamic.
38
39 2018-01-31 H.J. Lu <hongjiu.lu@intel.com>
40
41 PR ld/21964
42 * elflink.c (bfd_elf_define_start_stop): Check if __start and
43 __stop symbols are referenced by shared objects.
44
45 2018-01-30 Alan Modra <amodra@gmail.com>
46
47 PR 22758
48 * elf.c (_bfd_elf_map_sections_to_segments): Don't start a new
49 segment when demand paged with lma on the same page. Test this
50 before load/non-load, executable/non-executable,
51 writable/non-writable tests and simplify. Delete bogus relro
52 condition in writable/non-writable test. Delete outdated
53 comment. Formatting.
54
55 2018-01-30 Alan Modra <amodra@gmail.com>
56
57 * elflink.c (bfd_elf_define_start_stop): Make __start and __stop
58 symbols dynamic.
59
60 2018-01-29 Alan Modra <amodra@gmail.com>
61
62 PR 22741
63 * coffgen.c (coff_pointerize_aux): Ensure auxent tagndx is in
64 range before converting to a symbol table pointer.
65
66 2018-01-27 Nick Clifton <nickc@redhat.com>
67
68 * po/ru.po: Updated Russian translation.
69
70 2018-01-26 Alan Modra <amodra@gmail.com>
71
72 * elflink.c (bfd_elf_define_start_stop): Override symbols when
73 they are defined dynamically.
74
75 2018-01-26 Alan Modra <amodra@gmail.com>
76
77 * elf64-ppc.c (ppc64_elf_size_stubs): Iterate sizing when
78 .branch_lt changes size.
79
80 2018-01-25 Alan Modra <amodra@gmail.com>
81
82 PR 22746
83 * elfcode.h (elf_object_p): Avoid integer overflow.
84
85 2018-01-25 Eric Botcazou <ebotcazou@adacore.com>
86
87 PR ld/22727
88 * elfxx-sparc.c (_bfd_sparc_elf_check_relocs) <R_SPARC_TLS_GD_CALL>:
89 Do a mere lookup of the __tls_get_addr symbol instead of adding it.
90
91 Revert
92 2017-10-19 H.J. Lu <hongjiu.lu@intel.com>
93
94 PR ld/22263
95 * elfxx-sparc.c (sparc_elf_tls_transition): Replace
96 bfd_link_pic with !bfd_link_executable, !bfd_link_pic with
97 bfd_link_executable for TLS check.
98 (_bfd_sparc_elf_check_relocs): Likewise.
99 (allocate_dynrelocs): Likewise.
100 (_bfd_sparc_elf_relocate_section): Likewise.
101
102 2018-01-24 Renlin Li <renlin.li@arm.com>
103
104 * elfnn-aarch64.c (elfNN_aarch64_final_link_relocate): Add support for
105 BFD_RELOC_AARCH64_MOVW_PREL_G0, BFD_RELOC_AARCH64_MOVW_PREL_G0_NC,
106 BFD_RELOC_AARCH64_MOVW_PREL_G1, BFD_RELOC_AARCH64_MOVW_PREL_G1_NC,
107 BFD_RELOC_AARCH64_MOVW_PREL_G2, BFD_RELOC_AARCH64_MOVW_PREL_G2_NC,
108 BFD_RELOC_AARCH64_MOVW_PREL_G3.
109 * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend): Likewise.
110 (_bfd_aarch64_elf_resolve_relocation): Likewise.
111
112 2018-01-24 Renlin Li <renlin.li@arm.com>
113
114 * reloc.c: Add BFD_RELOC_AARCH64_MOVW_PREL_G0,
115 BFD_RELOC_AARCH64_MOVW_PREL_G0_NC, BFD_RELOC_AARCH64_MOVW_PREL_G1,
116 BFD_RELOC_AARCH64_MOVW_PREL_G1_NC, BFD_RELOC_AARCH64_MOVW_PREL_G2,
117 BFD_RELOC_AARCH64_MOVW_PREL_G2_NC, BFD_RELOC_AARCH64_MOVW_PREL_G3.
118 * elfnn-aarch64.c (elfNN_aarch64_howto_table): Add entries for
119 BFD_RELOC_AARCH64_MOVW_PREL_G0, BFD_RELOC_AARCH64_MOVW_PREL_G0_NC,
120 BFD_RELOC_AARCH64_MOVW_PREL_G1, BFD_RELOC_AARCH64_MOVW_PREL_G1_NC,
121 BFD_RELOC_AARCH64_MOVW_PREL_G2, BFD_RELOC_AARCH64_MOVW_PREL_G2_NC,
122 BFD_RELOC_AARCH64_MOVW_PREL_G3.
123 * bfd-in2.h: Regenerate.
124 * libbfd.h: Regenerate.
125
126 2018-01-23 Maciej W. Rozycki <macro@mips.com>
127
128 * elfxx-mips.c (_bfd_mips_elf_final_link): Update a stale
129 `mips_elf32_section_processing' comment reference.
130
131 2018-01-20 H.J. Lu <hongjiu.lu@intel.com>
132
133 PR ld/22721
134 * elfxx-x86.c (_bfd_x86_elf_link_check_relocs): Check the
135 versioned __tls_get_addr symbol.
136
137 2018-01-19 Nick Clifton <nickc@redhat.com>
138
139 * po/fr.po: Updated French translation.
140
141 2018-01-18 Alan Modra <amodra@gmail.com>
142
143 * elf32-ppc.c (ppc_elf_create_glink): Correct alignment of .glink.
144 * elf64-ppc.c (ppc64_elf_size_stubs): Handle negative plt_stub_align.
145 (ppc64_elf_build_stubs): Likewise.
146
147 2018-01-17 Nick Clifton <nickc@redhat.com>
148
149 * po/ru.po: Updated Russian translation.
150 * po/uk/po: Updated Ukranian translation.
151
152 2018-01-17 Alan Modra <amodra@gmail.com>
153
154 * elf64-ppc.c (ppc64_elf_build_stubs): Silence gcc warning.
155
156 2018-01-17 Alan Modra <amodra@gmail.com>
157
158 * elf32-ppc.c (GLINK_ENTRY_SIZE): Handle speculation barrier.
159 (CRSETEQ, BEQCTRM): Define.
160 (is_nonpic_glink_stub): Don't check bctr.
161 (ppc_elf_link_hash_table_create): Init new ppc_elf_params field.
162 (ppc_elf_relax_section): Size speculation barrier.
163 (output_bctr): New function.
164 (write_glink_stub): Use output_bctr.
165 (ppc_elf_relocate_section): Use output_bctr for long branch stub.
166 (ppc_elf_finish_dynamic_symbol): Likewise.
167 (ppc_elf_finish_dynamic_sections): Use output_bctr.
168 * elf32-ppc.h (struct ppc_elf_params): Add speculate_indirect_jumps.
169 * elf64-ppc.c (CRSETEQ, BEQCTRM, BEQCTRLM): Define.
170 (GLINK_PLTRESOLVE_SIZE): Size speculation barrier.
171 (size_global_entry_stubs): Handle speculation barrier sizing.
172 (plt_stub_size): Likewise.
173 (output_bctr): New function.
174 (build_plt_stub, build_tls_get_addr_stub): Output speculation
175 barrier.
176 (ppc_build_one_stub): Likewise for ppc_stub_plt_branch.
177 (ppc_size_one_stub): Size speculation barrier in ppc_stub_plt_branch.
178 (build_global_entry_stubs): Output speculation barrier.
179 (ppc64_elf_build_stubs): Likewise in __glink_PLTresolve stub.
180 * elf64-ppc.h (struct ppc64_elf_params): Add speculate_indirect_jumps.
181
182 2018-01-17 Alan Modra <amodra@gmail.com>
183
184 * elf32-ppc.c (GLINK_ENTRY_SIZE): Add parameters, handle
185 __tls_get_addr_opt, and alignment sizing.
186 (TLS_GET_ADDR_GLINK_SIZE): Delete.
187 (is_nonpic_glink_stub): Don't use GLINK_ENTRY_SIZE.
188 (ppc_elf_get_synthetic_symtab): Recognize stubs spaced at 4, 6,
189 or 8 insns.
190 (ppc_elf_link_hash_table_create): Init new ppc_elf_params field.
191 (allocate_dynrelocs): Use new GLINK_ENTRY_SIZE.
192 (ppc_elf_size_dynamic_sections): Likewise. Size branch table
193 by PLT reloc count.
194 (write_glink_stub): Handle __tls_get_addr_opt stub.
195 Pad out to size given by GLINK_ENTRY_SIZE.
196 (ppc_elf_relocate_section): Adjust write_glink_stub call.
197 (ppc_elf_finish_dynamic_symbol): Likewise.
198 (ppc_elf_finish_dynamic_sections): Write PLTresolve without using
199 insn array since so many need rewriting.
200 * elf32-ppc.h (struct ppc_elf_params): Add plt_stub_align.
201 * elf64-ppc.c (GLINK_PLTRESOLVE_SIZE): Rename from
202 GLINK_CALL_STUB_SIZE. Add htab param and evaluate to size without
203 nops. Adjust all uses.
204 (ppc64_elf_get_synthetic_symtab): Don't use GLINK_CALL_STUB_SIZE
205 in glink_vma calculation.
206 (struct ppc_link_hash_table): Add global_entry section pointer.
207 (create_linkage_sections): Create separate section for global
208 entry stubs.
209 (PPC_LO, PPC_HI, PPC_HA): Move earlier.
210 (size_global_entry_stubs): Handle sizing for aligned stubs.
211 (ppc64_elf_size_dynamic_sections): Handle global_entry alloc,
212 and don't stash end of glink branch table in rawsize.
213 (ppc_build_one_stub): Rewrite stub size calculations.
214 (build_global_entry_stubs): Use new section.
215 (ppc64_elf_build_stubs): Don't pad __glink_PLTresolve with nops.
216 Build lazy link stubs out to end of section. Build global entry
217 stubs in new section.
218
219 2018-01-15 Nick Clifton <nickc@redhat.com>
220
221 * po/uk.po: Updated Ukranian translation.
222
223 2018-01-13 Nick Clifton <nickc@redhat.com>
224
225 * po/bfd.pot: Regenerated.
226
227 2018-01-13 Nick Clifton <nickc@redhat.com>
228
229 * version.m4: Bump version to 2.30.51
230 * configure: Regenerate.
231
232 2018-01-13 Nick Clifton <nickc@redhat.com>
233
234 2.30 branch created.
235
236 2018-01-12 Jens Widell <jl@opera.com>
237
238 * elf.c (setup_group): Optimize search for group by remembering
239 last found group and restarting search at that index.
240 * elf-bfd.h (struct elf_obj_tdata): Add group_search_offset field.
241
242 2018-01-12 Gunther Nikl <gnikl@users.sourceforge.net>
243
244 * aoutx.h (aout_link_check_ar_symbols): Remove default and handle
245 bfd_link_common_skip_none in switch.
246
247 2018-01-12 Alan Modra <amodra@gmail.com>
248
249 PR ld/22649
250 * elf64-ppc.c (ppc64_elf_gc_mark_dynamic_ref): Ignore dynamic
251 references on forced local symbols.
252
253 2018-01-12 Vlad Ivanov <vlad@ivanov.email>
254
255 * elfxx-mips.c (_bfd_mips_elf_final_link): Notify user when
256 .reginfo section has wrong size.
257
258 2018-01-11 H.J. Lu <hongjiu.lu@intel.com>
259
260 PR ld/22393
261 * elf.c (_bfd_elf_map_sections_to_segments): When generating
262 separate code and read-only data LOAD segments, create a new
263 LOAD segment if the previous section contains text and the
264 current section doesn't or vice versa. Don't put a writable
265 section in a read-only segment if there is a RELRO segment.
266
267 2018-01-11 H.J. Lu <hongjiu.lu@intel.com>
268
269 PR ld/22649
270 * elflink.c (bfd_elf_gc_mark_dynamic_ref_symbol): Ignore dynamic
271 references on forced local symbols.
272
273 2018-01-11 H.J. Lu <hongjiu.lu@intel.com>
274
275 PR ld/22677
276 * elflink.c (bfd_elf_gc_sections): Keep all PREINIT_ARRAY,
277 INIT_ARRAY as well as FINI_ARRAY sections for ld -r --gc-section.
278
279 2017-09-27 Kuan-Lin Chen <kuanlinchentw@gmail.com>
280
281 PR 22662
282 * elf32-nds32.c (nds32_elf_relax_loadstore): Fix a typographical error.
283
284 2018-01-03 John Baldwin <jhb@FreeBSD.org>
285
286 * elf.c (elfcore_grok_freebsd_note): Handle
287 NT_FREEBSD_PROCSTAT_PROC, NT_FREEBSD_PROCSTAT_FILES, and
288 NT_FREEBSD_PROCSTAT_VMMAP.
289
290 2018-01-03 Alan Modra <amodra@gmail.com>
291
292 Update year range in copyright notice of all files.
293
294 For older changes see ChangeLog-2017
295 \f
296 Copyright (C) 2018 Free Software Foundation, Inc.
297
298 Copying and distribution of this file, with or without modification,
299 are permitted in any medium without royalty provided the copyright
300 notice and this notice are preserved.
301
302 Local Variables:
303 mode: change-log
304 left-margin: 8
305 fill-column: 74
306 version-control: never
307 End: