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