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