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