7d841e29e59da1b26196078cea4d68d5bbe7a936
[deliverable/binutils-gdb.git] / bfd / ChangeLog
1 2019-07-15 Alan Modra <amodra@gmail.com>
2
3 * elflink.c (_bfd_elf_fix_symbol_flags): If the def for an
4 alias is no longer bfd_link_hash_defined, clear the alias.
5
6 2019-07-13 Alan Modra <amodra@gmail.com>
7
8 * elflink.c (_bfd_elf_omit_section_dynsym_default): Don't keep
9 tls_sec.
10 (_bfd_elf_init_1_index_section): Prefer not using TLS sections.
11 (_bfd_elf_init_2_index_sections): Likewise.
12 * elf64-ppc.c (ppc64_elf_relocate_section): When emitting dynamic
13 relocations for local TLS symbols, use STN_UNDEF as the relocation
14 symbol.
15 * elf32-ppc.c (ppc_elf_relocate_section): Likewise, and don't
16 leave TLS symbol value in the addend.
17
18 2019-07-08 Alan Modra <amodra@gmail.com>
19
20 PR 24785
21 * elf32-ppc.c (_bfd_elf_ppc_set_arch): Sanity check .PPC.EMB.apuinfo
22 size before reading first word.
23
24 2019-07-02 Nick Clifton <nickc@redhat.com>
25
26 PR 24717
27 * elf.c (is_debuginfo_file): New function.
28 (assign_file_positions_for_non_load_sections): Do not warn about
29 allocated sections outside of loadable segments if they are found
30 in a debuginfo file.
31 * elf-bfd.h (is_debuginfo_file): Prototype.
32
33 2019-07-02 Nick Clifton <nickc@redhat.com>
34
35 PR 24753
36 * compress.c (bfd_get_full_section_contents): Do not complain
37 about linker created sections that are larger than the file size.
38
39 2019-07-02 Christophe Lyon <christophe.lyon@linaro.org>
40
41 * bfd/elf32-arm.c (CMSE_STUB_NAME): New define.
42 (elf32_arm_get_stub_entry): Do not try to emit long-branch stubs
43 for CMSE stubs.
44 (arm_dedicated_stub_output_section_name): Use CMSE_STUB_NAME.
45
46 2019-07-02 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
47
48 * elf32-arm.c (elf32_arm_gc_mark_extra_sections): Mark debug
49 sections when .text section contain secure entry functions
50 is marked.
51
52 2019-07-01 Nick Clifton <nickc@redhat.com>
53
54 PR 23839
55 * elf32-arm.c (elf32_arm_update_relocs): Do not include the
56 section VMA in the offset used to update exidx relocs.
57
58 2019-06-28 Nick Clifton <nickc@redhat.com>
59
60 PR 24708
61 * elf.c (_bfd_elf_slurp_version_tables): Check for an excessively
62 large version reference section.
63 * compress.c (bfd_get_full_section_contents): Check for an
64 uncompressed section whose size is larger than the file size.
65
66 2019-06-28 Alan Modra <amodra@gmail.com>
67
68 * format.c (bfd_check_format_matches): Don't match plugin target
69 if another target matches. Expand comment.
70 * targets.c (_bfd_target_vector): Move plugin_vec after all other
71 non-corefile targets, outside !SELECT_VECS.
72 * config.bfd: Don't handle targ=plugin here.
73 * configure.ac: Don't add plugin to enable_targets or handle in
74 target loop setting selvecs and other target vars.
75 * configure: Regenerate.
76
77 2019-06-26 Nick Clifton <nickc@redhat.com>
78
79 PR 24703
80 * mach-o-arm.c (bfd_mach_o_arm_canonicalize_one_reloc): Add error
81 messages for failures.
82 * mach-o.c (bfd_mach_o_canonicalize_relocs): Set an bfd error code
83 if returning an error value.
84
85 2019-06-25 Jan Beulich <jbeulich@suse.com>
86
87 * elf-properties.c (elf_find_and_remove_property): Rename last
88 parameter. Mention it in comment.
89
90 2019-06-24 Ilia Diachkov <ilia.diachkov@optimitech.com>
91
92 * elfnn-riscv.c (_bfd_riscv_relax_lui): Delete early exit when
93 SEC_MERGE or SEC_CODE flags are set.
94 (_bfd_riscv_relax_section): New local symtype. Set sym_sec and
95 symtype consistently. Don't include sec_addr (sym_sec) in symval.
96 Add check for SEC_INFO_TYPE_MERGE and call _bfd_merged_section_offset.
97 Add sec_addr (sym_sec) after handling merge sections.
98
99 2019-06-24 H.J. Lu <hongjiu.lu@intel.com>
100
101 PR ld/24721
102 * elf-properties.c (elf_merge_gnu_property_list): Remove the
103 property after reporting property removal.
104
105 2019-06-23 Alan Modra <amodra@gmail.com>
106
107 PR 24704
108 * elf64-ppc.c (R_PPC64_GOT16_DS): Don't set has_gotrel.
109 (ppc64_elf_edit_toc): Don't remove R_PPC64_GOT16_DS got entries.
110 Reduce range of offsets allowed for other GOT relocs.
111
112 2019-06-23 Alan Modra <amodra@gmail.com>
113
114 PR 24689
115 * elfcode.h (elf_object_p): Warning fix.
116
117 2019-06-21 Alan Modra <amodra@gmail.com>
118
119 PR 24689
120 * elfcode.h (elf_object_p): Check type of e_shstrndx section.
121
122 2019-06-19 Alan Modra <amodra@gmail.com>
123
124 PR 24697
125 * elf32-ppc.c (ppc_elf_relocate_section): Don't read insn for
126 R_PPC_EMB_RELSDA. Mask low bit of R_PPC_EMB_SDA21 r_offset.
127
128 2019-06-19 Alan Modra <amodra@gmail.com>
129
130 * elf64-ppc.c (ppc64_elf_inline_plt): Correct st_other test for
131 functions that require r2 valid to use local entry.
132 (ppc64_elf_size_stubs, ppc64_elf_relocate_section): Likewise.
133
134 2019-06-17 Szabolcs Nagy <szabolcs.nagy@arm.com>
135
136 * elfnn-aarch64.c (elfNN_aarch64_allocate_local_dynrelocs): Remove.
137 (elfNN_aarch64_size_dynamic_sections): Remove loc_hash_table traversal
138 with elfNN_aarch64_allocate_local_dynrelocs.
139
140 2019-06-14 Szabolcs Nagy <szabolcs.nagy@arm.com>
141
142 * elfnn-aarch64.c: Enable MOVW_PREL relocs for ELF32.
143
144 2019-06-14 Alan Modra <amodra@gmail.com>
145
146 * Makefile.in: Regenerate.
147 * configure: Regenerate.
148
149 2019-06-14 Alan Modra <amodra@gmail.com>
150
151 * elf64-ppc.c: Fix comments involving paddi.
152
153 2019-06-12 Adam Lackorzymski <adam@os.inf.tu-dresden.de>
154
155 PR 24643
156 * elf32-arm.c (arm_elf_find_function): Fail if the symol table is
157 absent, or the bfd is not in the ELF formart.
158 * elfnn-aarch64.c (aarch64_elf_find_function): Likewise.
159
160 2019-06-10 Christos Zoulas <christos@zoulas.com>
161
162 PR 24650
163 * elf.c (elfcore_make_auxv_note_section): New function.
164 (elfcore_grok_note): Use it.
165 (elfcore_grok_freebsd_note): Likewise.
166 (elfcore_grok_openbsd_note): Likewise.
167 (elfcore_grok_netbsd_note): Likewise. Plus add support for
168 NT_NETBSDCORE_AUXV notes.
169
170 2019-06-06 Sudakshina Das <sudi.das@arm.com>
171
172 * elfxx-aarch64.c (_bfd_aarch64_elf_link_setup_gnu_properties): Set
173 alignment of the new gnu property section.
174
175 2019-06-06 Sudakshina Das <sudi.das@arm.com>
176
177 * bfd-in.h: Change comment.
178 * bfd-in2.h: Regenerate.
179 * elfnn-aarch64.c (elfNN_aarch64_merge_gnu_properties): Update warning.
180 * elfxx-aarch64.c (_bfd_aarch64_elf_link_setup_gnu_properties):
181 Likwise.
182
183 2019-05-28 Faraz Shahbazker <fshahbazker@wavecomp.com>
184
185 * elfxx-mips.c (mips_elf_calculate_relocation) <R_MIPS_PCHI16>:
186 Remove overflow check.
187
188 2019-05-28 Alan Modra <amodra@gmail.com>
189
190 PR 24596
191 * cofflink.c (coff_link_check_archive_element): Don't assume
192 element is a coff object file after calling add_archive_element.
193
194 2019-05-28 Alan Modra <amodra@gmail.com>
195
196 PR 24596
197 * elf32-microblaze.c (microblaze_elf_finish_dynamic_sections): Don't
198 attempt to set sh_entsize for excluded PLT section.
199
200 2019-05-28 Alan Modra <amodra@gmail.com>
201
202 PR 24596
203 * elf64-alpha.c (elf64_alpha_relocate_section): Don't attempt
204 to emit R_ALPHA_GOTTPREL in PIEs, for which no space is
205 allocated in alpha_dynamic_entries_for_reloc.
206
207 2019-05-28 Alan Modra <amodra@gmail.com>
208
209 PR 24596
210 * elf32-lm32.c (lm32_elf_finish_dynamic_sections): Don't segfault
211 on NULL output_section.
212 * elflink.c (elf_final_link_free): Don't free -1 symshndxbuf.
213
214 2019-05-28 Alan Modra <amodra@gmail.com>
215
216 PR 24596
217 * elf32-m68k.c (elf_m68k_get_got_entry): Don't create a new
218 entry when MUST_FIND. Abort when MUST_FIND not found.
219 (elf_m68k_get_bfd2got_entry): Likewise.
220 (elf_m68k_relocate_section): Remove now useless assert.
221
222 2019-05-28 Alan Modra <amodra@gmail.com>
223
224 PR 24596
225 * elf64-hppa.c (elf64_hppa_finalize_dynreloc): Get the output bfd
226 from bfd_link_info, not an output section owner.
227 (elf64_hppa_finish_dynamic_symbol, elf64_hppa_finalize_opd): Likewise.
228 (elf_hppa_final_link_relocate): Likewise.
229
230 2019-05-28 Alan Modra <amodra@gmail.com>
231
232 PR 24596
233 * aout-tic30.c (MY_bfd_final_link): Don't segfault on missing
234 create_object_symbols_section, obj_textsec, obj_datasec or
235 obj_bsssec. Fix other errors in placement.
236 * config.bfd: Obsolete tic30-aout.
237
238 2019-05-28 Alan Modra <amodra@gmail.com>
239
240 PR 24596
241 * dwarf2.c (save_section_vma, section_vma_same): Check for NULL
242 end of section list as well as section_count.
243 * xcofflink.c (xcoff_link_add_symbols): Fix temporarily changed
244 section list before returning error.
245
246 2019-05-27 Alan Modra <amodra@gmail.com>
247
248 * elf.c (bfd_elf_set_group_contents): Exit on zero size section.
249
250 2019-05-27 Alan Modra <amodra@gmail.com>
251
252 PR 24596
253 * linker.c (_bfd_generic_link_output_symbols): Heed BSF_KEEP.
254
255 2019-05-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
256
257 * elfnn-aarch64.c (elfNN_aarch64_merge_symbol_attribute): New function.
258 (struct elf_aarch64_link_hash_table): Add variant_pcs member.
259 (elfNN_aarch64_allocate_dynrelocs): Update variant_pcs.
260 (elfNN_aarch64_size_dynamic_sections): Add DT_AARCH64_VARIANT_PCS.
261 (elf_backend_merge_symbol_attribute): Define.
262
263 2019-05-24 Alan Modra <amodra@gmail.com>
264
265 * po/SRC-POTFILES.in: Regenerate.
266
267 2019-05-24 Alan Modra <amodra@gmail.com>
268
269 * elf64-ppc.c: Comment on powerxx _notoc stub variants.
270 (LI_R11_0, LIS_R11, ORI_R11_R11_0, SLDI_R11_R11_34): Define.
271 (PADDI_R12_PC, PLD_R12_PC, D34, HA34): Define.
272 (struct ppc_link_hash_table): Add powerxx_stubs.
273 (ppc64_elf_check_relocs): Set powerxx_stubs.
274 (build_powerxx_offset, size_powerxx_offset),
275 (num_relocs_for_powerxx_offset),
276 (emit_relocs_for_powerxx_offset): New functions.
277 (plt_stub_size): Size powerxx stubs.
278 (ppc_build_one_stub): Emit powerxx stubs.
279 (ppc_size_one_stub): Size powerxx stubs. Omit .eh_frame for
280 powerxx stubs.
281
282 2019-05-24 Alan Modra <amodra@gmail.com>
283
284 * elf64-ppc.c (ppc64_elf_check_relocs): Set has_gotrel for
285 R_PPC64_GOT_PCREL34.
286 (xlate_pcrel_opt): New function.
287 (ppc64_elf_edit_toc): Handle R_PPC64_GOT_PCREL34.
288 (ppc64_elf_relocate_section): Edit GOT indirect to GOT relative
289 for R_PPC64_GOT_PCREL34. Implement R_PPC64_PCREL_OPT optimisation.
290
291 2019-05-24 Alan Modra <amodra@gmail.com>
292
293 * reloc.c (BFD_RELOC_PPC64_D34, BFD_RELOC_PPC64_D34_LO),
294 (BFD_RELOC_PPC64_D34_HI30, BFD_RELOC_PPC64_D34_HA30),
295 (BFD_RELOC_PPC64_PCREL34, BFD_RELOC_PPC64_GOT_PCREL34),
296 (BFD_RELOC_PPC64_PLT_PCREL34),
297 (BFD_RELOC_PPC64_ADDR16_HIGHER34, BFD_RELOC_PPC64_ADDR16_HIGHERA34),
298 (BFD_RELOC_PPC64_ADDR16_HIGHEST34, BFD_RELOC_PPC64_ADDR16_HIGHESTA34),
299 (BFD_RELOC_PPC64_REL16_HIGHER34, BFD_RELOC_PPC64_REL16_HIGHERA34),
300 (BFD_RELOC_PPC64_REL16_HIGHEST34, BFD_RELOC_PPC64_REL16_HIGHESTA34),
301 (BFD_RELOC_PPC64_D28, BFD_RELOC_PPC64_PCREL28): New reloc enums.
302 * elf64-ppc.c (PNOP): Define.
303 (ppc64_elf_howto_raw): Add reloc howtos for new relocations.
304 (ppc64_elf_reloc_type_lookup): Translate new bfd reloc numbers.
305 (ppc64_elf_ha_reloc): Adjust addend for highera34 and highesta34
306 relocs.
307 (ppc64_elf_prefix_reloc): New function.
308 (struct ppc_link_hash_table): Add notoc_plt.
309 (is_branch_reloc): Add R_PPC64_PLTCALL_NOTOC.
310 (is_plt_seq_reloc): Add R_PPC64_PLT_PCREL34,
311 R_PPC64_PLT_PCREL34_NOTOC, and R_PPC64_PLTSEQ_NOTOC.
312 (ppc64_elf_check_relocs): Handle pcrel got and plt relocs. Set
313 has_pltcall for section on seeing R_PPC64_PLTCALL_NOTOC. Handle
314 possible need for dynamic relocs on non-pcrel powerxx relocs.
315 (dec_dynrel_count): Handle non-pcrel powerxx relocs.
316 (ppc64_elf_inline_plt): Handle R_PPC64_PLTCALL_NOTOC.
317 (toc_adjusting_stub_needed): Likewise.
318 (ppc64_elf_tls_optimize): Handle R_PPC64_PLTSEQ_NOTOC.
319 (ppc64_elf_relocate_section): Handle new powerxx relocs.
320 * bfd-in2.h: Regenerate.
321 * libbfd.h: Regenerate.
322
323 2019-05-23 Jose E. Marchesi <jose.marchesi@oracle.com>
324
325 * config.bfd (targ_cpu): Process bpf-*-none only if BFD64.
326 * configure.ac: Set target_size=64 for bpf_elf64_le_vec and
327 bpf_elf64_be_vec.
328 * configure: Regenerate.
329
330 2019-05-23 Jose E. Marchesi <jose.marchesi@oracle.com>
331
332 * configure: Regenerated.
333 * Makefile.am (ALL_MACHINES): Add cpu-bpf.lo.
334 (ALL_MACHINES_CFILES): Add cpu-bpf.c.
335 (BFD64_BACKENDS): Add elf64-bpf.lo.
336 (BFD64_BACKENDS_CFILES): Add elf64-bpf.c.
337 * Makefile.in (SOURCE_HFILES): Regenerate.
338 * config.bfd (targ_cpu): Handle bpf-*-* targets.
339 * cpu-bpf.c: New file.
340 * elf64-bpf.c: Likewise.
341 * targets.c (_bfd_target_vector): Add bpf_elf64_be_vec and
342 bpf_elf64_le_vec.
343 * archures.c: Define architecture bfd_arch_bpf and machine
344 bfd_arch_bpf.
345 * reloc.c: Define BFD relocations used by the BPF target.
346 * bfd-in2.h: Regenerated.
347 * libbfd.h: Likewise.
348
349 2019-05-22 Alan Modra <amodra@gmail.com>
350
351 * elf32-arm.c (arm_allocate_glue_section_space): Clear section
352 contents.
353
354 2019-05-22 Alan Modra <amodra@gmail.com>
355
356 * vms-alpha.c (_bfd_vms_write_etir): Don't attempt further
357 processing on "size error in section".
358
359 2019-05-22 Alan Modra <amodra@gmail.com>
360
361 * som.c (som_bfd_free_cached_info): Call
362 _bfd_generic_close_and_cleanup.
363
364 2019-05-21 Faraz Shahbazker <fshahbazker@wavecomp.com>
365
366 * elfxx-mips.c (_bfd_mips_elf_check_relocs): Generate error
367 for TLS_TPREL_HI16(/LO16) relocations in shared library.
368
369 2019-05-21 Faraz Shahbazker <fshahbazker@wavecomp.com>
370
371 * elfxx-mips.c (_bfd_mips_elf_check_relocs): Add NULL pointer
372 checks. Search the RELA table for n64 relocations.
373
374 2019-05-21 Matthew Fortune <matthew.fortune@mips.com>
375 Faraz Shahbazker <fshahbazker@wavecomp.com>
376
377 * elfxx-mips.c (LA25_BC): New macro.
378 (mips_elf_link_hash_table)<compact_branches>: New field.
379 (STUB_JALRC): New macro.
380 (mipsr6_o32_exec_plt0_entry_compact): New array.
381 (mipsr6_n32_exec_plt0_entry_compact): Likewise.
382 (mipsr6_n64_exec_plt0_entry_compact): Likewise.
383 (mipsr6_exec_plt_entry_compact): Likewise.
384 (mips_elf_create_la25_stub): Use BC instead of J for stubs
385 when compact_branches is true.
386 (_bfd_mips_elf_finish_dynamic_symbol): Choose the compact
387 PLT for MIPSR6 with compact_branches. Do not reorder the
388 compact branches PLT. Switch the lazy stub for MIPSR6
389 with compact_branches to use JALRC.
390 (mips_finish_exec_plt): Choose the compact PLT0 for MIPSR6
391 when compact_branches is true.
392 (_bfd_mips_elf_compact_branches): New function.
393 * elfxx-mips.h (_bfd_mips_elf_compact_branches): New prototype.
394
395 2019-05-21 Tamar Christina <tamar.christina@arm.com>
396
397 PR ld/24373
398 * elfnn-aarch64.c (_bfd_aarch64_erratum_843419_branch_to_stub):
399 Fix print formatter.
400
401 2019-05-21 Andre Vieira <andre.simoesdiasvieira@arm.com>
402
403 PR 24460
404 * elf32-arm.c (get_value_helper): Remove.
405 (elf32_arm_final_link_relocate): Fix branch future relocations.
406
407 2019-05-21 Tamar Christina <tamar.christina@arm.com>
408
409 PR ld/24373
410 * bfd-in.h (enum erratum_84319_opts): New
411 (bfd_elf64_aarch64_set_options, bfd_elf32_aarch64_set_options): Change
412 int to enum erratum_84319_opts.
413 * bfd-in2.h: Regenerate.
414 * elfnn-aarch64.c (struct elf_aarch64_link_hash_table): Change
415 fix_erratum_843419 to use new enum, remove fix_erratum_843419_adr.
416 (_bfd_aarch64_add_stub_entry_after): Conditionally create erratum stub.
417 (aarch64_size_one_stub): Conditionally size erratum 843419 stubs.
418 (_bfd_aarch64_resize_stubs): Amend comment.
419 (elfNN_aarch64_size_stubs): Don't generate stubs when no workaround
420 requested.
421 (bfd_elfNN_aarch64_set_options): Use new fix_erratum_843419 enum.
422 (_bfd_aarch64_erratum_843419_branch_to_stub): Implement selection of
423 erratum workaround.
424 (clear_erratum_843419_entry): Update erratum conditional.
425
426 2019-05-21 Senthil Kumar Selvaraj <senthilkumar.selvaraj@microchip.com>
427
428 PR ld/24571
429 * bfd/elf32-avr.c (elf32_avr_relax_section): Adjust range check
430 when computing distance_short_enough.
431
432 2019-05-21 Senthil Kumar Selvaraj <senthilkumar.selvaraj@microchip.com>
433
434 PR ld/24564
435 * bfd/elf32-avr.c (avr_relative_distance_considering_wrap_around):
436 Wrap around even if distance equals avr_pc_wrap_around.
437
438 2019-05-20 Nick Clifton <nickc@redhat.com>
439
440 * po/fr.po: Updated French translation.
441
442 2019-05-16 Andre Vieira <andre.simoesdiasvieira@arm.com>
443
444 * elf32-arm.c (elf32_arm_merge_eabi_attributes): Add case for Tag_MVE_arch.
445
446 2019-05-16 Alan Modra <amodra@gmail.com>
447
448 * elf32-arm.c (elf32_arm_write_section): Revert last change.
449
450 2019-05-15 Alan Modra <amodra@gmail.com>
451
452 * elf32-arm.c (elf32_arm_write_section): Don't leave
453 error case of STM32L4XX_ERRATUM_BRANCH_TO_VENEER with
454 unitialised section contents.
455
456 2019-05-14 Jamey Hicks <jamey.hicks@gmail.com>
457
458 PR 19921
459 * verilog.c: (VerilogDataWidth): New variable.
460 (verilog_write_record): Emit bytes in VerilogDataWidth bundles.
461
462 2019-05-08 Nick Clifton <nickc@redhat.com>
463
464 PR 24523
465 * elf32-m68k.c (elf32_m68k_merge_private_bfd_data): Return TRUE
466 rather than FALSE if encountering a non-ELF file.
467
468 2019-05-06 Alan Modra <amodra@gmail.com>
469
470 * elf32-pj.c (pj_elf_reloc): Don't report undefined weak as an error.
471
472 2019-05-06 Alan Modra <amodra@gmail.com>
473
474 * reloc.c (BFD_RELOC_PPC64_TPREL16_HIGH, BFD_RELOC_PPC64_TPREL16_HIGHA),
475 (BFD_RELOC_PPC64_DTPREL16_HIGH, BFD_RELOC_PPC64_DTPREL16_HIGHA):
476 Sort before BFD_RELOC_PPC64_DTPREL16_HIGHESTA entry.
477 * libbfd.h: Regenerate.
478 * bfd-in2.h: Regenerate.
479
480 2019-05-04 Alan Modra <amodra@gmail.com>
481
482 PR 24511
483 * syms.c (coff_section_type): Only allow '.', '$' and numeric
484 following the standard section names.
485 (bfd_decode_symclass): Prioritize section flag tests in
486 decode_section_type before name tests in coff_section_type.
487 * plugin.c (bfd_plugin_canonicalize_symtab): Init fake_section
488 and fake_common_section using BFD_FAKE_SECTION. Use "fake" as
489 their names and choose standard .text section flags for
490 fake_section.
491
492 2019-05-02 Nick Clifton <nickc@redhat.com>
493
494 PR 24493
495 * coffcode.h (styp_to_sec_flags): Treat .gnu.debuglink and
496 .gnu.debugaltlink sections as debugging sections.
497
498 2019-04-30 Alan Modra <amodra@gmail.com>
499
500 * elf64-ppc.c (struct ppc64_elf_obj_tdata): Add has_gotrel.
501 (struct _ppc64_elf_section_data): Likewise.
502 (ppc64_elf_check_relocs): Set above fields.
503 (ppc64_elf_edit_toc): Add a pass over GOT relocs.
504 (ppc64_elf_relocate_section): Edit GOT indirect to GOT relative
505 when possible.
506
507 2019-04-26 H.J. Lu <hongjiu.lu@intel.com>
508
509 PR ld/24486
510 * elflink.c (elf_link_output_extsym): Don't complain undefined
511 weak dynamic reference.
512
513 2019-04-25 Sudakshina Das <sudi.das@arm.com>
514
515 * elfnn-aarch64.c (PLT_BTI_ENTRY_SIZE): Remove.
516 (PLT_BTI_TLSDESC_ENTRY_SIZE): Remove.
517 (PLT_PAC_ENTRY_SIZE, PLT_BTI_PAC_ENTRY_SIZE): Remove.
518 (PLT_BTI_SMALL_ENTRY_SIZE, PLT_PAC_SMALL_ENTRY_SIZE): Update.
519 (elfNN_aarch64_small_plt0_pac_entry): Remove.
520 (elfNN_aarch64_small_plt0_bti_pac_entry): Remove.
521 (elfNN_aarch64_small_plt0_bti_entry): Update.
522 (elfNN_aarch64_small_plt_bti_entry): Update.
523 (elfNN_aarch64_small_plt_pac_entry): Update.
524 (elfNN_aarch64_tlsdesc_small_plt_bti_entry): Update.
525 (setup_plt_values): Setup new entries.
526 (elfNN_aarch64_finish_dynamic_sections): Remove size change.
527 (elfNN_aarch64_plt_sym_val): Likewise.
528
529 2019-04-22 Jim Wilson <jimw@sifive.com>
530
531 * elfnn-riscv.c (PRSTATUS_SIZE) [ARCH_SIZE==32]: Change from 0 to 204.
532
533 2019-04-19 Alan Modra <amodra@gmail.com>
534
535 * elf32-s12z.c (elf_backend_can_gc_sections): Don't define
536
537 2019-04-17 H.J. Lu <hongjiu.lu@intel.com>
538
539 * elf64-x86-64.c (elf_x86_64_need_pic): Suggest -fPIE when not
540 building shared object.
541 * elfxx-x86.c (_bfd_x86_elf_size_dynamic_sections): Likewise.
542
543 2019-04-17 H.J. Lu <hongjiu.lu@intel.com>
544
545 PR ld/24458
546 * elfxx-x86.h (SYMBOL_DEFINED_NON_SHARED_P): Also check x86
547 linker_def.
548
549 2019-04-15 Thomas Preud'homme <thomas.preudhomme@arm.com>
550
551 * reloc.c (BFD_RELOC_ARM_T32_VLDR_VSTR_OFF_IMM): New internal
552 relocation.
553 * bfd-in2.h: Regenerate.
554 * libbfd.h: Likewise.
555
556 2019-04-15 Sudakshina Das <sudi.das@arm.com>
557
558 * reloc.c (BFD_RELOC_ARM_THUMB_LOOP12): New.
559 * bfd-in2.h: Regenerated.
560 * libbfd.h: Regenerated.
561
562 2019-04-15 Sudakshina Das <sudi.das@arm.com>
563
564 * reloc.c (BFD_RELOC_THUMB_PCREL_BFCSEL): New relocation.
565 * bfd-in2.h: Regenerated.
566 * libbfd.h: Likewise.
567
568 2019-04-15 Sudakshina Das <sudi.das@arm.com>
569
570 * reloc.c (BFD_RELOC_ARM_THUMB_BF13): New.
571 * bfd-in2.h: Regenerated.
572 * libbfd.h: Regenerated.
573 * elf32-arm.c (elf32_arm_howto_table_1): New entry for R_ARM_THM_BF13.
574 (elf32_arm_reloc_map elf32_arm_reloc_map): Map BFD_RELOC_ARM_THUMB_BF13
575 and R_ARM_THM_BF12 together.
576 (elf32_arm_final_link_relocate): New switch case for R_ARM_THM_BF13.
577
578 2019-04-15 Sudakshina Das <sudi.das@arm.com>
579
580 * reloc.c (BFD_RELOC_ARM_THUMB_BF19): New
581 * libbfd.h: Regenerated.
582 * bfd-in2.h: Regenerated.
583 * bfd-elf32-arm.c (elf32_arm_howto_table_1): New entry for R_ARM_THM_BF18.
584 (elf32_arm_reloc_map elf32_arm_reloc_map): Map BFD_RELOC_ARM_THUMB_BF19
585 and R_ARM_THM_BF18 together.
586 (elf32_arm_final_link_relocate): New switch case for R_ARM_THM_BF19.
587
588 2019-04-15 Sudakshina Das <sudi.das@arm.com>
589
590 * reloc.c (BFD_RELOC_ARM_THUMB_BF17): New enum.
591 * bfd-in2.h: Regenerated.
592 * libbfd.h: Regenerated.
593 * bfd-elf32-arm.c (elf32_arm_howto_table_1): New entry for R_ARM_THM_BF16.
594 (elf32_arm_reloc_map elf32_arm_reloc_map): Map BFD_RELOC_ARM_THUMB_BF17
595 and R_ARM_THM_BF16 together.
596 (get_value_helper): New reloc helper.
597 (elf32_arm_final_link_relocate): New switch case for R_ARM_THM_BF16.
598
599 2019-04-15 Sudakshina Das <sudi.das@arm.com>
600
601 * reloc.c (BFD_RELOC_THUMB_PCREL_BRANCH5): New enum.
602 * bfd-in2.h: Regenerate.
603 * libbfd.h: Regenerate.
604
605 2019-04-15 Thomas Preud'homme <thomas.preudhomme@arm.com>
606
607 * archures.c (bfd_mach_arm_8_1M_MAIN): Define.
608 * bfd-in2.h: Regenerate.
609 * cpu-arm.c (arch_info_struct): Add entry for Armv8.1-M Mainline.
610 * elf32-arm.c (using_thumb_only): Return true for Armv8.1-M Mainline
611 and update assert.
612 (using_thumb2): Likewise.
613 (using_thumb2_bl): Update assert.
614 (arch_has_arm_nop): Likewise.
615 (bfd_arm_get_mach_from_attributes): Add case for Armv8.1-M Mainline.
616 (tag_cpu_arch_combine): Add logic for Armv8.1-M Mainline merging.
617
618 2019-04-11 H.J. Lu <hongjiu.lu@intel.com>
619
620 * elf-linker-x86.h (elf_x86_cet_report): New.
621 (elf_linker_x86_params): Add cet_report.
622 * elfxx-x86.c (_bfd_x86_elf_link_setup_gnu_properties): Report
623 missing IBT and SHSTK properties if needed.
624
625 2019-04-11 H.J. Lu <hongjiu.lu@intel.com>
626
627 PR ld/24436
628 * elf-m10300.c (mn10300_elf_check_relocs): Remove BFD_ASSERT of
629 "h != NULL". Don't check "h != NULL" before calling.
630 bfd_elf_gc_record_vtentry.
631 * elf32-arm.c (elf32_arm_check_relocs): Likewise.
632 * elf32-bfin.c (bfin_check_relocs): Likewise.
633 * elf32-cris.c (cris_elf_check_relocs): Likewise.
634 * elf32-csky.c (csky_elf_check_relocs): Likewise.
635 * elf32-d10v.c (elf32_d10v_check_relocs): Likewise.
636 * elf32-dlx.c (elf32_dlx_check_relocs): Likewise.
637 * elf32-fr30.c (fr30_elf_check_relocs): Likewise.
638 * elf32-frv.c (elf32_frv_check_relocs): Likewise.
639 * elf32-hppa.c (elf32_hppa_check_relocs): Likewise.
640 * elf32-i386.c (elf_i386_check_relocs): Likewise.
641 * elf32-iq2000.c (iq2000_elf_check_relocs): Likewise.
642 * elf32-m32r.c (m32r_elf_check_relocs): Likewise.
643 * elf32-m68hc1x.c (elf32_m68hc11_check_relocs): Likewise.
644 * elf32-m68k.c (elf_m68k_check_relocs): Likewise.
645 * elf32-mcore.c (mcore_elf_check_relocs): Likewise.
646 * elf32-metag.c (elf_metag_check_relocs): Likewise.
647 * elf32-or1k.c (or1k_elf_check_relocs): Likewise.
648 * elf32-ppc.c (ppc_elf_check_relocs): Likewise.
649 * elf32-s390.c (elf_s390_check_relocs): Likewise.
650 * elf32-sh.c (sh_elf_check_relocs): Likewise.
651 * elf32-v850.c (v850_elf_check_relocs): Likewise.
652 * elf32-vax.c (elf_vax_check_relocs): Likewise.
653 * elf32-xstormy16.c (xstormy16_elf_check_relocs): Likewise.
654 * elf32-xtensa.c (elf_xtensa_check_relocs): Likewise.
655 * elf64-mmix.c (mmix_elf_check_relocs): Likewise.
656 * elf64-ppc.c (ppc64_elf_check_relocs): Likewise.
657 * elf64-s390.c (elf_s390_check_relocs): Likewise.
658 * elf64-x86-64.c (elf_s390_check_relocs): Likewise.
659 * elfxx-mips.c (_bfd_mips_elf_check_relocs): Likewise.
660 * elfxx-sparc.c (_bfd_sparc_elf_check_relocs): Likewise.
661 * elflink.c (bfd_elf_gc_record_vtinherit): Check for corrupt
662 VTENTRY entry.
663
664 2019-04-11 Alan Modra <amodra@gmail.com>
665
666 PR 24435
667 * elflink.c (elf_link_add_object_symbols): Don't read partial
668 dynamic entries from fuzzed objects.
669
670 2019-04-11 Tamar Christina <tamar.christina@arm.com>
671
672 PR ld/24302
673 * elfnn-aarch64.c (elfNN_aarch64_size_dynamic_sections): Don't emit
674 DT_TLSDESC_GOT and DT_TLSDESC_PLT when DF_BIND_NOW.
675 (elfNN_aarch64_finish_dynamic_sections): Don't write PLT if DF_BIND_NOW.
676
677 2019-04-10 Michael Forney <mforney@mforney.org>
678
679 PR 24427
680 * doc/chew.c (free_words): Correctly free "push_text" strings.
681
682 2019-04-08 H.J. Lu <hongjiu.lu@intel.com>
683
684 * config.bfd: Remove i[3-7]86-*-kaos* and i[3-7]86-*-chaos targets.
685
686 2019-04-08 Alan Modra <amodra@gmail.com>
687
688 * configure.ac (elfxx_x86): Define and use.
689 * configure: Regenerate.
690
691 2019-04-06 H.J. Lu <hongjiu.lu@intel.com>
692
693 * elf-linker-x86.h: New file.
694 * elf32-i386.c (elf_i386_convert_load_reloc): Use htab->params
695 to get x86-specific linker options.
696 * elf64-x86-64.c (elf_x86_64_convert_load_reloc): Likewise.
697 (elf_x86_64_check_relocs): Likewise.
698 (elf_x86_64_relocate_section): Likewise.
699 (elf_x86_64_link_setup_gnu_properties): Likewise.
700 * elfxx-x86.c (_bfd_x86_elf_merge_gnu_properties): Likewise.
701 (_bfd_x86_elf_link_setup_gnu_properties): Likewise.
702 (_bfd_elf_linker_x86_set_options): New function.
703 * elfxx-x86.h: Include "elf-linker-x86.h".
704 (elf_x86_link_hash_table): Add params.
705
706 2019-04-03 Alan Modra <amodra@gmail.com>
707
708 * coff-i386.c, * coff-x86_64.c, * coffgen.c, * dwarf2.c,
709 * elf-m10200.c, * elf.c, * elf32-arm.c, * elf32-bfin.c,
710 * elf32-csky.c, * elf32-m32r.c, * elf32-microblaze.c, * elf32-pru.c,
711 * elf32-rx.c, * elf32-xgate.c, * elf64-sparc.c, * elfnn-ia64.c,
712 * elfxx-riscv.c, * elfxx-sparc.c, * linker.c, * mach-o.c,
713 * pe-x86_64.c, * pei-x86_64.c, * plugin.c: Whitespace fixes.
714
715 2019-04-02 Jim Wilson <jimw@sifive.com>
716
717 PR 24389
718 * elfnn-riscv.c (_bfd_riscv_elf_merge_private_bfd_data): Move read of
719 ELF header flags to after check for ELF object file. Loop through
720 sections looking for code sections, if none, then skip ABI checks.
721
722 2019-03-30 Andrew Waterman <andrew@sifive.com>
723
724 * elfnn-riscv.c (_bfd_riscv_relax_call): Only check ARCH_SIZE for
725 rd == X_RA case.
726
727 2019-03-29 Max Filippov <jcmvbkbc@gmail.com>
728
729 * elf32-xtensa.c (shrink_dynamic_reloc_sections): Add
730 info->export_dynamic to the conditional.
731
732 2019-03-28 Alan Modra <amodra@gmail.com>
733
734 PR 24392
735 * configure.ac: Invoke AC_CHECK_SIZEOF(int).
736 * configure: Regenerate.
737 * coffgen.c (coff_get_reloc_upper_bound): Replace gcc diagnostic
738 workaround with SIZEOF_LONG vs. SIZEOF_INT check.
739 * elf.c (_bfd_elf_get_reloc_upper_bound): Likewise.
740 * elf64-sparc.c (elf64_sparc_get_reloc_upper_bound): Likewise.
741 * mach-o.c (bfd_mach_o_get_reloc_upper_bound): Likewise.
742
743 2019-03-21 Jim Wilson <jimw@sifive.com>
744
745 PR 24365
746 * elfnn-riscv.c (riscv_elf_relocate_section): For STT_SECTION check,
747 verify sym non-NULL before using. Add identical check using h.
748
749 2019-03-21 Sudakshina Das <sudi.das@arm.com>
750
751 * elf-bfd.h (struct elf_backend_data): Add argument to
752 merge_gnu_properties.
753 * elf-properties.c (elf_merge_gnu_properties): Add argument to
754 itself and while calling bed->merge_gnu_properties.
755 (elf_merge_gnu_property_list): Update the calls for
756 elf_merge_gnu_properties.
757 * elfnn-aarch64.c (elfNN_aarch64_merge_gnu_properties): Update handling
758 of --force-bti warning and add argument.
759 * elfxx-aarch64.c (_bfd_aarch64_elf_link_setup_gnu_properties): Add
760 warning.
761 * elfxx-x86.c (_bfd_x86_elf_merge_gnu_properties): Add argument.
762 * elfxx-x86.h (_bfd_x86_elf_merge_gnu_properties): Likewise in
763 declaration.
764
765 2019-03-20 Sudakshina Das <sudi.das@arm.com>
766
767 * elfxx-aarch64.c (_bfd_aarch64_elf_link_fixup_gnu_properties): Define.
768 * elfxx-aarch64.h (_bfd_aarch64_elf_link_fixup_gnu_properties): Declare.
769 (elf_backend_fixup_gnu_properties): Define for AArch64.
770
771 2019-03-18 Alan Modra <amodra@gmail.com>
772
773 PR 24355
774 * elf32-ppc.c (ppc_finish_symbols): Don't call write_glink_stub
775 for local iplt syms with ent->plt.offset == -1. Remove ineffective
776 attempt at writing glink stubs only once.
777
778 2019-03-16 Alan Modra <amodra@gmail.com>
779
780 PR 24337
781 * elf.c (_bfd_elf_rela_local_sym): Revert last change.
782 (_bfd_elf_rel_local_sym): Likewise.
783 * elflink.c (elf_link_input_bfd): Use bfd_und_section for
784 section of symbols with unrecognized shndx.
785
786 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
787
788 PR ld/24267
789 * coffgen.c (_bfd_coff_section_already_linked): Skip discarded
790 section.
791 * cofflink.c (coff_link_add_symbols): Check for symbols defined
792 in discarded section.
793
794 2019-03-15 Alan Modra <amodra@gmail.com>
795
796 PR 24339
797 * elflink.c (elf_link_add_object_symbols): Bail out on a local
798 symbol after globals if elf_bad_symtab is not set.
799
800 2019-03-15 Alan Modra <amodra@gmail.com>
801
802 PR 24337
803 * elf.c (_bfd_elf_rela_local_sym): Don't segfault on NULL sec.
804 (_bfd_elf_rel_local_sym): Likewise.
805
806 2019-03-15 Alan Modra <amodra@gmail.com>
807
808 PR 24336
809 * elflink.c (elf_link_read_relocs_from_section): Handle fuzzed
810 object files with sh_size not a multiple of sh_entsize.
811
812 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
813
814 PR ld/24338
815 * elf64-x86-64.c (elf_x86_64_relocate_section): Check for corrupt
816 input with bad relocation.
817
818 22019-03-15 H.J. Lu <hongjiu.lu@intel.com>
819
820 * elf64-x86-64.c (elf_x86_64_relocate_section): Re-indent.
821
822 2019-03-14 Nick Clifton <nickc@redhat.com>
823
824 PR 24334
825 * dwarf2.c (struct dwarf2_debug): Add sec_vma_count field.
826 (save_section_vma): Initialise field to the number of entries in
827 the sec_vma table.
828 (section_vma_same): Check that the number of entries in the
829 sec_vma table matches the number of sections in the bfd.
830
831 2019-03-14 Nick Clifton <nickc@redhat.com>
832
833 PR 24333
834 * elflink.c (_bfd_elf_add_default_symbol): Add a check for a NULL
835 section owner pointer when adding the default symbol.
836
837 2019-03-14 Nick Clifton <nickc@redhat.com>
838
839 PR 24332
840 * elflink.c (elf_link_add_object_symbols): Add new local variable
841 extversym_end. Initialise it to point to the end of the version
842 symbol table, if present. Check it when initialising and updating
843 the ever pointer.
844
845 2019-03-13 Sudakshina Das <sudi.das@arm.com>
846
847 * elfnn-aarch64.c (PLT_PAC_ENTRY_SIZE, PLT_PAC_SMALL_ENTRY_SIZE): New.
848 (PLT_BTI_PAC_ENTRY_SIZE, PLT_BTI_PAC_SMALL_ENTRY_SIZE): New.
849 (setup_plt_values): Account for PAC or PAC and BTI enabled PLTs.
850 (elfNN_aarch64_size_dynamic_sections): Add checks for PLT_BTI_PAC
851 and PLT_PAC_PLT.
852 (elfNN_aarch64_finish_dynamic_sections): Account for PLT_BTI_PAC.
853 (get_plt_type): Add case for DT_AARCH64_PAC_PLT.
854 (elfNN_aarch64_plt_sym_val): Add cases for PLT_BTI_PAC and PLT_PAC.
855
856 2019-03-13 Sudakshina Das <sudi.das@arm.com>
857 Szabolcs Nagy <szabolcs.nagy@arm.com>
858
859 * bfd-in.h (aarch64_plt_type, aarch64_enable_bti_type): New.
860 (aarch64_bti_pac_info): New.
861 (bfd_elf64_aarch64_set_options): Add aarch64_bti_pac_info argument.
862 (bfd_elf32_aarch64_set_options): Likewise.
863 * bfd-in2.h: Regenerate
864 * elfnn-aarch64.c (PLT_BTI_ENTRY_SIZE): New.
865 (PLT_BTI_SMALL_ENTRY_SIZE, PLT_BTI_TLSDESC_ENTRY_SIZE): New.
866 (elfNN_aarch64_small_plt0_bti_entry): New.
867 (elfNN_aarch64_small_plt_bti_entry): New.
868 (elfNN_aarch64_tlsdesc_small_plt_bti_entry): New.
869 (elf_aarch64_obj_tdata): Add no_bti_warn and plt_type fields.
870 (elf_aarch64_link_hash_table): Add plt0_entry, plt_entry and
871 tlsdesc_plt_entry_size fields.
872 (elfNN_aarch64_link_hash_table_create): Initialise the new fields.
873 (setup_plt_values): New helper function.
874 (bfd_elfNN_aarch64_set_options): Use new bp_info to set plt sizes and
875 bti enable type.
876 (elfNN_aarch64_allocate_dynrelocs): Use new size members instead of
877 fixed macros.
878 (elfNN_aarch64_size_dynamic_sections): Likewise and add checks.
879 (elfNN_aarch64_create_small_pltn_entry): Use new generic pointers
880 to plt stubs instead of fixed ones and update filling them according
881 to the need for bti.
882 (elfNN_aarch64_init_small_plt0_entry): Likewise.
883 (elfNN_aarch64_finish_dynamic_sections): Likewise.
884 (get_plt_type, elfNN_aarch64_get_synthetic_symtab): New.
885 (elfNN_aarch64_plt_sym_val): Update size accordingly.
886 (elfNN_aarch64_link_setup_gnu_properties): Set up plts if BTI GNU NOTE
887 is set.
888 (bfd_elfNN_get_synthetic_symtab): Define.
889 (elfNN_aarch64_merge_gnu_properties): Give out warning with --force-bti
890 and mising BTI NOTE SECTION.
891
892
893 2019-03-13 Sudakshina Das <sudi.das@arm.com>
894
895 * elf-properties.c (_bfd_elf_link_setup_gnu_properties): Exclude
896 linker created inputs from merge.
897 * elfnn-aarch64.c (struct elf_aarch64_obj_tdata): Add field for
898 GNU_PROPERTY_AARCH64_FEATURE_1_AND properties.
899 (elfNN_aarch64_link_setup_gnu_properties): New.
900 (elfNN_aarch64_merge_gnu_properties): New.
901 (elf_backend_setup_gnu_properties): Define for AArch64.
902 (elf_backend_merge_gnu_properties): Likewise.
903 * elfxx-aarch64.c (_bfd_aarch64_elf_link_setup_gnu_properties): Define.
904 (_bfd_aarch64_elf_parse_gnu_properties): Define.
905 (_bfd_aarch64_elf_merge_gnu_properties): Define.
906 * elfxx-aarch64.h (_bfd_aarch64_elf_link_setup_gnu_properties): Declare.
907 (_bfd_aarch64_elf_parse_gnu_properties): Declare.
908 (_bfd_aarch64_elf_merge_gnu_properties): Declare.
909 (elf_backend_parse_gnu_properties): Define for AArch64.
910
911 2019-03-13 H.J. Lu <hongjiu.lu@intel.com>
912
913 PR ld/24322
914 * elfxx-x86.c (_bfd_x86_elf_merge_gnu_properties): Properly
915 merge GNU_PROPERTY_X86_FEATURE_1_[IBT|SHSTK].
916
917 2019-03-12 Alan Modra <amodra@gmail.com>
918
919 * coffcode.h (buy_and_read): Delete unnecessary forward decl. Add
920 nmemb parameter. Use bfd_alloc2.
921 (coff_slurp_line_table): Use bfd_alloc2. Update buy_and_read calls.
922 Delete assertion.
923 (coff_slurp_symbol_table): Use bfd_alloc2 and bfd_zalloc2.
924 (coff_slurp_reloc_table): Use bfd_alloc2. Update buy_and_read calls.
925 * coffgen.c (coff_get_reloc_upper_bound): Ensure size calculation
926 doesn't overflow.
927 * elf.c (bfd_section_from_shdr): Use bfd_zalloc2. Style fix.
928 (assign_section_numbers): Style fix.
929 (swap_out_syms): Use bfd_malloc2.
930 (_bfd_elf_get_reloc_upper_bound): Ensure size calculation doesn't
931 overflow.
932 (_bfd_elf_make_empty_symbol): Style fix.
933 (elfobj_grok_stapsdt_note_1): Formatting.
934 * elfcode.h (elf_object_p): Use bfd_alloc2.
935 (elf_write_relocs, elf_write_shdrs_and_ehdr): Likewise.
936 (elf_slurp_symbol_table): Use bfd_zalloc2.
937 (elf_slurp_reloc_table): Use bfd_alloc2.
938 (_bfd_elf_bfd_from_remote_memory): Use bfd_malloc2.
939 * elf64-sparc (elf64_sparc_get_reloc_upper_bound): Ensure
940 size calculation doesn't overflow.
941 (elf64_sparc_get_dynamic_reloc_upper_bound): Likewise.
942 * mach-o.c (bfd_mach_o_get_reloc_upper_bound): Likewise.
943 * pdp11.c (get_reloc_upper_bound): Copy aoutx.h version.
944
945 2019-03-08 Alan Modra <amodra@gmail.com>
946
947 PR 24311
948 * merge.c (merge_strings): Return secinfo. Don't pad section
949 to alignment here.
950 (_bfd_merge_sections): Pad section to alignment here, if input
951 sections contributing to merged output all pad to alignment.
952 Formatting.
953
954 2019-03-06 Nick Clifton <nickc@redhat.com>
955
956 * dwarf2.c (_bfd_dwarf2_find_symbol_bias): Check for a NULL symbol
957 table pointer.
958 * coffgen.c (coff_find_nearest_line_with_names): Do not call
959 _bfd_dwarf2_find_symbol_bias if there is no symbol table available.
960
961 2019-03-01 Andreas Krebbel <krebbel@linux.ibm.com>
962
963 This reverts commit 5a12586d44fa8d5dfc74cbca4f2f36a273a16335.
964 2019-01-14 Maamoun Tarsha <maamountk@hotmail.com>
965
966 PR 20113
967 * elf32-s390.c (allocate_dynrelocs): Update comment.
968
969 2019-02-28 Tamar Christina <tamar.christina@arm.com>
970
971 * elf-eh-frame.c (_bfd_elf_write_section_eh_frame): Correct CIE parse.
972
973 2019-02-28 Nick Clifton <nickc@redhat.com>
974
975 PR 24273
976 * elf.c (bfd_elf_string_from_elf_section): Check for a string
977 section that is not NUL terminated.
978
979 2019-02-27 H.J. Lu <hongjiu.lu@intel.com>
980
981 PR ld/24276
982 * elf64-x86-64.c (elf_x86_64_check_relocs): Skip symbol defined
983 by linker when checking copy reloc on protected symbol.
984
985 2019-02-24 Alan Modra <amodra@gmail.com>
986
987 PR 24144
988 * pdp11.c (set_section_contents): Revert 2015-02-24 change.
989
990 2019-02-20 Eric Tsai <erictsai@cadence.com>
991
992 * elf32-xtensa.c (is_resolvable_asm_expansion): Scan output
993 sections between the call site and call destination and adjust
994 call distance by the largest alignment.
995
996 2019-02-20 Alan Hayward <alan.hayward@arm.com>
997
998 * elf-bfd.h (elfcore_write_aarch_pauth): Add declaration.
999 * elf.c (elfcore_grok_aarch_pauth): New function.
1000 (elfcore_grok_note): Check for NT_ARM_PAC_MASK.
1001 (elfcore_write_aarch_pauth): New function.
1002 (elfcore_write_register_note): Check for AArch64 pauth section.
1003
1004 2019-02-20 Alan Modra <amodra@gmail.com>
1005
1006 PR 24225
1007 * elf32-nios2.c (nios2_elf32_relocate_section): Check asprintf
1008 return value.
1009
1010 2019-02-20 Michael Roitzsch <reactorcontrol@icloud.com>
1011
1012 * configure.ac (SHARED_LIBADD): Add -liberty -lintl for all
1013 Darwin hosts, not just or1k.
1014 * configure: Regenerate.
1015
1016 2019-02-20 Alan Modra <amodra@gmail.com>
1017
1018 PR 24236
1019 * archive64.c (_bfd_archive_64_bit_slurp_armap): Move code adding
1020 sentinel NUL to string buffer nearer to loop where it is used.
1021 Don't go past sentinel when scanning strings, and don't write
1022 NUL again.
1023 * archive.c (do_slurp_coff_armap): Simplify string handling to
1024 archive64.c style.
1025
1026 2019-02-19 Alan Modra <amodra@gmail.com>
1027
1028 PR 24235
1029 * pei-x86_64.c (pex64_bfd_print_pdata_section): Correct checks
1030 attempting to prevent read past end of section.
1031
1032 2019-02-18 Alan Modra <amodra@gmail.com>
1033
1034 PR 24225
1035 * elf32-nios2.c (nios2_elf32_relocate_section): Use asprintf and
1036 PRIx64 to generate warning messages. Print local sym names too.
1037
1038 2019-02-09 Vineet Gupta <vgupta@synopsys.com>
1039
1040 * elf32-arc (INIT_SYM_STRING): Delete.
1041 (FINI_SYM_STRING): Likewise.
1042 (init_str): Likewise.
1043 (fini_str): Likewise.
1044
1045 2019-02-08 Alan Modra <amodra@gmail.com>
1046
1047 * elf32-ppc.c (ppc_elf_relocate_section): Add %X to "unsupported
1048 for bss-plt" warning to make it an error.
1049
1050 2019-02-07 Eric Botcazou <ebotcazou@adacore.com>
1051
1052 PR ld/18841
1053 * elf32-sparc.c (elf32_sparc_reloc_type_class): Return
1054 reloc_class_ifunc for ifunc symbols.
1055 * elf64-sparc.c (elf64_sparc_reloc_type_class): Likewise.
1056
1057 2019-02-07 Eric Botcazou <ebotcazou@adacore.com>
1058
1059 * elf32-visium.c (visium_elf_howto_parity_reloc): Minor tweak.
1060 <R_VISIUM_PC16>: Use explicit range test to detect an overflow.
1061
1062 2019-02-07 Nick Clifton <nickc@redhat.com>
1063
1064 * config.bfd: Move the powerpc-lynxos and powerpc-windiss targets
1065 into the definitely obsolete list.
1066
1067 2019-02-05 H.J. Lu <hongjiu.lu@intel.com>
1068
1069 PR ld/24151
1070 * elf64-x86-64.c (elf_x86_64_need_pic): Check
1071 SYMBOL_DEFINED_NON_SHARED_P instead of def_regular.
1072 (elf_x86_64_relocate_section): Move PIC check for PC-relative
1073 relocations to ...
1074 (elf_x86_64_check_relocs): Here.
1075 (elf_x86_64_finish_dynamic_symbol): Use SYMBOL_DEFINED_NON_SHARED_P
1076 to check if a symbol is defined in a non-shared object.
1077 * elfxx-x86.h (SYMBOL_DEFINED_NON_SHARED_P): New.
1078
1079 2019-01-21 Sergio Durigan Junior <sergiodj@redhat.com>
1080
1081 * elf32-arm.c (elf32_arm_final_link_relocate): Use 'llabs' instead
1082 of 'labs' (and fix GCC warning).
1083
1084 2019-01-25 Nick Clifton <nickc@redhat.com>
1085
1086 * po/ru.po: Updated Russian translation.
1087
1088 2019-01-23 Nick Clifton <nickc@redhat.com>
1089
1090 * po/fr.po: Updated French translation.
1091
1092 2019-01-21 Nick Clifton <nickc@redhat.com>
1093
1094 * po/pt.po: Updated Portuguese translation.
1095 * po/uk.po: Updated Ukranian translation.
1096
1097 2019-01-21 Yuri Chornoivan <yurchor@ukr.net>
1098
1099 PR 24108
1100 * elf32-nds32.c (nds32_relocate_section): Add space between words
1101 in error message.
1102 * elfnn-riscv.c (riscv_version_mismatch): Fix spelling mistake in
1103 error message.
1104 (riscv_i_or_e_p): Likewise.
1105 (riscv_merge_arch_attr_info): Likewise.
1106
1107 2019-01-19 Nick Clifton <nickc@redhat.com>
1108
1109 * version.m4: Reset to 2.32.51
1110 * configure: Regenerate.
1111 * po/bfd.pot: Regenerate.
1112
1113 2018-06-24 Nick Clifton <nickc@redhat.com>
1114
1115 2.32 branch created.
1116
1117 2019-01-16 Kito Cheng <kito@andestech.com>
1118
1119 * elf-attrs.c (vendor_obj_attr_size): Return 0 if size is 0 even
1120 for OBJ_ATTR_PROC.
1121
1122 2019-01-16 Kito Cheng <kito@andestech.com>
1123 Nelson Chu <nelson@andestech.com>
1124
1125 * elfnn-riscv.c (in_subsets): New.
1126 (out_subsets): Likewise.
1127 (merged_subsets): Likewise.
1128 (riscv_std_ext_p): Likewise.
1129 (riscv_non_std_ext_p): Likewise.
1130 (riscv_std_sv_ext_p): Likewise.
1131 (riscv_non_std_sv_ext_p): Likewise.
1132 (riscv_version_mismatch): Likewise.
1133 (riscv_i_or_e_p): Likewise.
1134 (riscv_merge_std_ext): Likewise.
1135 (riscv_merge_non_std_and_sv_ext): Likewise.
1136 (riscv_merge_arch_attr_info): Likewise.
1137 (riscv_merge_attributes): Likewise.
1138 (_bfd_riscv_elf_merge_private_bfd_data): Merge attribute.
1139
1140 * elfnn-riscv.c (riscv_elf_obj_attrs_arg_type): New.
1141 (elf_backend_obj_attrs_vendor): Define.
1142 (elf_backend_obj_attrs_section_type): Likewise.
1143 (elf_backend_obj_attrs_section): Likewise.
1144 (elf_backend_obj_attrs_arg_type): Define as
1145 riscv_elf_obj_attrs_arg_type.
1146 * elfxx-riscv.c (riscv_estimate_digit): New.
1147 (riscv_estimate_arch_strlen1): Likewise.
1148 (riscv_estimate_arch_strlen): Likewise.
1149 (riscv_arch_str1): Likewise.
1150 (riscv_arch_str): Likewise.
1151 * elfxx-riscv.h (riscv_arch_str): Declare.
1152
1153 2019-01-14 John Darrington <john@darrington.wattle.id.au>
1154
1155 * bfd-in2.h [BFD_RELOC_S12Z_OPR]: New reloc.
1156 * libbfd.h: regen.
1157 * elf32-s12z.c (eld_s12z_howto_table): R_S12Z_OPR takes non zero
1158 source field. (md_apply_fix): Apply final fix
1159 to BFD_RELOC_S12Z_OPR.
1160 * reloc.c[BFD_RELOC_S12Z_OPR]: New reloc.
1161
1162 2019-01-14 Maamoun Tarsha <maamountk@hotmail.com>
1163
1164 PR 20113
1165 * elf32-s390.c (allocate_dynrelocs): Update comment.
1166
1167 2019-01-09 Andrew Paprocki <andrew@ishiboo.com>
1168
1169 * warning.m4: Adjust egrep pattern for non-GNU compilers.
1170 * configure: Regenerate.
1171
1172 2019-01-08 Alan Modra <amodra@gmail.com>
1173
1174 PR 23699
1175 PR 24065
1176 * ihex.c (ihex_write_object_contents): Properly check 32-bit
1177 address range.
1178
1179 2019-01-05 Yoshinori Sato <ysato@users.sourceforge.jp>
1180
1181 * bfd/archures.c: Add bfd_mach_rx_v2 and bfd_mach_rx_v3.
1182 * bfd/bfd-in2.h: Regenerate.
1183 * bfd/cpu-rx.c (arch_info_struct): Add RXv2 and RXv3 entry.
1184 * bfd/elf32-rx.c (elf32_rx_machine): Add RXv2 and RXv3 support.
1185
1186 2019-01-04 Lifang Xia <lifang_xia@c-sky.com>
1187
1188 * config.bfd (csky-*-elf* | csky-*-linux*): Modify the csky
1189 default target, little endian target is more suitable.
1190
1191 2019-01-04 Alan Modra <amodra@gmail.com>
1192
1193 PR 24061
1194 PR 21786
1195 * coff-rs6000.c (GET_VALUE_IN_FIELD): Add base parameter and
1196 adjust all callers.
1197 (EQ_VALUE_IN_FIELD): Likewise.
1198 * coff64-rs6000.c (GET_VALUE_IN_FIELD): Likewise.
1199
1200 2019-01-01 Alan Modra <amodra@gmail.com>
1201
1202 Update year range in copyright notice of all files.
1203
1204 For older changes see ChangeLog-2018
1205 \f
1206 Copyright (C) 2019 Free Software Foundation, Inc.
1207
1208 Copying and distribution of this file, with or without modification,
1209 are permitted in any medium without royalty provided the copyright
1210 notice and this notice are preserved.
1211
1212 Local Variables:
1213 mode: change-log
1214 left-margin: 8
1215 fill-column: 74
1216 version-control: never
1217 End:
This page took 0.072374 seconds and 4 git commands to generate.