]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - bfd/ChangeLog
RISC-V : Support bitmanip-0.93 ZBA/ZBB/ZBC instructions
[thirdparty/binutils-gdb.git] / bfd / ChangeLog
1 2021-03-16 Kuan-Lin Chen <kuanlinchentw@gmail.com>
2
3 * elfxx-riscv.c (riscv_std_z_ext_strtab): Add zba, zbb and zbc.
4
5 2021-03-12 Clément Chigot <clement.chigot@atos.net>
6
7 * reloc.c (BFD_RELOC_PPC_TLS_LE, BFD_RELOC_PPC_TLS_IE,
8 BFD_RELOC_PPC_TLS_M, BFD_RELOC_PPC_TLS_ML, BFD_RELOC_PPC64_TLS_GD,
9 BFD_RELOC_PPC64_TLS_LD, BFD_RELOC_PPC64_TLS_LE,
10 BFD_RELOC_PPC64_TLS_IE, BFD_RELOC_PPC64_TLS_M,
11 BFD_RELOC_PPC64_TLS_ML): New relocations.
12 * bfd-in2.h: Regenerate.
13 * libbfd.h: Regenerate.
14 * coff-rs6000.c (xcoff_calculate_relocation): Call
15 xcoff_reloc_type_tls for TLS relocations.
16 (xcoff_howto_table): Implement TLS relocations.
17 (_bfd_xcoff_reloc_type_lookup): Add cases TLS relocations.
18 (xcoff_reloc_type_tls): New function.
19 * coff64-rs6000.c (xcoff_calculate_relocation): Likewise.
20 (xcoff_howto_table): Likewise.
21 (_bfd_xcoff_reloc_type_lookup): Likewise.
22 * coffcode.h (sec_to_styp_flags): Handle TLS sections.
23 (styp_to_sec_flags): Likewise.
24 (coff_compute_section_file_positions): Avoid file offset
25 optimisation for .data when the previous section is .tdata.
26 (coff_write_object_contents): Handle TLS sections.
27 * coffswap.h (coff_swap_aouthdr_out): Add support for
28 new fields in aouthdr.
29 * libxcoff.h (xcoff_reloc_type_tls): Add prototype.
30 * xcofflink.c (xcoff_link_add_symbols): Handle XMC_UL.
31 (xcoff_need_ldrel_p): Add cases for TLS relocations.
32 (xcoff_create_ldrel): Add l_symndx for TLS sections.
33
34 2021-03-12 Clément Chigot <clement.chigot@atos.net>
35
36 * reloc.c (BFD_RELOC_PPC_TOC16_HI, BFD_RELOC_PPC_TOC16_LO):
37 New relocations.
38 * bfd-in2.h: Regenerate.
39 * libbfd.h: Regenerate.
40 * coff-rs6000.c (xcoff_calculate_relocation): Call
41 xcoff_reloc_type_toc for R_TOCU and R_TOCL.
42 (xcoff_howto_table): Remove src_mask for TOC relocations.
43 Add R_TOCU and R_TOCL howtos.
44 (_bfd_xcoff_reloc_type_lookup): Add cases for
45 BFD_RELOC_PPC_TOC16_HI and BFD_RELOC_PPC_TOC16_LO.
46 (xcoff_reloc_type_toc): Compute the whole offset.
47 Implement R_TOCU and R_TOCL.
48 * coff64-rs6000.c (xcoff64_calculate_relocation):
49 Likewise.
50 (xcoff64_howto_table): Likewise.
51 (xcoff64_reloc_type_lookup): Likewise.
52
53 2021-03-12 Clément Chigot <clement.chigot@atos.net>
54
55 * coff-rs6000.c (xcoff_calculate_relocation): Correct and
56 add new relocations.
57 (xcoff_howto_table): Likewise.
58 (xcoff_rtype2howto): Increase r_type maximum value.
59 (xcoff_ppc_relocate_section): Reuse predefined HOWTOs instead
60 of create a new one from scratch. Enable only some relocations
61 to have a changing r_size.
62 * coff64-rs6000.c (xcoff64_calculate_relocation): Likewise.
63 (xcoff64_howto_table): Likewise.
64 (xcoff64_rtype2howto): Likewise.
65 (xcoff64_ppc_relocate_section): Likewise.
66 * libxcoff.h (XCOFF_MAX_CALCULATE_RELOCATION): Fix value.
67
68 2021-03-12 Clément Chigot <clement.chigot@atos.net>
69
70 * coff64-rs6000.c (xcoff64_ppc_relocate_section): Move.
71
72 2021-03-12 Clément Chigot <clement.chigot@atos.net>
73
74 * coff64-rs6000.c (xcoff64_write_object_contents): Remove.
75 * coffcode.h (coff_write_object_contents): Add bfd_mach_ppc_620
76 support for o_cputype field. Avoid creating an empty a.out header
77 for XCOFF64.
78
79 2021-03-12 Clément Chigot <clement.chigot@atos.net>
80
81 * coff64-rs6000.c (xcoff64_create_csect_from_smclas): Add
82 missing smclass.
83
84 2021-03-11 Nelson Chu <nelson.chu@sifive.com>
85
86 * elfnn-riscv.c (riscv_elf_link_hash_table): New boolean
87 restart_relax, used to check if we need to run the whole
88 relaxations from relax pass 0 to 2 again.
89 (riscv_elf_link_hash_table_create): Init restart_relax to FALSE.
90 (_bfd_riscv_relax_align): Remove obsolete sec_flg0 set.
91 (_bfd_riscv_relax_delete): Set again to TRUE if we do delete the code.
92 (bfd_elfNN_riscv_restart_relax_sections): New function. Called by
93 after_allocation to check if we need to run the whole relaxations again.
94 (_bfd_riscv_relax_section): We will only enter into the relax pass 3
95 when the restart_relax is FALSE; At last set restart_relax to TRUE if
96 again is TRUE, too.
97 * elfxx-riscv.h (bfd_elf32_riscv_restart_relax_sections): Declaration.
98 (bfd_elf64_riscv_restart_relax_sections): Likewise.
99
100 2021-03-10 Jan Beulich <jbeulich@suse.com>
101
102 * cofflink.c (_bfd_coff_write_global_sym): Range-check symbol
103 offset.
104
105 2021-03-10 Alan Modra <amodra@gmail.com>
106 Jan Beulich <jbeulich@suse.com>
107
108 * elf.c (bfd_elf_generic_reloc): Make references between debug
109 sections use section relative values.
110
111 2021-03-09 Jan Beulich <jbeulich@suse.com>
112
113 * peXXigen.c (_bfd_XXi_swap_scnhdr_out): Diagnose out of range RVA.
114
115 2021-03-05 H.J. Lu <hongjiu.lu@intel.com>
116
117 PR ld/27425
118 PR ld/27432
119 * bfd.c (_bfd_get_link_info): New function.
120 * elf-bfd.h (output_elf_obj_tdata): Add link_info.
121 (elf_link_info): New.
122 * libbfd-in.h (_bfd_get_link_info): New prototype.
123 * coff-x86_64.c (coff_amd64_reloc): Also subtract __ImageBase for
124 R_AMD64_IMAGEBASE when generating x86-64 ELF executable.
125 * pe-x86_64.c: Include "coff/internal.h" and "libcoff.h".
126 (pex64_link_add_symbols): New function.
127 (coff_bfd_link_add_symbols): New macro.
128 * libbfd.h: Regenerated.
129
130 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
131 Andrew Burgess <andrew.burgess@embecosm.com>
132
133 * elf-bfd.h (elfcore_write_riscv_csr): Declare.
134 * elf.c (elfcore_grok_riscv_csr): New function.
135 (elfcore_grok_note): Handle NT_RISCV_CSR.
136 (elfcore_write_riscv_csr): New function.
137 (elfcore_write_register_note): Handle '.reg-riscv-csr'.
138
139 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
140 Andrew Burgess <andrew.burgess@embecosm.com>
141
142 * elfnn-riscv.c (PRPSINFO_PR_FNAME_LENGTH): Define.
143 (PRPSINFO_PR_PSARGS_LENGTH): Define.
144 (riscv_write_core_note): New function.
145 (riscv_elf_grok_psinfo): Make use of two new length defines.
146 (elf_backend_write_core_note): Define.
147
148 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
149 Andrew Burgess <andrew.burgess@embecosm.com>
150
151 * elf-bfd.h (elfcore_write_gdb_tdesc): Declare new function.
152 * elf.c (elfcore_grok_gdb_tdesc): New function.
153 (elfcore_grok_note): Handle NT_GDB_TDESC.
154 (elfcore_write_gdb_tdesc): New function.
155 (elfcore_write_register_note): Handle NT_GDB_TDESC.
156
157 2021-03-05 Nick Clifton <nickc@redhat.com>
158
159 PR 27521
160 * dwarf2.c (is_str_attr): Add DW_FORM_strx* forms.
161 (read_indexed_string): Placeholder function.
162 (read_attribute_value): Handle DW_FORM_strx* and DW_FORM_addrx*
163 forms.
164
165 2021-03-05 Alan Modra <amodra@gmail.com>
166
167 * reloc.c (bfd_perform_relocation): Revert 2021-01-12 and
168 2020-09-16 changes.
169 * coff-x86_64.c (coff_amd64_reloc): Do more or less the same
170 adjustments here instead. Separate pc-relative adjustments
171 from symbol related adjustments. Tidy comments and formatting.
172
173 2021-03-04 Jan Beulich <jbeulich@suse.com>
174
175 * coffcode.h (sec_to_styp_flags): Don't set IMAGE_SCN_LNK_* in
176 final PE images.
177
178 2021-03-04 Alan Modra <amodra@gmail.com>
179
180 * rs6000-core.c (rs6000coff_core_p): Correct prototype.
181
182 2021-03-03 Alan Modra <amodra@gmail.com>
183
184 PR 27500
185 * elflink.c (_bfd_elf_gc_mark_rsec): Do special start/stop
186 processing not when start/stop symbol section is unmarked but
187 on first time a start/stop symbol is processed.
188
189 2021-03-03 Alan Modra <amodra@gmail.com>
190
191 * reloc.c: Include x86_64.h rather than internal.h.
192
193 2021-03-02 Nick Clifton <nickc@redhat.com>
194
195 PR 27484
196 * dwarf2.c (scan_unit_for_symbols): Scan twice, once to accumulate
197 function and variable tags and a second time to resolve their
198 attributes.
199
200 2021-03-02 Nick Alcock <nick.alcock@oracle.com>
201
202 * elf-strtab.c (_bfd_elf_strtab_str): Skip strings with zero refcount.
203
204 2021-03-02 Alan Modra <amodra@gmail.com>
205
206 PR 27451
207 * elf64-ppc.c (ppc64_elf_gc_mark_dynamic_ref): Ignore synthesized
208 linker defined start/stop symbols when start_stop_gc.
209
210 2021-03-02 Alan Modra <amodra@gmail.com>
211
212 * elf64-ppc.c (ppc64_elf_relocate_section): Don't optimise got
213 indirect to pc-relative or toc-relative for undefined symbols.
214
215 2021-03-01 Alan Modra <amodra@gmail.com>
216 Fangrui Song <maskray@google.com>
217
218 * elflink.c (_bfd_elf_gc_mark_rsec): Ignore synthesized linker
219 defined start/stop symbols when start_stop_gc.
220 (bfd_elf_gc_mark_dynamic_ref_symbol): Likewise.
221 (bfd_elf_define_start_stop): Don't modify ldscript_def syms.
222 * linker.c (bfd_generic_define_start_stop): Likewise.
223
224 2021-02-25 Alan Modra <amodra@gmail.com>
225
226 PR 27441
227 * elf-bfd.h (struct elf_link_hash_entry): Add ref_ir_nonweak.
228 * elflink.c (elf_link_add_object_symbols): Set ref_ir_nonweak and
229 use when deciding an as-needed library should be loaded instead
230 of using the binding of the library definition.
231
232 2021-02-24 Alan Modra <amodra@gmail.com>
233
234 PR 27459
235 * coff-stgo32.c (go32exe_check_format): Sanity check size of
236 header to avoid a buffer overflow.
237
238 2021-02-22 Alan Modra <amodra@gmail.com>
239
240 * coff-rs6000.c (_bfd_xcoff_reloc_type_lookup): Remove BFD_RELOC_16.
241 * coff64-rs6000.c (xcoff64_reloc_type_lookup): Likewise.
242
243 2021-02-19 Nelson Chu <nelson.chu@sifive.com>
244
245 PR 27158
246 * elfnn-riscv.c (perform_relocation): Updated encoding macros.
247 (_bfd_riscv_relax_call): Likewise.
248 (_bfd_riscv_relax_lui): Likewise.
249 * elfxx-riscv.c (howto_table): Likewise.
250
251 2021-02-18 Nelson Chu <nelson.chu@sifive.com>
252
253 * Makefile.am: Added cpu-riscv.h.
254 * Makefile.in: Regenerated.
255 * po/SRC-POTFILES.in: Regenerated.
256 * cpu-riscv.h: Added to support spec versions controlling.
257 Also added extern arrays and functions for cpu-riscv.c.
258 (enum riscv_spec_class): Define all spec classes here uniformly.
259 (struct riscv_spec): Added for all specs.
260 (RISCV_GET_SPEC_CLASS): Added to reduce repeated code.
261 (RISCV_GET_SPEC_NAME): Likewise.
262 (RISCV_GET_ISA_SPEC_CLASS): Added to get ISA spec class.
263 (RISCV_GET_PRIV_SPEC_CLASS): Added to get privileged spec class.
264 (RISCV_GET_PRIV_SPEC_NAME): Added to get privileged spec name.
265 * cpu-riscv.c (struct priv_spec_t): Replaced with struct riscv_spec.
266 (riscv_get_priv_spec_class): Replaced with RISCV_GET_PRIV_SPEC_CLASS.
267 (riscv_get_priv_spec_name): Replaced with RISCV_GET_PRIV_SPEC_NAME.
268 (riscv_priv_specs): Moved below.
269 (riscv_get_priv_spec_class_from_numbers): Likewise, updated.
270 (riscv_isa_specs): Moved from include/opcode/riscv.h.
271 * elfnn-riscv.c: Included cpu-riscv.h.
272 (riscv_merge_attributes): Initialize in_priv_spec and out_priv_spec.
273 * elfxx-riscv.c: Included cpu-riscv.h and opcode/riscv.h.
274 (RISCV_UNKNOWN_VERSION): Moved from include/opcode/riscv.h.
275 * elfxx-riscv.h: Removed extern functions to cpu-riscv.h.
276
277 2021-02-17 Alan Modra <amodra@gmail.com>
278
279 * wasm-module.c: Guard include of limits.h.
280 (CHAR_BIT): Provide backup define.
281 (wasm_read_leb128): Use CHAR_BIT to size "result" in bits.
282 Correct signed overflow checking.
283
284 2021-02-17 Nelson Chu <nelson.chu@sifive.com>
285
286 PR 27200
287 * elfnn-riscv.c (_bfd_riscv_elf_merge_private_bfd_data): Delay
288 copying the elf flags from input BFD to output BFD, until we have
289 checked if the input BFD has no code section or not. Also fix the
290 problem that we only check the first section rather than the entire
291 sections for input BFD.
292
293 2021-02-16 Alan Modra <amodra@gmail.com>
294
295 * libbfd.c (_bfd_read_unsigned_leb128): Avoid excessive shift.
296 (_bfd_safe_read_leb128, _bfd_read_signed_leb128): Likewise.
297
298 2021-02-15 Jan Beulich <jbeulich@suse.com>
299
300 * doc/Makefile.am: Replace "cp -p" by "$(LN_S)".
301 * doc/Makefile.in: Re-generate.
302
303 2021-02-15 Alan Modra <amodra@gmail.com>
304
305 * elf32-nds32.c (nds32_get_section_contents): Replace
306 bfd_malloc_and_get_section with bfd_get_full_section_contents.
307 (nds32_elf_relax_delete_blanks): Init contents.
308 (nds32_elf_relax_section, nds32_relax_fp_as_gp): Likewise.
309
310 2021-02-15 Alan Modra <amodra@gmail.com>
311
312 * coff-alpha.c (alpha_ecoff_get_relocated_section_contents): Use
313 bfd_get_full_section_contents.
314
315 2021-02-14 Alan Modra <amodra@gmail.com>
316
317 * elfxx-mips.c (_bfd_elf_mips_get_relocated_section_contents): Apply
318 all fixes to bfd_generic_get_relocated_section_contents since this
319 function was split out.
320
321 2021-02-11 Alan Modra <amodra@gmail.com>
322
323 * config.bfd: Remove ia64 from obsolete list.
324
325 2021-02-11 Alan Modra <amodra@gmail.com>
326
327 PR ld/22269
328 * elfnn-ia64.c: Revert 2017-10-14 git commit db41f6eb5234.
329
330 2021-02-11 Alan Modra <amodra@gmail.com>
331
332 PR 27294
333 * elf32-avr.c (avr_elf32_load_records_from_section): Use
334 bfd_malloc_and_get_section. Use bfd_byte* vars and remove then
335 unnecessary casts.
336
337 2021-02-11 Alan Modra <amodra@gmail.com>
338
339 PR 27291
340 * section.c (bfd_get_section_contents): Avoid possible overflow
341 when range checking offset and count.
342 (bfd_set_section_contents): Likewise.
343
344 2021-02-03 Nick Alcock <nick.alcock@oracle.com>
345
346 * configure.ac (SHARED_LIBADD): Remove explicit -lintl population in
347 favour of LIBINTL.
348 * configure: Regenerated.
349
350 2021-02-09 Alan Modra <amodra@gmail.com>
351
352 * config.bfd (arm*-*-symbianelf*): Move from obsolete to removed.
353 * configure.ac: Delete symbian entries.
354 * elf-bfd.h (enum elf_target_os): Delete is_symbian.
355 * elf32-arm.c: Remove symbian support. Formatting.
356 * targets.c: Delete symbian entries.
357 * configure: Regenerate.
358
359 2021-02-04 H.J. Lu <hongjiu.lu@intel.com>
360
361 PR ld/19609
362 * elf64-x86-64.c (elf_x86_64_relocate_section): Provide more
363 info when failed to convert GOTPCREL relocation.
364
365 2021-02-04 Nelson Chu <nelson.chu@sifive.com>
366
367 * elfxx-riscv.c (riscv_parse_prefixed_ext): Removed zb*.
368
369 2021-02-04 Alan Modra <amodra@gmail.com>
370
371 PR 27311
372 * elflink.c (elf_link_add_object_symbols): Don't pull in as-needed
373 libraries for IR references on pass over libraries after LTO
374 recompilation.
375
376 2021-02-03 Alan Modra <amodra@gmail.com>
377
378 PR 27311
379 * elflink.c (_bfd_elf_add_default_symbol): Revert last two changes.
380 (elf_link_add_object_symbols): Here too. Don't pull in as-needed
381 libraries when H is an indirect symbol after calling
382 _bfd_elf_add_default_symbol.
383
384 2021-02-03 Alan Modra <amodra@gmail.com>
385
386 PR 27311
387 * elflink.c (_bfd_elf_add_default_symbol): Clear override when
388 undecorated symbol will have a different version.
389
390 2021-02-02 Alan Modra <amodra@gmail.com>
391
392 PR 27311
393 * elflink.c (_bfd_elf_add_default_symbol): Add override parameter.
394 Use when handling default versioned symbol. Rename existing
395 override variable to nondef_override and use for non-default
396 versioned symbol.
397 (elf_link_add_object_symbols): Adjust call to suit. Don't
398 pull in as-needed libraries when override is set.
399
400 2021-02-01 Emery Hemingway <ehmry@posteo.net>
401
402 * config.bfd: Add *-*-genode* as a target for AArch64 and x86.
403
404 2021-02-01 Egor Vishnyakov <lenvampir@yandex.ru>
405
406 PR 27254
407 * elf32-rl78.c (rl78_elf_relocate_section): Fix calculation of
408 offset for the R_RL78_RH_SADDR relocation.
409
410 2021-01-29 Alan Modra <amodra@gmail.com>
411
412 PR 27271
413 * elflink.c (bfd_elf_link_record_dynamic_symbol): Don't segfault
414 on symbols defined in absolute or other special sections.
415
416 2021-01-28 Alan Modra <amodra@gmail.com>
417
418 PR 27259
419 * elflink.c (_bfd_elf_gc_mark_extra_sections): Use linker_mark to
420 prevent endless looping of linked-to sections.
421
422 2020-12-17 Mihails Strasuns <mihails.strasuns@intel.com>
423
424 * bfd-elf.h (elfcore_write_file_note): New function.
425 * elf.c (elfcore_write_file_note): New function.
426
427 2021-01-26 Alan Modra <amodra@gmail.com>
428
429 * elf32-ft32.c (ft32_reloc_type_lookup): Don't miss ft32_reloc_map[0].
430
431 2021-01-24 H.J. Lu <hongjiu.lu@intel.com>
432
433 PR binutils/27231
434 * dwarf2.c (read_rnglists): Ignore empty range when parsing line
435 number tables.
436
437 2021-01-23 H.J. Lu <hongjiu.lu@intel.com>
438
439 PR binutils/27231
440 * dwarf2.c (read_rnglists): Advance rngs_ptr after
441 _bfd_safe_read_leb128 when parsing DW_RLE_offset_pair.
442
443 2021-01-20 Alan Modra <amodra@gmail.com>
444
445 * elf32-ppc.c: Delete outdated comment.
446 (TARGET_KEEP_UNUSED_SECTION_SYMBOLS): Define.
447 * elf64-ppc.c (TARGET_KEEP_UNUSED_SECTION_SYMBOLS): Define.
448
449 2021-01-20 Alan Modra <amodra@gmail.com>
450
451 * elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Don't assume
452 section symbols are present.
453
454 2021-01-19 Alan Modra <amodra@gmail.com>
455
456 * elf64-ppc.c (elf_hash_entry): New inline function. Use
457 throughout to replace casts.
458 (branch_reloc_hash_match): Remove const from params.
459 (use_local_plt): New function.
460 (allocate_dynrelocs, ppc_build_one_stub, ppc_size_one_stub),
461 (build_global_entry_stubs_and_plt, ppc64_elf_relocate_section):
462 Use use_local_plt.
463 * elf32-ppc.c (use_local_plt): New function.
464 (allocate_dynrelocs, ppc_elf_relocate_section),
465 (write_global_sym_plt): Use use_local_plt.
466
467 2021-01-17 H.J. Lu <hongjiu.lu@intel.com>
468
469 PR ld/27193
470 * elflink.c (elf_create_symbuf): Also ignore section symbols.
471
472 2021-01-16 H.J. Lu <hongjiu.lu@intel.com>
473
474 PR ld/23169
475 * elfxx-x86.c (_bfd_x86_elf_link_fixup_ifunc_symbol): Don't
476 check pointer_equality_needed.
477
478 2021-01-15 H.J. Lu <hongjiu.lu@intel.com>
479
480 * elf-linker-x86.h (elf_linker_x86_params): Add
481 report_relative_reloc.
482 * elf32-i386.c (elf_i386_relocate_section): Call
483 _bfd_x86_elf_link_report_relative_reloc to report relative
484 relocations for -z report-relative-reloc.
485 (elf_i386_finish_dynamic_symbol): Likewse.
486 * elf64-x86-64.c (elf_x86_64_relocate_section): Likewse.
487 (elf_x86_64_finish_dynamic_symbol): Likewse.
488 * elfxx-x86.c (_bfd_x86_elf_link_report_relative_reloc): New
489 function.
490 * elfxx-x86.h (_bfd_x86_elf_link_report_relative_reloc): New
491 prototype.
492
493 2021-01-16 Alan Modra <amodra@gmail.com>
494
495 * compress.c (decompress_contents): Tidy inflateEnd result test.
496
497 2021-01-16 Alan Modra <amodra@gmail.com>
498
499 PR 26002
500 * elflink.c (elf_link_output_extsym): Use version 1 in
501 .gnu.version for undefined unversioned symbols.
502
503 2021-01-15 Nelson Chu <nelson.chu@sifive.com>
504
505 * elfnn-riscv.c (riscv_relax_delete_bytes): Fixed the indent that
506 caused the by previous commit accidentally.
507
508 2021-01-15 Nelson Chu <nelson.chu@sifive.com>
509
510 * elfnn-riscv.c: Indent, labels and GNU coding standards tidy,
511 also aligned the code.
512
513 2021-01-15 Nelson Chu <nelson.chu@sifive.com>
514
515 * elfnn-riscv.c (riscv_merge_attributes): Fix typos of messages.
516
517 2021-01-15 Nelson Chu <nelson.chu@sifive.com>
518
519 * elfnn-riscv.c: Comments tidy and improvement.
520 * elfxx-riscv.c: Likewise.
521 * elfxx-riscv.h: Likewise.
522
523 2021-01-14 H.J. Lu <hongjiu.lu@intel.com>
524
525 PR ld/26688
526 * elf32-bfin.c (bfinfdpic_relocate_section): Skip non SEC_ALLOC
527 section for R_BFIN_FUNCDESC.
528
529 2021-01-14 Nick Clifton <nickc@redhat.com>
530
531 * elf.c (elfcore_grok_win32pstatus): Check for a note type of 0.
532
533 2021-01-13 Alan Modra <amodra@gmail.com>
534
535 * Makefile.in: Regenerate.
536 * doc/Makefile.in: Regenerate.
537
538 2021-01-13 Alan Modra <amodra@gmail.com>
539
540 PR 27160
541 * section.c (struct bfd_section): Remove pattern field.
542 (BFD_FAKE_SECTION): Adjust to suit.
543 * bfd-in2.h: Regenerate.
544 * elflink.c (compare_link_order, elf_fixup_link_order): Delete.
545 (bfd_elf_final_link): Don't call elf_fixup_link_order.
546
547 2021-01-12 H.J. Lu <hongjiu.lu@intel.com>
548
549 PR binutils/26792
550 * configure.ac: Use GNU_MAKE_JOBSERVER.
551 * aclocal.m4: Regenerated.
552 * configure: Likewise.
553
554 2021-01-12 H.J. Lu <hongjiu.lu@intel.com>
555
556 PR ld/27171
557 * reloc.c (bfd_perform_relocation): Adjust R_AMD64_DIR64 and
558 R_AMD64_DIR32 relocations for PE/x86-64 inputs.
559
560 2021-01-11 H.J. Lu <hongjiu.lu@intel.com>
561
562 PR ld/27173
563 * configure: Regenerated.
564
565 2021-01-11 Nick Clifton <nickc@redhat.com>
566
567 * po/fr.po: Updated French translation.
568 * po/pt.po: Updated Portuguese translation.
569 * po/sr.po: Updated Serbian translation.
570 * po/uk.po: Updated Ukranian translation.
571
572 2021-01-09 H.J. Lu <hongjiu.lu@intel.com>
573
574 * configure: Regenerated.
575
576 2021-01-09 H.J. Lu <hongjiu.lu@intel.com>
577
578 PR ld/27166
579 * elfxx-x86.c (_bfd_x86_elf_merge_gnu_properties): Handle
580 -z lam-u48 and -z lam-u57.
581
582 2021-01-09 Nick Clifton <nickc@redhat.com>
583
584 * version.m4: Change to 2.36.50.
585 * configure: Regenerate.
586 * po/bfd.pot: Regenerate.
587
588 2021-01-09 Nick Clifton <nickc@redhat.com>
589
590 * 2.36 release branch crated.
591
592 2021-01-08 H.J. Lu <hongjiu.lu@intel.com>
593
594 * elfxx-x86.c (_bfd_x86_elf_link_setup_gnu_properties): Also set
595 LAM_U57 when setting LAM_U48.
596
597 2021-01-08 H.J. Lu <hongjiu.lu@intel.com>
598
599 PR ld/26256
600 PR ld/27160
601 * elflink.c (elf_fixup_link_order): Verify that fixing up
602 SHF_LINK_ORDER doesn't increase the output section size.
603
604 2021-01-09 Alan Modra <amodra@gmail.com>
605
606 * configure: Regenerate.
607
608 2021-01-07 Samuel Thibault <samuel.thibault@gnu.org>
609
610 * configure: Regenerate.
611
612 2021-01-07 H.J. Lu <hongjiu.lu@intel.com>
613
614 PR 27109
615 * aix386-core.c (core_aix386_vec): Initialize
616 keep_unused_section_symbol to TARGET_KEEP_UNUSED_SECTION_SYMBOLS.
617 * aout-target.h (MY (vec)): Likewise.
618 * binary.c (binary_vec): Likewise.
619 * cisco-core.c (core_cisco_be_vec): Likewise.
620 (core_cisco_le_vec): Likewise.
621 * coff-alpha.c (alpha_ecoff_le_vec): Likewise.
622 * coff-i386.c (TARGET_SYM): Likewise.
623 (TARGET_SYM_BIG): Likewise.
624 * coff-ia64.c (TARGET_SYM): Likewise.
625 * coff-mips.c (mips_ecoff_le_vec): Likewise.
626 (mips_ecoff_be_vec): Likewise.
627 (mips_ecoff_bele_vec): Likewise.
628 * coff-rs6000.c (rs6000_xcoff_vec): Likewise.
629 (powerpc_xcoff_vec): Likewise.
630 * coff-sh.c (sh_coff_small_vec): Likewise.
631 (sh_coff_small_le_vec): Likewise.
632 * coff-tic30.c (tic30_coff_vec): Likewise.
633 * coff-tic54x.c (tic54x_coff0_vec): Likewise.
634 (tic54x_coff0_beh_vec): Likewise.
635 (tic54x_coff1_vec): Likewise.
636 (tic54x_coff1_beh_vec): Likewise.
637 (tic54x_coff2_vec): Likewise.
638 (tic54x_coff2_beh_vec): Likewise.
639 * coff-x86_64.c (TARGET_SYM): Likewise.
640 (TARGET_SYM_BIG): Likewise.
641 * coff64-rs6000.c (rs6000_xcoff64_vec): Likewise.
642 (rs6000_xcoff64_aix_vec): Likewise.
643 * coffcode.h (CREATE_BIG_COFF_TARGET_VEC): Likewise.
644 (CREATE_BIGHDR_COFF_TARGET_VEC): Likewise.
645 (CREATE_LITTLE_COFF_TARGET_VEC): Likewise.
646 * elfxx-target.h (TARGET_BIG_SYM): Likewise.
647 (TARGET_LITTLE_SYM): Likewise.
648 * hppabsd-core.c (core_hppabsd_vec): Likewise.
649 * hpux-core.c (core_hpux_vec): Likewise.
650 * i386msdos.c (i386_msdos_vec): Likewise.
651 * ihex.c (ihex_vec): Likewise.
652 * irix-core.c (core_irix_vec): Likewise.
653 * mach-o-target.c (TARGET_NAME): Likewise.
654 * mmo.c (mmix_mmo_vec): Likewise.
655 * netbsd-core.c (core_netbsd_vec): Likewise.
656 * osf-core.c (core_osf_vec): Likewise.
657 * pdp11.c (MY (vec)): Likewise.
658 * pef.c (pef_vec): Likewise.
659 (pef_xlib_vec): Likewise.
660 * plugin.c (plugin_vec): Likewise.
661 * ppcboot.c (powerpc_boot_vec): Likewise.
662 * ptrace-core.c (core_ptrace_vec): Likewise.
663 * sco5-core.c (core_sco5_vec): Likewise.
664 * som.c (hppa_som_vec): Likewise.
665 * srec.c (srec_vec): Likewise.
666 (symbolsrec_vec): Likewise.
667 * tekhex.c (tekhex_vec): Likewise.
668 * trad-core.c (core_trad_vec): Likewise.
669 * verilog.c (verilog_vec): Likewise.
670 * vms-alpha.c (alpha_vms_vec): Likewise.
671 * vms-lib.c (alpha_vms_lib_txt_vec): Likewise.
672 * wasm-module.c (wasm_vec): Likewise.
673 * xsym.c (sym_vec): Likewise.
674 * elf.c (ignore_section_sym): Return TRUE if BSF_SECTION_SYM_USED
675 isn't set.
676 (elf_map_symbols): Don't include ignored section symbols.
677 * elfcode.h (elf_slurp_symbol_table): Also set
678 BSF_SECTION_SYM_USED on STT_SECTION symbols.
679 * elflink.c (bfd_elf_final_link): Generated section symbols only
680 when emitting relocations or reqired.
681 * elfxx-x86.h (TARGET_KEEP_UNUSED_SECTION_SYMBOLS): New.
682 * syms.c (BSF_SECTION_SYM_USED): New.
683 * targets.c (TARGET_KEEP_UNUSED_SECTION_SYMBOLS): New.
684 (bfd_target): Add keep_unused_section_symbols.
685 (bfd_keep_unused_section_symbols): New.
686 * bfd-in2.h: Regenerated.
687
688 2021-01-07 Nick Clifton <nickc@redhat.com>
689
690 PR 25713
691 * bfdio.c (_bfd_real_fopen): For Win32 convert relative paths to
692 absolute paths and check to see if they are longer than MAX_PATH.
693
694 2021-01-07 Philipp Tomsich <prt@gnu.org>
695
696 * elfxx-riscv.c (riscv_std_z_ext_strtab): Added zihintpause.
697
698 2021-01-07 Claire Xenia Wolf <claire@symbioticeda.com>
699 Jim Wilson <jimw@sifive.com>
700 Andrew Waterman <andrew@sifive.com>
701 Maxim Blinov <maxim.blinov@embecosm.com>
702 Kito Cheng <kito.cheng@sifive.com>
703 Nelson Chu <nelson.chu@sifive.com>
704
705 * elfxx-riscv.c (riscv_std_z_ext_strtab): Added zba, zbb and zbc.
706
707 2021-01-06 H.J. Lu <hongjiu.lu@intel.com>
708
709 * elf32-bfin.c (bfin_check_relocs): Check bfd_link_hash_indirect.
710 (bfinfdpic_check_relocs): Likewise.
711
712 2021-01-06 Alan Modra <amodra@gmail.com>
713
714 * elf32-score.c (s3_bfd_score_info_to_howto): Report an error
715 on unknown r_type.
716 * elf32-score7.c (s7_bfd_score_info_to_howto): Likewise.
717
718 2021-01-06 Alan Modra <amodra@gmail.com>
719
720 * config.bfd (sparc-*-solaris2*): Add sparc_elf32_vec.
721 (sparc64-*-solaris2*): Add sparc_elf64_vec and
722 sparc_elf32_vec.
723
724 2021-01-06 Marcus Comstedt <marcus@mc.pp.se>
725
726 * config.bfd: Added targets riscv64be*-*-*, riscv32be*-*-* and
727 riscvbe*-*-*. Also added riscv_elf[32|64]_be_vec.
728 * configure.ac: Handle riscv_elf[32|64]_be_vec.
729 * configure: Regenerate.
730 * elfnn-riscv.c: Include <limits.h> and define CHAR_BIT for
731 riscv_is_insn_reloc.
732 (riscv_get_insn): RISC-V instructions are always little endian, but
733 bfd_get may be used for big-endian, so add new riscv_get_insn to handle
734 the insturctions.
735 (riscv_put_insn): Likewsie.
736 (riscv_is_insn_reloc): Check if we are relocaing an instruction.
737 (perform_relocation): Call riscv_is_insn_reloc to decide if we should
738 use riscv_[get|put]_insn or bfd_[get|put].
739 (riscv_zero_pcrel_hi_reloc): Use riscv_[get|put]_insn, bfd_[get|put]l32
740 or bfd_[get|put]l16 for code.
741 (riscv_elf_relocate_section): Likewise.
742 (riscv_elf_finish_dynamic_symbol): Likewise.
743 (riscv_elf_finish_dynamic_sections): Likewise.
744 (_bfd_riscv_relax_call): Likewise.
745 (_bfd_riscv_relax_lui): Likewise.
746 (_bfd_riscv_relax_align): Likewise.
747 (_bfd_riscv_relax_pc): Likewise.
748 (riscv_elf_object_p): Handled for big endian.
749 (TARGET_BIG_SYM, TARGET_BIG_NAME): Defined.
750 * targets.c: Add riscv_elf[32|64]_be_vec.
751 (_bfd_target_vector): Likewise.
752
753 2021-01-05 Alan Modra <amodra@gmail.com>
754
755 * elflink.c (bfd_elf_link_record_dynamic_symbol): Handle no_export
756 for relocatable executable.
757
758 2021-01-05 Alan Modra <amodra@gmail.com>
759
760 * vms-alpha.c (_bfd_vms_slurp_egsd): Read flags after size check.
761
762 2021-01-05 Nelson Chu <nelson.chu@sifive.com>
763
764 * elfnn-riscv.c (allocate_dynrelocs): When we are generating pde,
765 make sure gp symbol is output as a dynamic symbol.
766
767 2021-01-04 H.J. Lu <hongjiu.lu@intel.com>
768
769 PR ld/26256
770 * elflink.c (compare_link_order): Place unordered sections before
771 ordered sections.
772 (elf_fixup_link_order): Add a link info argument. Allow mixed
773 ordered and unordered input sections for non-relocatable link.
774 Sort the consecutive bfd_indirect_link_order sections with the
775 same pattern. Change the offsets of the bfd_indirect_link_order
776 sections only.
777 (bfd_elf_final_link): Pass info to elf_fixup_link_order.
778 * section.c (bfd_section): Add pattern.
779 (BFD_FAKE_SECTION): Initialize pattern to NULL.
780 * bfd-in2.h: Regenerated.
781
782 2021-01-04 Alexander Fedotov <alfedotov@gmail.com>
783
784 * elf32-arm.c (elf32_arm_print_private_bfd_data): Prefix hex value
785 of private flags with 0x.
786 * elfnn-aarch64.c (elfNN_aarch64_print_private_bfd_data): Likewise.
787
788 2021-01-04 Alan Modra <amodra@gmail.com>
789
790 PR 26822
791 * elflink.c (elf_link_input_bfd): Use the file base name in
792 linker generated STT_FILE symbols.
793
794 2021-01-04 Nelson Chu <nelson.chu@sifive.com>
795
796 * elfxx-riscv.c (riscv_compare_subsets): Removed static.
797 * elfxx-riscv.h: Add declaration.
798 * elfnn-riscv.c (riscv_merge_multi_letter_ext): Use
799 riscv_compare_subsets to check the orders.
800 (riscv_skip_prefix): Removed.
801 (riscv_prefix_cmp): Removed.
802
803 2021-01-04 Alan Modra <amodra@gmail.com>
804
805 PR 26741
806 * elfxx-riscv.c (riscv_parse_prefixed_ext): Free subset after
807 calculating subset version length.
808
809 2021-01-01 Nicolas Boulenguez <nicolas@debian.org>
810
811 * xcofflink.c: Correct spelling in comments.
812
813 2021-01-01 Alan Modra <amodra@gmail.com>
814
815 Update year range in copyright notice of all files.
816
817 For older changes see ChangeLog-2020
818 \f
819 Copyright (C) 2021 Free Software Foundation, Inc.
820
821 Copying and distribution of this file, with or without modification,
822 are permitted in any medium without royalty provided the copyright
823 notice and this notice are preserved.
824
825 Local Variables:
826 mode: change-log
827 left-margin: 8
828 fill-column: 74
829 version-control: never
830 End: