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