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