[binutils, ARM, 12/16] Scalar Low Overhead loop instructions for Armv8.1-M Mainline
[external/binutils.git] / bfd / ChangeLog
1 2019-04-15  Sudakshina Das  <sudi.das@arm.com>
2
3         * reloc.c (BFD_RELOC_ARM_THUMB_LOOP12): New.
4         * bfd-in2.h: Regenerated.
5         * libbfd.h: Regenerated.
6
7 2019-04-15  Sudakshina Das  <sudi.das@arm.com>
8
9         * reloc.c (BFD_RELOC_THUMB_PCREL_BFCSEL): New relocation.
10         * bfd-in2.h: Regenerated.
11         * libbfd.h: Likewise.
12
13 2019-04-15  Sudakshina Das  <sudi.das@arm.com>
14
15         * reloc.c (BFD_RELOC_ARM_THUMB_BF13): New.
16         * bfd-in2.h: Regenerated.
17         * libbfd.h: Regenerated.
18         * elf32-arm.c (elf32_arm_howto_table_1): New entry for R_ARM_THM_BF13.
19         (elf32_arm_reloc_map elf32_arm_reloc_map): Map BFD_RELOC_ARM_THUMB_BF13
20         and R_ARM_THM_BF12 together.
21         (elf32_arm_final_link_relocate): New switch case for R_ARM_THM_BF13.
22
23 2019-04-15  Sudakshina Das  <sudi.das@arm.com>
24
25         * reloc.c (BFD_RELOC_ARM_THUMB_BF19): New
26         * libbfd.h: Regenerated.
27         * bfd-in2.h: Regenerated.
28         * bfd-elf32-arm.c (elf32_arm_howto_table_1): New entry for R_ARM_THM_BF18.
29         (elf32_arm_reloc_map elf32_arm_reloc_map): Map BFD_RELOC_ARM_THUMB_BF19
30         and R_ARM_THM_BF18 together.
31         (elf32_arm_final_link_relocate): New switch case for R_ARM_THM_BF19.
32
33 2019-04-15  Sudakshina Das  <sudi.das@arm.com>
34
35         * reloc.c (BFD_RELOC_ARM_THUMB_BF17): New enum.
36         * bfd-in2.h: Regenerated.
37         * libbfd.h: Regenerated.
38         * bfd-elf32-arm.c (elf32_arm_howto_table_1): New entry for R_ARM_THM_BF16.
39         (elf32_arm_reloc_map elf32_arm_reloc_map): Map BFD_RELOC_ARM_THUMB_BF17
40         and R_ARM_THM_BF16 together.
41         (get_value_helper): New reloc helper.
42         (elf32_arm_final_link_relocate): New switch case for R_ARM_THM_BF16.
43
44 2019-04-15  Sudakshina Das  <sudi.das@arm.com>
45
46         * reloc.c (BFD_RELOC_THUMB_PCREL_BRANCH5): New enum.
47         * bfd-in2.h: Regenerate.
48         * libbfd.h: Regenerate.
49
50 2019-04-15  Thomas Preud'homme  <thomas.preudhomme@arm.com>
51
52         * archures.c (bfd_mach_arm_8_1M_MAIN): Define.
53         * bfd-in2.h: Regenerate.
54         * cpu-arm.c (arch_info_struct): Add entry for Armv8.1-M Mainline.
55         * elf32-arm.c (using_thumb_only): Return true for Armv8.1-M Mainline
56         and update assert.
57         (using_thumb2): Likewise.
58         (using_thumb2_bl): Update assert.
59         (arch_has_arm_nop): Likewise.
60         (bfd_arm_get_mach_from_attributes): Add case for Armv8.1-M Mainline.
61         (tag_cpu_arch_combine): Add logic for Armv8.1-M Mainline merging.
62
63 2019-04-11  H.J. Lu  <hongjiu.lu@intel.com>
64
65         * elf-linker-x86.h (elf_x86_cet_report): New.
66         (elf_linker_x86_params): Add cet_report.
67         * elfxx-x86.c (_bfd_x86_elf_link_setup_gnu_properties): Report
68         missing IBT and SHSTK properties if needed.
69
70 2019-04-11  H.J. Lu  <hongjiu.lu@intel.com>
71
72         PR ld/24436
73         * elf-m10300.c (mn10300_elf_check_relocs): Remove BFD_ASSERT of
74         "h != NULL".  Don't check "h != NULL" before calling.
75         bfd_elf_gc_record_vtentry.
76         * elf32-arm.c (elf32_arm_check_relocs): Likewise.
77         * elf32-bfin.c (bfin_check_relocs): Likewise.
78         * elf32-cris.c (cris_elf_check_relocs): Likewise.
79         * elf32-csky.c (csky_elf_check_relocs): Likewise.
80         * elf32-d10v.c (elf32_d10v_check_relocs): Likewise.
81         * elf32-dlx.c (elf32_dlx_check_relocs): Likewise.
82         * elf32-fr30.c (fr30_elf_check_relocs): Likewise.
83         * elf32-frv.c (elf32_frv_check_relocs): Likewise.
84         * elf32-hppa.c (elf32_hppa_check_relocs): Likewise.
85         * elf32-i386.c (elf_i386_check_relocs): Likewise.
86         * elf32-iq2000.c (iq2000_elf_check_relocs): Likewise.
87         * elf32-m32r.c (m32r_elf_check_relocs): Likewise.
88         * elf32-m68hc1x.c (elf32_m68hc11_check_relocs): Likewise.
89         * elf32-m68k.c (elf_m68k_check_relocs): Likewise.
90         * elf32-mcore.c (mcore_elf_check_relocs): Likewise.
91         * elf32-metag.c (elf_metag_check_relocs): Likewise.
92         * elf32-or1k.c (or1k_elf_check_relocs): Likewise.
93         * elf32-ppc.c (ppc_elf_check_relocs): Likewise.
94         * elf32-s390.c (elf_s390_check_relocs): Likewise.
95         * elf32-sh.c (sh_elf_check_relocs): Likewise.
96         * elf32-v850.c (v850_elf_check_relocs): Likewise.
97         * elf32-vax.c (elf_vax_check_relocs): Likewise.
98         * elf32-xstormy16.c (xstormy16_elf_check_relocs): Likewise.
99         * elf32-xtensa.c (elf_xtensa_check_relocs): Likewise.
100         * elf64-mmix.c (mmix_elf_check_relocs): Likewise.
101         * elf64-ppc.c (ppc64_elf_check_relocs): Likewise.
102         * elf64-s390.c (elf_s390_check_relocs): Likewise.
103         * elf64-x86-64.c (elf_s390_check_relocs): Likewise.
104         * elfxx-mips.c (_bfd_mips_elf_check_relocs): Likewise.
105         * elfxx-sparc.c (_bfd_sparc_elf_check_relocs): Likewise.
106         * elflink.c (bfd_elf_gc_record_vtinherit): Check for corrupt
107         VTENTRY entry.
108
109 2019-04-11  Alan Modra  <amodra@gmail.com>
110
111         PR 24435
112         * elflink.c (elf_link_add_object_symbols): Don't read partial
113         dynamic entries from fuzzed objects.
114
115 2019-04-11  Tamar Christina  <tamar.christina@arm.com>
116
117         PR ld/24302
118         * elfnn-aarch64.c (elfNN_aarch64_size_dynamic_sections): Don't emit
119         DT_TLSDESC_GOT and DT_TLSDESC_PLT when DF_BIND_NOW.
120         (elfNN_aarch64_finish_dynamic_sections): Don't write PLT if DF_BIND_NOW.
121
122 2019-04-10  Michael Forney  <mforney@mforney.org>
123
124         PR 24427
125         * doc/chew.c (free_words): Correctly free "push_text" strings.
126
127 2019-04-08  H.J. Lu  <hongjiu.lu@intel.com>
128
129         * config.bfd: Remove i[3-7]86-*-kaos* and i[3-7]86-*-chaos targets.
130
131 2019-04-08  Alan Modra  <amodra@gmail.com>
132
133         * configure.ac (elfxx_x86): Define and use.
134         * configure: Regenerate.
135
136 2019-04-06  H.J. Lu  <hongjiu.lu@intel.com>
137
138         * elf-linker-x86.h: New file.
139         * elf32-i386.c (elf_i386_convert_load_reloc): Use htab->params
140         to get x86-specific linker options.
141         * elf64-x86-64.c (elf_x86_64_convert_load_reloc): Likewise.
142         (elf_x86_64_check_relocs): Likewise.
143         (elf_x86_64_relocate_section): Likewise.
144         (elf_x86_64_link_setup_gnu_properties): Likewise.
145         * elfxx-x86.c (_bfd_x86_elf_merge_gnu_properties): Likewise.
146         (_bfd_x86_elf_link_setup_gnu_properties): Likewise.
147         (_bfd_elf_linker_x86_set_options): New function.
148         * elfxx-x86.h: Include "elf-linker-x86.h".
149         (elf_x86_link_hash_table): Add params.
150
151 2019-04-03  Alan Modra  <amodra@gmail.com>
152
153         * coff-i386.c, * coff-x86_64.c, * coffgen.c, * dwarf2.c,
154         * elf-m10200.c, * elf.c, * elf32-arm.c, * elf32-bfin.c,
155         * elf32-csky.c, * elf32-m32r.c, * elf32-microblaze.c, * elf32-pru.c,
156         * elf32-rx.c, * elf32-xgate.c, * elf64-sparc.c, * elfnn-ia64.c,
157         * elfxx-riscv.c, * elfxx-sparc.c, * linker.c, * mach-o.c,
158         * pe-x86_64.c, * pei-x86_64.c, * plugin.c: Whitespace fixes.
159
160 2019-04-02  Jim Wilson  <jimw@sifive.com>
161
162         PR 24389
163         * elfnn-riscv.c (_bfd_riscv_elf_merge_private_bfd_data): Move read of
164         ELF header flags to after check for ELF object file.  Loop through
165         sections looking for code sections, if none, then skip ABI checks.
166
167 2019-03-30  Andrew Waterman  <andrew@sifive.com>
168
169         * elfnn-riscv.c (_bfd_riscv_relax_call): Only check ARCH_SIZE for
170         rd == X_RA case.
171
172 2019-03-29  Max Filippov  <jcmvbkbc@gmail.com>
173
174         * elf32-xtensa.c (shrink_dynamic_reloc_sections): Add
175         info->export_dynamic to the conditional.
176
177 2019-03-28  Alan Modra  <amodra@gmail.com>
178
179         PR 24392
180         * configure.ac: Invoke AC_CHECK_SIZEOF(int).
181         * configure: Regenerate.
182         * coffgen.c (coff_get_reloc_upper_bound): Replace gcc diagnostic
183         workaround with SIZEOF_LONG vs. SIZEOF_INT check.
184         * elf.c (_bfd_elf_get_reloc_upper_bound): Likewise.
185         * elf64-sparc.c (elf64_sparc_get_reloc_upper_bound): Likewise.
186         * mach-o.c (bfd_mach_o_get_reloc_upper_bound): Likewise.
187
188 2019-03-21  Jim Wilson  <jimw@sifive.com>
189
190         PR 24365
191         * elfnn-riscv.c (riscv_elf_relocate_section): For STT_SECTION check,
192         verify sym non-NULL before using.  Add identical check using h.
193
194 2019-03-21  Sudakshina Das  <sudi.das@arm.com>
195
196         * elf-bfd.h (struct elf_backend_data): Add argument to
197         merge_gnu_properties.
198         * elf-properties.c (elf_merge_gnu_properties): Add argument to
199         itself and while calling bed->merge_gnu_properties.
200         (elf_merge_gnu_property_list): Update the calls for
201         elf_merge_gnu_properties.
202         * elfnn-aarch64.c (elfNN_aarch64_merge_gnu_properties): Update handling
203         of --force-bti warning and add argument.
204         * elfxx-aarch64.c (_bfd_aarch64_elf_link_setup_gnu_properties): Add
205         warning.
206         * elfxx-x86.c (_bfd_x86_elf_merge_gnu_properties): Add argument.
207         * elfxx-x86.h (_bfd_x86_elf_merge_gnu_properties): Likewise in
208         declaration.
209
210 2019-03-20  Sudakshina Das  <sudi.das@arm.com>
211
212         * elfxx-aarch64.c (_bfd_aarch64_elf_link_fixup_gnu_properties): Define.
213         * elfxx-aarch64.h (_bfd_aarch64_elf_link_fixup_gnu_properties): Declare.
214         (elf_backend_fixup_gnu_properties): Define for AArch64.
215
216 2019-03-18  Alan Modra  <amodra@gmail.com>
217
218         PR 24355
219         * elf32-ppc.c (ppc_finish_symbols): Don't call write_glink_stub
220         for local iplt syms with ent->plt.offset == -1.  Remove ineffective
221         attempt at writing glink stubs only once.
222
223 2019-03-16  Alan Modra  <amodra@gmail.com>
224
225         PR 24337
226         * elf.c (_bfd_elf_rela_local_sym): Revert last change.
227         (_bfd_elf_rel_local_sym): Likewise.
228         * elflink.c (elf_link_input_bfd): Use bfd_und_section for
229         section of symbols with unrecognized shndx.
230
231 2019-03-15  H.J. Lu  <hongjiu.lu@intel.com>
232
233         PR ld/24267
234         * coffgen.c (_bfd_coff_section_already_linked): Skip discarded
235         section.
236         * cofflink.c (coff_link_add_symbols): Check for symbols defined
237         in discarded section.
238
239 2019-03-15  Alan Modra  <amodra@gmail.com>
240
241         PR 24339
242         * elflink.c (elf_link_add_object_symbols): Bail out on a local
243         symbol after globals if elf_bad_symtab is not set.
244
245 2019-03-15  Alan Modra  <amodra@gmail.com>
246
247         PR 24337
248         * elf.c (_bfd_elf_rela_local_sym): Don't segfault on NULL sec.
249         (_bfd_elf_rel_local_sym): Likewise.
250
251 2019-03-15  Alan Modra  <amodra@gmail.com>
252
253         PR 24336
254         * elflink.c (elf_link_read_relocs_from_section): Handle fuzzed
255         object files with sh_size not a multiple of sh_entsize.
256
257 2019-03-15  H.J. Lu  <hongjiu.lu@intel.com>
258
259         PR ld/24338
260         * elf64-x86-64.c (elf_x86_64_relocate_section): Check for corrupt
261         input with bad relocation.
262
263 22019-03-15  H.J. Lu  <hongjiu.lu@intel.com>
264
265         * elf64-x86-64.c (elf_x86_64_relocate_section): Re-indent.
266
267 2019-03-14  Nick Clifton  <nickc@redhat.com>
268
269         PR 24334
270         * dwarf2.c (struct dwarf2_debug): Add sec_vma_count field.
271         (save_section_vma): Initialise field to the number of entries in
272         the sec_vma table.
273         (section_vma_same): Check that the number of entries in the
274         sec_vma table matches the number of sections in the bfd.
275
276 2019-03-14  Nick Clifton  <nickc@redhat.com>
277
278         PR 24333
279         * elflink.c (_bfd_elf_add_default_symbol): Add a check for a NULL
280         section owner pointer when adding the default symbol.
281
282 2019-03-14  Nick Clifton  <nickc@redhat.com>
283
284         PR 24332
285         * elflink.c (elf_link_add_object_symbols): Add new local variable
286         extversym_end.  Initialise it to point to the end of the version
287         symbol table, if present.  Check it when initialising and updating
288         the ever pointer.
289
290 2019-03-13  Sudakshina Das  <sudi.das@arm.com>
291
292         * elfnn-aarch64.c (PLT_PAC_ENTRY_SIZE, PLT_PAC_SMALL_ENTRY_SIZE): New.
293         (PLT_BTI_PAC_ENTRY_SIZE, PLT_BTI_PAC_SMALL_ENTRY_SIZE): New.
294         (setup_plt_values): Account for PAC or PAC and BTI enabled PLTs.
295         (elfNN_aarch64_size_dynamic_sections): Add checks for PLT_BTI_PAC
296         and PLT_PAC_PLT.
297         (elfNN_aarch64_finish_dynamic_sections): Account for PLT_BTI_PAC.
298         (get_plt_type): Add case for DT_AARCH64_PAC_PLT.
299         (elfNN_aarch64_plt_sym_val): Add cases for PLT_BTI_PAC and PLT_PAC.
300
301 2019-03-13  Sudakshina Das  <sudi.das@arm.com>
302             Szabolcs Nagy  <szabolcs.nagy@arm.com>
303
304         * bfd-in.h (aarch64_plt_type, aarch64_enable_bti_type): New.
305         (aarch64_bti_pac_info): New.
306         (bfd_elf64_aarch64_set_options): Add aarch64_bti_pac_info argument.
307         (bfd_elf32_aarch64_set_options): Likewise.
308         * bfd-in2.h: Regenerate
309         * elfnn-aarch64.c (PLT_BTI_ENTRY_SIZE): New.
310         (PLT_BTI_SMALL_ENTRY_SIZE, PLT_BTI_TLSDESC_ENTRY_SIZE): New.
311         (elfNN_aarch64_small_plt0_bti_entry): New.
312         (elfNN_aarch64_small_plt_bti_entry): New.
313         (elfNN_aarch64_tlsdesc_small_plt_bti_entry): New.
314         (elf_aarch64_obj_tdata): Add no_bti_warn and plt_type fields.
315         (elf_aarch64_link_hash_table): Add plt0_entry, plt_entry and
316         tlsdesc_plt_entry_size fields.
317         (elfNN_aarch64_link_hash_table_create): Initialise the new fields.
318         (setup_plt_values): New helper function.
319         (bfd_elfNN_aarch64_set_options): Use new bp_info to set plt sizes and
320         bti enable type.
321         (elfNN_aarch64_allocate_dynrelocs): Use new size members instead of
322         fixed macros.
323         (elfNN_aarch64_size_dynamic_sections): Likewise and add checks.
324         (elfNN_aarch64_create_small_pltn_entry): Use new generic pointers
325         to plt stubs instead of fixed ones and update filling them according
326         to the need for bti.
327         (elfNN_aarch64_init_small_plt0_entry): Likewise.
328         (elfNN_aarch64_finish_dynamic_sections): Likewise.
329         (get_plt_type, elfNN_aarch64_get_synthetic_symtab): New.
330         (elfNN_aarch64_plt_sym_val): Update size accordingly.
331         (elfNN_aarch64_link_setup_gnu_properties): Set up plts if BTI GNU NOTE
332         is set.
333         (bfd_elfNN_get_synthetic_symtab): Define.
334         (elfNN_aarch64_merge_gnu_properties): Give out warning with --force-bti
335         and mising BTI NOTE SECTION.
336
337
338 2019-03-13  Sudakshina Das  <sudi.das@arm.com>
339
340         * elf-properties.c (_bfd_elf_link_setup_gnu_properties): Exclude
341         linker created inputs from merge.
342         * elfnn-aarch64.c (struct elf_aarch64_obj_tdata): Add field for
343         GNU_PROPERTY_AARCH64_FEATURE_1_AND properties.
344         (elfNN_aarch64_link_setup_gnu_properties): New.
345         (elfNN_aarch64_merge_gnu_properties): New.
346         (elf_backend_setup_gnu_properties): Define for AArch64.
347         (elf_backend_merge_gnu_properties): Likewise.
348         * elfxx-aarch64.c (_bfd_aarch64_elf_link_setup_gnu_properties): Define.
349         (_bfd_aarch64_elf_parse_gnu_properties): Define.
350         (_bfd_aarch64_elf_merge_gnu_properties): Define.
351         * elfxx-aarch64.h (_bfd_aarch64_elf_link_setup_gnu_properties): Declare.
352         (_bfd_aarch64_elf_parse_gnu_properties): Declare.
353         (_bfd_aarch64_elf_merge_gnu_properties): Declare.
354         (elf_backend_parse_gnu_properties): Define for AArch64.
355
356 2019-03-13  H.J. Lu  <hongjiu.lu@intel.com>
357
358         PR ld/24322
359         * elfxx-x86.c (_bfd_x86_elf_merge_gnu_properties): Properly
360         merge GNU_PROPERTY_X86_FEATURE_1_[IBT|SHSTK].
361
362 2019-03-12  Alan Modra  <amodra@gmail.com>
363
364         * coffcode.h (buy_and_read): Delete unnecessary forward decl.  Add
365         nmemb parameter.  Use bfd_alloc2.
366         (coff_slurp_line_table): Use bfd_alloc2.  Update buy_and_read calls.
367         Delete assertion.
368         (coff_slurp_symbol_table): Use bfd_alloc2 and bfd_zalloc2.
369         (coff_slurp_reloc_table): Use bfd_alloc2.  Update buy_and_read calls.
370         * coffgen.c (coff_get_reloc_upper_bound): Ensure size calculation
371         doesn't overflow.
372         * elf.c (bfd_section_from_shdr): Use bfd_zalloc2.  Style fix.
373         (assign_section_numbers): Style fix.
374         (swap_out_syms): Use bfd_malloc2.
375         (_bfd_elf_get_reloc_upper_bound): Ensure size calculation doesn't
376         overflow.
377         (_bfd_elf_make_empty_symbol): Style fix.
378         (elfobj_grok_stapsdt_note_1): Formatting.
379         * elfcode.h (elf_object_p): Use bfd_alloc2.
380         (elf_write_relocs, elf_write_shdrs_and_ehdr): Likewise.
381         (elf_slurp_symbol_table): Use bfd_zalloc2.
382         (elf_slurp_reloc_table): Use bfd_alloc2.
383         (_bfd_elf_bfd_from_remote_memory): Use bfd_malloc2.
384         * elf64-sparc (elf64_sparc_get_reloc_upper_bound): Ensure
385         size calculation doesn't overflow.
386         (elf64_sparc_get_dynamic_reloc_upper_bound): Likewise.
387         * mach-o.c (bfd_mach_o_get_reloc_upper_bound): Likewise.
388         * pdp11.c (get_reloc_upper_bound): Copy aoutx.h version.
389
390 2019-03-08  Alan Modra  <amodra@gmail.com>
391
392         PR 24311
393         * merge.c (merge_strings): Return secinfo.  Don't pad section
394         to alignment here.
395         (_bfd_merge_sections): Pad section to alignment here, if input
396         sections contributing to merged output all pad to alignment.
397         Formatting.
398
399 2019-03-06  Nick Clifton  <nickc@redhat.com>
400
401         * dwarf2.c (_bfd_dwarf2_find_symbol_bias): Check for a NULL symbol
402         table pointer.
403         * coffgen.c (coff_find_nearest_line_with_names): Do not call
404         _bfd_dwarf2_find_symbol_bias if there is no symbol table available.
405
406 2019-03-01  Andreas Krebbel  <krebbel@linux.ibm.com>
407
408         This reverts commit 5a12586d44fa8d5dfc74cbca4f2f36a273a16335.
409         2019-01-14  Maamoun Tarsha  <maamountk@hotmail.com>
410
411         PR 20113
412         * elf32-s390.c (allocate_dynrelocs): Update comment.
413
414 2019-02-28  Tamar Christina  <tamar.christina@arm.com>
415
416         * elf-eh-frame.c (_bfd_elf_write_section_eh_frame): Correct CIE parse.
417
418 2019-02-28  Nick Clifton  <nickc@redhat.com>
419
420         PR 24273
421         * elf.c (bfd_elf_string_from_elf_section): Check for a string
422         section that is not NUL terminated.
423
424 2019-02-27  H.J. Lu  <hongjiu.lu@intel.com>
425
426         PR ld/24276
427         * elf64-x86-64.c (elf_x86_64_check_relocs): Skip symbol defined
428         by linker when checking copy reloc on protected symbol.
429
430 2019-02-24  Alan Modra  <amodra@gmail.com>
431
432         PR 24144
433         * pdp11.c (set_section_contents): Revert 2015-02-24 change.
434
435 2019-02-20  Eric Tsai  <erictsai@cadence.com>
436
437         * elf32-xtensa.c (is_resolvable_asm_expansion): Scan output
438         sections between the call site and call destination and adjust
439         call distance by the largest alignment.
440
441 2019-02-20  Alan Hayward  <alan.hayward@arm.com>
442
443         * elf-bfd.h (elfcore_write_aarch_pauth): Add declaration.
444         * elf.c (elfcore_grok_aarch_pauth): New function.
445         (elfcore_grok_note): Check for NT_ARM_PAC_MASK.
446         (elfcore_write_aarch_pauth): New function.
447         (elfcore_write_register_note): Check for AArch64 pauth section.
448
449 2019-02-20  Alan Modra  <amodra@gmail.com>
450
451         PR 24225
452         * elf32-nios2.c (nios2_elf32_relocate_section): Check asprintf
453         return value.
454
455 2019-02-20  Michael Roitzsch  <reactorcontrol@icloud.com>
456
457         * configure.ac (SHARED_LIBADD): Add -liberty -lintl for all
458         Darwin hosts, not just or1k.
459         * configure: Regenerate.
460
461 2019-02-20  Alan Modra  <amodra@gmail.com>
462
463         PR 24236
464         * archive64.c (_bfd_archive_64_bit_slurp_armap): Move code adding
465         sentinel NUL to string buffer nearer to loop where it is used.
466         Don't go past sentinel when scanning strings, and don't write
467         NUL again.
468         * archive.c (do_slurp_coff_armap): Simplify string handling to
469         archive64.c style.
470
471 2019-02-19  Alan Modra  <amodra@gmail.com>
472
473         PR 24235
474         * pei-x86_64.c (pex64_bfd_print_pdata_section): Correct checks
475         attempting to prevent read past end of section.
476
477 2019-02-18  Alan Modra  <amodra@gmail.com>
478
479         PR 24225
480         * elf32-nios2.c (nios2_elf32_relocate_section): Use asprintf and
481         PRIx64 to generate warning messages.  Print local sym names too.
482
483 2019-02-09  Vineet Gupta  <vgupta@synopsys.com>
484
485         * elf32-arc (INIT_SYM_STRING): Delete.
486         (FINI_SYM_STRING): Likewise.
487         (init_str): Likewise.
488         (fini_str): Likewise.
489
490 2019-02-08  Alan Modra  <amodra@gmail.com>
491
492         * elf32-ppc.c (ppc_elf_relocate_section): Add %X to "unsupported
493         for bss-plt" warning to make it an error.
494
495 2019-02-07  Eric Botcazou  <ebotcazou@adacore.com>
496
497         PR ld/18841
498         * elf32-sparc.c (elf32_sparc_reloc_type_class): Return
499         reloc_class_ifunc for ifunc symbols.
500         * elf64-sparc.c (elf64_sparc_reloc_type_class): Likewise.
501
502 2019-02-07  Eric Botcazou  <ebotcazou@adacore.com>
503
504         * elf32-visium.c (visium_elf_howto_parity_reloc): Minor tweak.
505         <R_VISIUM_PC16>: Use explicit range test to detect an overflow.
506
507 2019-02-07  Nick Clifton  <nickc@redhat.com>
508
509         * config.bfd: Move the powerpc-lynxos and powerpc-windiss targets
510         into the definitely obsolete list.
511
512 2019-02-05  H.J. Lu  <hongjiu.lu@intel.com>
513
514         PR ld/24151
515         * elf64-x86-64.c (elf_x86_64_need_pic): Check
516         SYMBOL_DEFINED_NON_SHARED_P instead of def_regular.
517         (elf_x86_64_relocate_section): Move PIC check for PC-relative
518         relocations to ...
519         (elf_x86_64_check_relocs): Here.
520         (elf_x86_64_finish_dynamic_symbol): Use SYMBOL_DEFINED_NON_SHARED_P
521         to check if a symbol is defined in a non-shared object.
522         * elfxx-x86.h (SYMBOL_DEFINED_NON_SHARED_P): New.
523
524 2019-01-21  Sergio Durigan Junior  <sergiodj@redhat.com>
525
526         * elf32-arm.c (elf32_arm_final_link_relocate): Use 'llabs' instead
527         of 'labs' (and fix GCC warning).
528
529 2019-01-25  Nick Clifton  <nickc@redhat.com>
530
531         * po/ru.po: Updated Russian translation.
532
533 2019-01-23  Nick Clifton  <nickc@redhat.com>
534
535         * po/fr.po: Updated French translation.
536
537 2019-01-21  Nick Clifton  <nickc@redhat.com>
538
539         * po/pt.po: Updated Portuguese translation.
540         * po/uk.po: Updated Ukranian translation.
541
542 2019-01-21  Yuri Chornoivan  <yurchor@ukr.net>
543
544         PR 24108
545         * elf32-nds32.c (nds32_relocate_section): Add space between words
546         in error message.
547         * elfnn-riscv.c (riscv_version_mismatch): Fix spelling mistake in
548         error message.
549         (riscv_i_or_e_p): Likewise.
550         (riscv_merge_arch_attr_info): Likewise.
551
552 2019-01-19  Nick Clifton  <nickc@redhat.com>
553
554         * version.m4: Reset to 2.32.51
555         * configure: Regenerate.
556         * po/bfd.pot: Regenerate.
557
558 2018-06-24  Nick Clifton  <nickc@redhat.com>
559
560         2.32 branch created.
561
562 2019-01-16  Kito Cheng  <kito@andestech.com>
563
564         * elf-attrs.c (vendor_obj_attr_size): Return 0 if size is 0 even
565         for OBJ_ATTR_PROC.
566
567 2019-01-16  Kito Cheng  <kito@andestech.com>
568             Nelson Chu  <nelson@andestech.com>
569
570         * elfnn-riscv.c (in_subsets): New.
571         (out_subsets): Likewise.
572         (merged_subsets): Likewise.
573         (riscv_std_ext_p): Likewise.
574         (riscv_non_std_ext_p): Likewise.
575         (riscv_std_sv_ext_p): Likewise.
576         (riscv_non_std_sv_ext_p): Likewise.
577         (riscv_version_mismatch): Likewise.
578         (riscv_i_or_e_p): Likewise.
579         (riscv_merge_std_ext): Likewise.
580         (riscv_merge_non_std_and_sv_ext): Likewise.
581         (riscv_merge_arch_attr_info): Likewise.
582         (riscv_merge_attributes): Likewise.
583         (_bfd_riscv_elf_merge_private_bfd_data): Merge attribute.
584
585         * elfnn-riscv.c (riscv_elf_obj_attrs_arg_type): New.
586         (elf_backend_obj_attrs_vendor): Define.
587         (elf_backend_obj_attrs_section_type): Likewise.
588         (elf_backend_obj_attrs_section): Likewise.
589         (elf_backend_obj_attrs_arg_type): Define as
590         riscv_elf_obj_attrs_arg_type.
591         * elfxx-riscv.c (riscv_estimate_digit): New.
592         (riscv_estimate_arch_strlen1): Likewise.
593         (riscv_estimate_arch_strlen): Likewise.
594         (riscv_arch_str1): Likewise.
595         (riscv_arch_str): Likewise.
596         * elfxx-riscv.h (riscv_arch_str): Declare.
597
598 2019-01-14  John Darrington <john@darrington.wattle.id.au>
599
600         * bfd-in2.h [BFD_RELOC_S12Z_OPR]: New reloc.
601         * libbfd.h: regen.
602         * elf32-s12z.c (eld_s12z_howto_table): R_S12Z_OPR takes non zero
603         source field.  (md_apply_fix): Apply final fix
604         to BFD_RELOC_S12Z_OPR.
605         * reloc.c[BFD_RELOC_S12Z_OPR]: New reloc.
606
607 2019-01-14  Maamoun Tarsha  <maamountk@hotmail.com>
608
609         PR 20113
610         * elf32-s390.c (allocate_dynrelocs): Update comment.
611
612 2019-01-09  Andrew Paprocki  <andrew@ishiboo.com>
613
614         * warning.m4: Adjust egrep pattern for non-GNU compilers.
615         * configure: Regenerate.
616
617 2019-01-08  Alan Modra  <amodra@gmail.com>
618
619         PR 23699
620         PR 24065
621         * ihex.c (ihex_write_object_contents): Properly check 32-bit
622         address range.
623
624 2019-01-05  Yoshinori Sato <ysato@users.sourceforge.jp>
625
626         * bfd/archures.c: Add bfd_mach_rx_v2 and bfd_mach_rx_v3.
627         * bfd/bfd-in2.h: Regenerate.
628         * bfd/cpu-rx.c (arch_info_struct): Add RXv2 and RXv3 entry.
629         * bfd/elf32-rx.c (elf32_rx_machine): Add RXv2 and RXv3 support.
630
631 2019-01-04  Lifang Xia  <lifang_xia@c-sky.com>
632
633         * config.bfd (csky-*-elf* | csky-*-linux*): Modify the csky
634         default target, little endian target is more suitable.
635
636 2019-01-04  Alan Modra  <amodra@gmail.com>
637
638         PR 24061
639         PR 21786
640         * coff-rs6000.c (GET_VALUE_IN_FIELD): Add base parameter and
641         adjust all callers.
642         (EQ_VALUE_IN_FIELD): Likewise.
643         * coff64-rs6000.c (GET_VALUE_IN_FIELD): Likewise.
644
645 2019-01-01  Alan Modra  <amodra@gmail.com>
646
647         Update year range in copyright notice of all files.
648
649 For older changes see ChangeLog-2018
650 \f
651 Copyright (C) 2019 Free Software Foundation, Inc.
652
653 Copying and distribution of this file, with or without modification,
654 are permitted in any medium without royalty provided the copyright
655 notice and this notice are preserved.
656
657 Local Variables:
658 mode: change-log
659 left-margin: 8
660 fill-column: 74
661 version-control: never
662 End: