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