RISC-V: Add comment for previous change.
[deliverable/binutils-gdb.git] / bfd / ChangeLog
CommitLineData
3f48fe4a
JW
12018-02-08 Jim Wilson <jimw@sifive.com>
2
3 * elfnn-riscv.c (riscv_elf_relocate_section): Add comment for previous
4 change.
5
ef135d43
NC
62018-02-08 Nick Clifton <nickc@redhat.com>
7
8 PR 22788
9 * elf.c (elf_parse_notes): Reject notes with excessuively large
10 alignments.
11
407aa07c
AM
122018-02-07 Alan Modra <amodra@gmail.com>
13
14 Revert 2018-01-17 Alan Modra <amodra@gmail.com>
15 * elf32-ppc.c: Remove speculation barrier support.
16 * elf32-ppc.h: Likewise.
17 * elf64-ppc.c: Likewise.
18 * elf64-ppc.h: Likewise.
19
ed01220c
JW
202018-02-06 Jim Wilson <jimw@sifive.com>
21
22 * elfnn-riscv.c (riscv_elf_relocate_section): Return TRUE if used
23 callback to report an error.
24
c20c30f6
EB
252018-02-06 Eric Botcazou <ebotcazou@adacore.com>
26
27 PR ld/22263
28 * elfxx-sparc.c (sparc_elf_tls_transition): Turn call to bfd_link_pic
29 into call to !bfd_link_executable and tidy up.
30 (_bfd_sparc_elf_check_relocs): Fix formatting and tidy up.
31 <R_SPARC_TLS_LE_HIX22>: Turn call to bfd_link_pic into call to
32 !bfd_link_executable.
33 <R_SPARC_TLS_IE_HI22>: Likewise.
34 <GOT relocations>: Remove useless code, tidy and merge related blocks.
35 <R_SPARC_TLS_GD_CALL>: Turn call to bfd_link_pic into call to
36 !bfd_link_executable.
37 <R_SPARC_WPLT30>: Tidy up.
38 (_bfd_sparc_elf_gc_mark_hook): Turn call to bfd_link_pic into call to
39 !bfd_link_executable.
40 (allocate_dynrelocs): Likewise.
41 (_bfd_sparc_elf_relocate_section): Fix formatting and tidy up.
42 <R_SPARC_TLS_GD_HI22>: Merge into...
43 <R_SPARC_TLS_GD_LO10>: ...this. Adjust 4th argument in call to
44 sparc_elf_tls_transition and remove redundant code.
45 <R_SPARC_TLS_LDM_HI22>: Turn call to bfd_link_pic into call to
46 !bfd_link_executable.
47 <R_SPARC_TLS_LDO_HIX22>: Likewise.
48 <R_SPARC_TLS_LE_HIX22>: Likewise. Tidy up.
49 <R_SPARC_TLS_LDM_CALL>: Likewise.
50 <R_SPARC_TLS_GD_CALL>: Likewise. Tidy up.
51 <R_SPARC_TLS_GD_ADD>: Likewise.
52 <R_SPARC_TLS_LDM_ADD>: Likewise.
53 <R_SPARC_TLS_LDO_ADD>: Likewise.
54 <R_SPARC_TLS_IE_LD>: Likewise.
55
46d09186
NC
562018-02-06 Miloš Stojanović <milos.stojanovic@rt-rk.com>
57
58 PR 22789
59 * elfxx-mips.c (_bfd_mips_elf_find_nearest_line): If the dwarf
60 functions failed to find the function name, try the generic elf
61 find function instead.
62
8278e7ce
SDJ
632018-02-06 Sergio Durigan Junior <sergiodj@redhat.com>
64
65 * coff-rs6000.c (xcoff_write_archive_contents_old): Use
66 'memcpy' instead of 'strncpy' when writing the magic number.
67
64e234d4
NC
682018-02-06 Nick Clifton <nickc@redhat.com>
69
70 PR 22794
71 * opncls.c (bfd_get_debug_link_info_1): Check the size of the
72 section before attempting to read it in.
73 (bfd_get_alt_debug_link_info): Likewise.
74
422f3d3d
PC
752018-02-06 Paul Carroll <pcarroll@codesourcery.com>
76
77 * bfd/dwarf2.c (find_abstract_name): Modified to return file and
78 line information in addition to name, if they can be found.
79
279b2f94
RL
802018-02-05 Renlin Li <renlin.li@arm.com>
81
82 PR ld/22764
83 * elfnn-aarch64.c (elfNN_aarch64_check_relocs): Relax the
84 R_AARCH64_ABS32 and R_AARCH64_ABS16 for absolute symbol. Apply the
85 check for writeable section as well.
86
cd048363
L
872018-02-05 H.J. Lu <hongjiu.lu@intel.com>
88
89 PR ld/22782
90 * elf32-i386.c (elf_i386_check_relocs): Set got_referenced if
91 _GLOBAL_OFFSET_TABLE_ is referenced or GOT is needed to resolve
92 undefined weak symbol to 0.
93 * elf64-x86-64.c (elf_x86_64_check_relocs): Set got_referenced
94 if _GLOBAL_OFFSET_TABLE_ is referenced.
95 * elfxx-x86.c (_bfd_x86_elf_size_dynamic_sections): Check
96 got_referenced instead of ref_regular_nonweak. Remove the
97 unused _GLOBAL_OFFSET_TABLE_ from symbol table.
98 * elfxx-x86.h (elf_x86_link_hash_table): Add got_referenced.
99
e65b1a78
MR
1002018-02-05 Maciej W. Rozycki <macro@mips.com>
101
102 * elfnn-riscv.c (_bfd_riscv_relax_pc): Use `memset' to
103 initialize `hi_reloc'.
104
2d6dda71
MR
1052018-02-05 Maciej W. Rozycki <macro@mips.com>
106
107 * elfxx-mips.c (_bfd_mips_elf_section_processing): For
108 SHT_MIPS_REGINFO sections don't assert the correct size and
109 report an error instead.
110
75506100
MR
1112018-02-05 Maciej W. Rozycki <macro@mips.com>
112
113 * elf.c (_bfd_elf_write_object_contents): Propagate a failure
114 status from `->elf_backend_section_processing'.
115
7f02625e
JW
1162018-02-02 Jim Wilson <jimw@sifive.com>
117
118 PR ld/22756
119 * elfnn-riscv.c (riscv_relax_delete_bytes): New parameter link_info.
120 If link_info->wrap_hash, check for a duplicate symbol and ignore.
121 (_bfd_riscv_relax_call, bfd_riscv_relax_lui, _bfd_riscv_relax_tls_le):
122 Pass new argument to riscv_relax_delete_bytes.
123 (_bfd_riscv_relax_align, _bfd_riscv_relax_delete): Likewise. Remove
124 ATTRIBUTE_UNUSED from link_info parameter.
125
d830549d
AM
1262018-02-02 Alan Modra <amodra@gmail.com>
127
128 * elf64-ppc.c (ppc64_elf_relocate_section): Don't relocate nops
129 emitted for toc sequence optimization. Set and use "howto" later.
130
e99955cd
SM
1312018-02-01 Simon Marchi <simon.marchi@ericsson.com>
132
133 * elf64-ppc.c (ppc64_elf_archive_symbol_lookup): Avoid pointer
134 arithmetic on NULL pointer.
135 * elflink.c (_bfd_elf_archive_symbol_lookup,
136 elf_link_add_archive_symbols): Likewise.
137
bf3077a6
MM
1382018-01-31 Michael Matz <matz@suse.de>
139
140 * elflink.c (bfd_elf_define_start_stop): Fix check of
141 def_dynamic.
142
823143c6
L
1432018-01-31 H.J. Lu <hongjiu.lu@intel.com>
144
145 PR ld/21964
146 * elflink.c (bfd_elf_define_start_stop): Check if __start and
147 __stop symbols are referenced by shared objects.
148
76cb3a89
AM
1492018-01-30 Alan Modra <amodra@gmail.com>
150
151 PR 22758
152 * elf.c (_bfd_elf_map_sections_to_segments): Don't start a new
153 segment when demand paged with lma on the same page. Test this
154 before load/non-load, executable/non-executable,
155 writable/non-writable tests and simplify. Delete bogus relro
156 condition in writable/non-writable test. Delete outdated
157 comment. Formatting.
158
36b8fda5
AM
1592018-01-30 Alan Modra <amodra@gmail.com>
160
161 * elflink.c (bfd_elf_define_start_stop): Make __start and __stop
162 symbols dynamic.
163
eb77f6a4
AM
1642018-01-29 Alan Modra <amodra@gmail.com>
165
166 PR 22741
167 * coffgen.c (coff_pointerize_aux): Ensure auxent tagndx is in
168 range before converting to a symbol table pointer.
169
7d73b4c8
NC
1702018-01-27 Nick Clifton <nickc@redhat.com>
171
172 * po/ru.po: Updated Russian translation.
173
32253bb7
AM
1742018-01-26 Alan Modra <amodra@gmail.com>
175
176 * elflink.c (bfd_elf_define_start_stop): Override symbols when
177 they are defined dynamically.
178
ba21f564
AM
1792018-01-26 Alan Modra <amodra@gmail.com>
180
181 * elf64-ppc.c (ppc64_elf_size_stubs): Iterate sizing when
182 .branch_lt changes size.
183
38e64b0e
AM
1842018-01-25 Alan Modra <amodra@gmail.com>
185
186 PR 22746
187 * elfcode.h (elf_object_p): Avoid integer overflow.
188
bb363086
EB
1892018-01-25 Eric Botcazou <ebotcazou@adacore.com>
190
191 PR ld/22727
192 * elfxx-sparc.c (_bfd_sparc_elf_check_relocs) <R_SPARC_TLS_GD_CALL>:
193 Do a mere lookup of the __tls_get_addr symbol instead of adding it.
194
195 Revert
196 2017-10-19 H.J. Lu <hongjiu.lu@intel.com>
197
198 PR ld/22263
199 * elfxx-sparc.c (sparc_elf_tls_transition): Replace
200 bfd_link_pic with !bfd_link_executable, !bfd_link_pic with
201 bfd_link_executable for TLS check.
202 (_bfd_sparc_elf_check_relocs): Likewise.
203 (allocate_dynrelocs): Likewise.
204 (_bfd_sparc_elf_relocate_section): Likewise.
205
1daf502a
RL
2062018-01-24 Renlin Li <renlin.li@arm.com>
207
208 * elfnn-aarch64.c (elfNN_aarch64_final_link_relocate): Add support for
209 BFD_RELOC_AARCH64_MOVW_PREL_G0, BFD_RELOC_AARCH64_MOVW_PREL_G0_NC,
210 BFD_RELOC_AARCH64_MOVW_PREL_G1, BFD_RELOC_AARCH64_MOVW_PREL_G1_NC,
211 BFD_RELOC_AARCH64_MOVW_PREL_G2, BFD_RELOC_AARCH64_MOVW_PREL_G2_NC,
212 BFD_RELOC_AARCH64_MOVW_PREL_G3.
213 * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend): Likewise.
214 (_bfd_aarch64_elf_resolve_relocation): Likewise.
215
32247401
RL
2162018-01-24 Renlin Li <renlin.li@arm.com>
217
218 * reloc.c: Add BFD_RELOC_AARCH64_MOVW_PREL_G0,
219 BFD_RELOC_AARCH64_MOVW_PREL_G0_NC, BFD_RELOC_AARCH64_MOVW_PREL_G1,
220 BFD_RELOC_AARCH64_MOVW_PREL_G1_NC, BFD_RELOC_AARCH64_MOVW_PREL_G2,
221 BFD_RELOC_AARCH64_MOVW_PREL_G2_NC, BFD_RELOC_AARCH64_MOVW_PREL_G3.
222 * elfnn-aarch64.c (elfNN_aarch64_howto_table): Add entries for
223 BFD_RELOC_AARCH64_MOVW_PREL_G0, BFD_RELOC_AARCH64_MOVW_PREL_G0_NC,
224 BFD_RELOC_AARCH64_MOVW_PREL_G1, BFD_RELOC_AARCH64_MOVW_PREL_G1_NC,
225 BFD_RELOC_AARCH64_MOVW_PREL_G2, BFD_RELOC_AARCH64_MOVW_PREL_G2_NC,
226 BFD_RELOC_AARCH64_MOVW_PREL_G3.
227 * bfd-in2.h: Regenerate.
228 * libbfd.h: Regenerate.
229
1c5e4ee9
MR
2302018-01-23 Maciej W. Rozycki <macro@mips.com>
231
232 * elfxx-mips.c (_bfd_mips_elf_final_link): Update a stale
233 `mips_elf32_section_processing' comment reference.
234
8a1b824a
L
2352018-01-20 H.J. Lu <hongjiu.lu@intel.com>
236
237 PR ld/22721
238 * elfxx-x86.c (_bfd_x86_elf_link_check_relocs): Check the
239 versioned __tls_get_addr symbol.
240
ee3fbc1e
NC
2412018-01-19 Nick Clifton <nickc@redhat.com>
242
243 * po/fr.po: Updated French translation.
244
691d2e9a
AM
2452018-01-18 Alan Modra <amodra@gmail.com>
246
247 * elf32-ppc.c (ppc_elf_create_glink): Correct alignment of .glink.
248 * elf64-ppc.c (ppc64_elf_size_stubs): Handle negative plt_stub_align.
249 (ppc64_elf_build_stubs): Likewise.
250
4bfce128
NC
2512018-01-17 Nick Clifton <nickc@redhat.com>
252
253 * po/ru.po: Updated Russian translation.
254 * po/uk/po: Updated Ukranian translation.
255
c75bc4f7
AM
2562018-01-17 Alan Modra <amodra@gmail.com>
257
258 * elf64-ppc.c (ppc64_elf_build_stubs): Silence gcc warning.
259
1be5d8d3
AM
2602018-01-17 Alan Modra <amodra@gmail.com>
261
262 * elf32-ppc.c (GLINK_ENTRY_SIZE): Handle speculation barrier.
263 (CRSETEQ, BEQCTRM): Define.
264 (is_nonpic_glink_stub): Don't check bctr.
265 (ppc_elf_link_hash_table_create): Init new ppc_elf_params field.
266 (ppc_elf_relax_section): Size speculation barrier.
267 (output_bctr): New function.
268 (write_glink_stub): Use output_bctr.
269 (ppc_elf_relocate_section): Use output_bctr for long branch stub.
270 (ppc_elf_finish_dynamic_symbol): Likewise.
271 (ppc_elf_finish_dynamic_sections): Use output_bctr.
272 * elf32-ppc.h (struct ppc_elf_params): Add speculate_indirect_jumps.
273 * elf64-ppc.c (CRSETEQ, BEQCTRM, BEQCTRLM): Define.
274 (GLINK_PLTRESOLVE_SIZE): Size speculation barrier.
275 (size_global_entry_stubs): Handle speculation barrier sizing.
276 (plt_stub_size): Likewise.
277 (output_bctr): New function.
278 (build_plt_stub, build_tls_get_addr_stub): Output speculation
279 barrier.
280 (ppc_build_one_stub): Likewise for ppc_stub_plt_branch.
281 (ppc_size_one_stub): Size speculation barrier in ppc_stub_plt_branch.
282 (build_global_entry_stubs): Output speculation barrier.
283 (ppc64_elf_build_stubs): Likewise in __glink_PLTresolve stub.
284 * elf64-ppc.h (struct ppc64_elf_params): Add speculate_indirect_jumps.
285
9e390558
AM
2862018-01-17 Alan Modra <amodra@gmail.com>
287
288 * elf32-ppc.c (GLINK_ENTRY_SIZE): Add parameters, handle
289 __tls_get_addr_opt, and alignment sizing.
290 (TLS_GET_ADDR_GLINK_SIZE): Delete.
291 (is_nonpic_glink_stub): Don't use GLINK_ENTRY_SIZE.
292 (ppc_elf_get_synthetic_symtab): Recognize stubs spaced at 4, 6,
293 or 8 insns.
294 (ppc_elf_link_hash_table_create): Init new ppc_elf_params field.
295 (allocate_dynrelocs): Use new GLINK_ENTRY_SIZE.
296 (ppc_elf_size_dynamic_sections): Likewise. Size branch table
297 by PLT reloc count.
298 (write_glink_stub): Handle __tls_get_addr_opt stub.
299 Pad out to size given by GLINK_ENTRY_SIZE.
300 (ppc_elf_relocate_section): Adjust write_glink_stub call.
301 (ppc_elf_finish_dynamic_symbol): Likewise.
302 (ppc_elf_finish_dynamic_sections): Write PLTresolve without using
303 insn array since so many need rewriting.
304 * elf32-ppc.h (struct ppc_elf_params): Add plt_stub_align.
305 * elf64-ppc.c (GLINK_PLTRESOLVE_SIZE): Rename from
306 GLINK_CALL_STUB_SIZE. Add htab param and evaluate to size without
307 nops. Adjust all uses.
308 (ppc64_elf_get_synthetic_symtab): Don't use GLINK_CALL_STUB_SIZE
309 in glink_vma calculation.
310 (struct ppc_link_hash_table): Add global_entry section pointer.
311 (create_linkage_sections): Create separate section for global
312 entry stubs.
313 (PPC_LO, PPC_HI, PPC_HA): Move earlier.
314 (size_global_entry_stubs): Handle sizing for aligned stubs.
315 (ppc64_elf_size_dynamic_sections): Handle global_entry alloc,
316 and don't stash end of glink branch table in rawsize.
317 (ppc_build_one_stub): Rewrite stub size calculations.
318 (build_global_entry_stubs): Use new section.
319 (ppc64_elf_build_stubs): Don't pad __glink_PLTresolve with nops.
320 Build lazy link stubs out to end of section. Build global entry
321 stubs in new section.
322
616dcb87
NC
3232018-01-15 Nick Clifton <nickc@redhat.com>
324
325 * po/uk.po: Updated Ukranian translation.
326
3957a496
NC
3272018-01-13 Nick Clifton <nickc@redhat.com>
328
329 * po/bfd.pot: Regenerated.
330
769c7ea5
NC
3312018-01-13 Nick Clifton <nickc@redhat.com>
332
333 * version.m4: Bump version to 2.30.51
334 * configure: Regenerate.
335
faf766e3
NC
3362018-01-13 Nick Clifton <nickc@redhat.com>
337
338 2.30 branch created.
339
564e11c9
JW
3402018-01-12 Jens Widell <jl@opera.com>
341
342 * elf.c (setup_group): Optimize search for group by remembering
343 last found group and restarting search at that index.
344 * elf-bfd.h (struct elf_obj_tdata): Add group_search_offset field.
345
a78eea16
AM
3462018-01-12 Gunther Nikl <gnikl@users.sourceforge.net>
347
348 * aoutx.h (aout_link_check_ar_symbols): Remove default and handle
349 bfd_link_common_skip_none in switch.
350
87e79a65
AM
3512018-01-12 Alan Modra <amodra@gmail.com>
352
353 PR ld/22649
354 * elf64-ppc.c (ppc64_elf_gc_mark_dynamic_ref): Ignore dynamic
355 references on forced local symbols.
356
58807c48
VI
3572018-01-12 Vlad Ivanov <vlad@ivanov.email>
358
359 * elfxx-mips.c (_bfd_mips_elf_final_link): Notify user when
360 .reginfo section has wrong size.
361
2888249f
L
3622018-01-11 H.J. Lu <hongjiu.lu@intel.com>
363
364 PR ld/22393
365 * elf.c (_bfd_elf_map_sections_to_segments): When generating
366 separate code and read-only data LOAD segments, create a new
367 LOAD segment if the previous section contains text and the
368 current section doesn't or vice versa. Don't put a writable
369 section in a read-only segment if there is a RELRO segment.
370
d664fd41
L
3712018-01-11 H.J. Lu <hongjiu.lu@intel.com>
372
373 PR ld/22649
374 * elflink.c (bfd_elf_gc_mark_dynamic_ref_symbol): Ignore dynamic
375 references on forced local symbols.
376
8b6f4cd3
L
3772018-01-11 H.J. Lu <hongjiu.lu@intel.com>
378
379 PR ld/22677
380 * elflink.c (bfd_elf_gc_sections): Keep all PREINIT_ARRAY,
381 INIT_ARRAY as well as FINI_ARRAY sections for ld -r --gc-section.
382
6cef73f9
KLC
3832017-09-27 Kuan-Lin Chen <kuanlinchentw@gmail.com>
384
385 PR 22662
386 * elf32-nds32.c (nds32_elf_relax_loadstore): Fix a typographical error.
387
ddb2bbcf
JB
3882018-01-03 John Baldwin <jhb@FreeBSD.org>
389
390 * elf.c (elfcore_grok_freebsd_note): Handle
391 NT_FREEBSD_PROCSTAT_PROC, NT_FREEBSD_PROCSTAT_FILES, and
392 NT_FREEBSD_PROCSTAT_VMMAP.
393
219d1afa
AM
3942018-01-03 Alan Modra <amodra@gmail.com>
395
396 Update year range in copyright notice of all files.
397
1e563868 398For older changes see ChangeLog-2017
3499769a 399\f
1e563868 400Copyright (C) 2018 Free Software Foundation, Inc.
3499769a
AM
401
402Copying and distribution of this file, with or without modification,
403are permitted in any medium without royalty provided the copyright
404notice and this notice are preserved.
405
406Local Variables:
407mode: change-log
408left-margin: 8
409fill-column: 74
410version-control: never
411End:
This page took 0.156922 seconds and 4 git commands to generate.