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