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