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