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