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