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