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