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