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