1 2021-03-05 H.J. Lu <hongjiu.lu@intel.com>
5 * bfd.c (_bfd_get_link_info): New function.
6 * elf-bfd.h (output_elf_obj_tdata): Add link_info.
8 * libbfd-in.h (_bfd_get_link_info): New prototype.
9 * coff-x86_64.c (coff_amd64_reloc): Also subtract __ImageBase for
10 R_AMD64_IMAGEBASE when generating x86-64 ELF executable.
11 * pe-x86_64.c: Include "coff/internal.h" and "libcoff.h".
12 (pex64_link_add_symbols): New function.
13 (coff_bfd_link_add_symbols): New macro.
14 * libbfd.h: Regenerated.
16 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
17 Andrew Burgess <andrew.burgess@embecosm.com>
19 * elf-bfd.h (elfcore_write_riscv_csr): Declare.
20 * elf.c (elfcore_grok_riscv_csr): New function.
21 (elfcore_grok_note): Handle NT_RISCV_CSR.
22 (elfcore_write_riscv_csr): New function.
23 (elfcore_write_register_note): Handle '.reg-riscv-csr'.
25 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
26 Andrew Burgess <andrew.burgess@embecosm.com>
28 * elfnn-riscv.c (PRPSINFO_PR_FNAME_LENGTH): Define.
29 (PRPSINFO_PR_PSARGS_LENGTH): Define.
30 (riscv_write_core_note): New function.
31 (riscv_elf_grok_psinfo): Make use of two new length defines.
32 (elf_backend_write_core_note): Define.
34 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
35 Andrew Burgess <andrew.burgess@embecosm.com>
37 * elf-bfd.h (elfcore_write_gdb_tdesc): Declare new function.
38 * elf.c (elfcore_grok_gdb_tdesc): New function.
39 (elfcore_grok_note): Handle NT_GDB_TDESC.
40 (elfcore_write_gdb_tdesc): New function.
41 (elfcore_write_register_note): Handle NT_GDB_TDESC.
43 2021-03-05 Nick Clifton <nickc@redhat.com>
46 * dwarf2.c (is_str_attr): Add DW_FORM_strx* forms.
47 (read_indexed_string): Placeholder function.
48 (read_attribute_value): Handle DW_FORM_strx* and DW_FORM_addrx*
51 2021-03-05 Alan Modra <amodra@gmail.com>
53 * reloc.c (bfd_perform_relocation): Revert 2021-01-12 and
55 * coff-x86_64.c (coff_amd64_reloc): Do more or less the same
56 adjustments here instead. Separate pc-relative adjustments
57 from symbol related adjustments. Tidy comments and formatting.
59 2021-03-04 Jan Beulich <jbeulich@suse.com>
61 * coffcode.h (sec_to_styp_flags): Don't set IMAGE_SCN_LNK_* in
64 2021-03-04 Alan Modra <amodra@gmail.com>
66 * rs6000-core.c (rs6000coff_core_p): Correct prototype.
68 2021-03-03 Alan Modra <amodra@gmail.com>
71 * elflink.c (_bfd_elf_gc_mark_rsec): Do special start/stop
72 processing not when start/stop symbol section is unmarked but
73 on first time a start/stop symbol is processed.
75 2021-03-03 Alan Modra <amodra@gmail.com>
77 * reloc.c: Include x86_64.h rather than internal.h.
79 2021-03-02 Nick Clifton <nickc@redhat.com>
82 * dwarf2.c (scan_unit_for_symbols): Scan twice, once to accumulate
83 function and variable tags and a second time to resolve their
86 2021-03-02 Nick Alcock <nick.alcock@oracle.com>
88 * elf-strtab.c (_bfd_elf_strtab_str): Skip strings with zero refcount.
90 2021-03-02 Alan Modra <amodra@gmail.com>
93 * elf64-ppc.c (ppc64_elf_gc_mark_dynamic_ref): Ignore synthesized
94 linker defined start/stop symbols when start_stop_gc.
96 2021-03-02 Alan Modra <amodra@gmail.com>
98 * elf64-ppc.c (ppc64_elf_relocate_section): Don't optimise got
99 indirect to pc-relative or toc-relative for undefined symbols.
101 2021-03-01 Alan Modra <amodra@gmail.com>
102 Fangrui Song <maskray@google.com>
104 * elflink.c (_bfd_elf_gc_mark_rsec): Ignore synthesized linker
105 defined start/stop symbols when start_stop_gc.
106 (bfd_elf_gc_mark_dynamic_ref_symbol): Likewise.
107 (bfd_elf_define_start_stop): Don't modify ldscript_def syms.
108 * linker.c (bfd_generic_define_start_stop): Likewise.
110 2021-02-25 Alan Modra <amodra@gmail.com>
113 * elf-bfd.h (struct elf_link_hash_entry): Add ref_ir_nonweak.
114 * elflink.c (elf_link_add_object_symbols): Set ref_ir_nonweak and
115 use when deciding an as-needed library should be loaded instead
116 of using the binding of the library definition.
118 2021-02-24 Alan Modra <amodra@gmail.com>
121 * coff-stgo32.c (go32exe_check_format): Sanity check size of
122 header to avoid a buffer overflow.
124 2021-02-22 Alan Modra <amodra@gmail.com>
126 * coff-rs6000.c (_bfd_xcoff_reloc_type_lookup): Remove BFD_RELOC_16.
127 * coff64-rs6000.c (xcoff64_reloc_type_lookup): Likewise.
129 2021-02-19 Nelson Chu <nelson.chu@sifive.com>
132 * elfnn-riscv.c (perform_relocation): Updated encoding macros.
133 (_bfd_riscv_relax_call): Likewise.
134 (_bfd_riscv_relax_lui): Likewise.
135 * elfxx-riscv.c (howto_table): Likewise.
137 2021-02-18 Nelson Chu <nelson.chu@sifive.com>
139 * Makefile.am: Added cpu-riscv.h.
140 * Makefile.in: Regenerated.
141 * po/SRC-POTFILES.in: Regenerated.
142 * cpu-riscv.h: Added to support spec versions controlling.
143 Also added extern arrays and functions for cpu-riscv.c.
144 (enum riscv_spec_class): Define all spec classes here uniformly.
145 (struct riscv_spec): Added for all specs.
146 (RISCV_GET_SPEC_CLASS): Added to reduce repeated code.
147 (RISCV_GET_SPEC_NAME): Likewise.
148 (RISCV_GET_ISA_SPEC_CLASS): Added to get ISA spec class.
149 (RISCV_GET_PRIV_SPEC_CLASS): Added to get privileged spec class.
150 (RISCV_GET_PRIV_SPEC_NAME): Added to get privileged spec name.
151 * cpu-riscv.c (struct priv_spec_t): Replaced with struct riscv_spec.
152 (riscv_get_priv_spec_class): Replaced with RISCV_GET_PRIV_SPEC_CLASS.
153 (riscv_get_priv_spec_name): Replaced with RISCV_GET_PRIV_SPEC_NAME.
154 (riscv_priv_specs): Moved below.
155 (riscv_get_priv_spec_class_from_numbers): Likewise, updated.
156 (riscv_isa_specs): Moved from include/opcode/riscv.h.
157 * elfnn-riscv.c: Included cpu-riscv.h.
158 (riscv_merge_attributes): Initialize in_priv_spec and out_priv_spec.
159 * elfxx-riscv.c: Included cpu-riscv.h and opcode/riscv.h.
160 (RISCV_UNKNOWN_VERSION): Moved from include/opcode/riscv.h.
161 * elfxx-riscv.h: Removed extern functions to cpu-riscv.h.
163 2021-02-17 Alan Modra <amodra@gmail.com>
165 * wasm-module.c: Guard include of limits.h.
166 (CHAR_BIT): Provide backup define.
167 (wasm_read_leb128): Use CHAR_BIT to size "result" in bits.
168 Correct signed overflow checking.
170 2021-02-17 Nelson Chu <nelson.chu@sifive.com>
173 * elfnn-riscv.c (_bfd_riscv_elf_merge_private_bfd_data): Delay
174 copying the elf flags from input BFD to output BFD, until we have
175 checked if the input BFD has no code section or not. Also fix the
176 problem that we only check the first section rather than the entire
177 sections for input BFD.
179 2021-02-16 Alan Modra <amodra@gmail.com>
181 * libbfd.c (_bfd_read_unsigned_leb128): Avoid excessive shift.
182 (_bfd_safe_read_leb128, _bfd_read_signed_leb128): Likewise.
184 2021-02-15 Jan Beulich <jbeulich@suse.com>
186 * doc/Makefile.am: Replace "cp -p" by "$(LN_S)".
187 * doc/Makefile.in: Re-generate.
189 2021-02-15 Alan Modra <amodra@gmail.com>
191 * elf32-nds32.c (nds32_get_section_contents): Replace
192 bfd_malloc_and_get_section with bfd_get_full_section_contents.
193 (nds32_elf_relax_delete_blanks): Init contents.
194 (nds32_elf_relax_section, nds32_relax_fp_as_gp): Likewise.
196 2021-02-15 Alan Modra <amodra@gmail.com>
198 * coff-alpha.c (alpha_ecoff_get_relocated_section_contents): Use
199 bfd_get_full_section_contents.
201 2021-02-14 Alan Modra <amodra@gmail.com>
203 * elfxx-mips.c (_bfd_elf_mips_get_relocated_section_contents): Apply
204 all fixes to bfd_generic_get_relocated_section_contents since this
205 function was split out.
207 2021-02-11 Alan Modra <amodra@gmail.com>
209 * config.bfd: Remove ia64 from obsolete list.
211 2021-02-11 Alan Modra <amodra@gmail.com>
214 * elfnn-ia64.c: Revert 2017-10-14 git commit db41f6eb5234.
216 2021-02-11 Alan Modra <amodra@gmail.com>
219 * elf32-avr.c (avr_elf32_load_records_from_section): Use
220 bfd_malloc_and_get_section. Use bfd_byte* vars and remove then
223 2021-02-11 Alan Modra <amodra@gmail.com>
226 * section.c (bfd_get_section_contents): Avoid possible overflow
227 when range checking offset and count.
228 (bfd_set_section_contents): Likewise.
230 2021-02-03 Nick Alcock <nick.alcock@oracle.com>
232 * configure.ac (SHARED_LIBADD): Remove explicit -lintl population in
234 * configure: Regenerated.
236 2021-02-09 Alan Modra <amodra@gmail.com>
238 * config.bfd (arm*-*-symbianelf*): Move from obsolete to removed.
239 * configure.ac: Delete symbian entries.
240 * elf-bfd.h (enum elf_target_os): Delete is_symbian.
241 * elf32-arm.c: Remove symbian support. Formatting.
242 * targets.c: Delete symbian entries.
243 * configure: Regenerate.
245 2021-02-04 H.J. Lu <hongjiu.lu@intel.com>
248 * elf64-x86-64.c (elf_x86_64_relocate_section): Provide more
249 info when failed to convert GOTPCREL relocation.
251 2021-02-04 Nelson Chu <nelson.chu@sifive.com>
253 * elfxx-riscv.c (riscv_parse_prefixed_ext): Removed zb*.
255 2021-02-04 Alan Modra <amodra@gmail.com>
258 * elflink.c (elf_link_add_object_symbols): Don't pull in as-needed
259 libraries for IR references on pass over libraries after LTO
262 2021-02-03 Alan Modra <amodra@gmail.com>
265 * elflink.c (_bfd_elf_add_default_symbol): Revert last two changes.
266 (elf_link_add_object_symbols): Here too. Don't pull in as-needed
267 libraries when H is an indirect symbol after calling
268 _bfd_elf_add_default_symbol.
270 2021-02-03 Alan Modra <amodra@gmail.com>
273 * elflink.c (_bfd_elf_add_default_symbol): Clear override when
274 undecorated symbol will have a different version.
276 2021-02-02 Alan Modra <amodra@gmail.com>
279 * elflink.c (_bfd_elf_add_default_symbol): Add override parameter.
280 Use when handling default versioned symbol. Rename existing
281 override variable to nondef_override and use for non-default
283 (elf_link_add_object_symbols): Adjust call to suit. Don't
284 pull in as-needed libraries when override is set.
286 2021-02-01 Emery Hemingway <ehmry@posteo.net>
288 * config.bfd: Add *-*-genode* as a target for AArch64 and x86.
290 2021-02-01 Egor Vishnyakov <lenvampir@yandex.ru>
293 * elf32-rl78.c (rl78_elf_relocate_section): Fix calculation of
294 offset for the R_RL78_RH_SADDR relocation.
296 2021-01-29 Alan Modra <amodra@gmail.com>
299 * elflink.c (bfd_elf_link_record_dynamic_symbol): Don't segfault
300 on symbols defined in absolute or other special sections.
302 2021-01-28 Alan Modra <amodra@gmail.com>
305 * elflink.c (_bfd_elf_gc_mark_extra_sections): Use linker_mark to
306 prevent endless looping of linked-to sections.
308 2020-12-17 Mihails Strasuns <mihails.strasuns@intel.com>
310 * bfd-elf.h (elfcore_write_file_note): New function.
311 * elf.c (elfcore_write_file_note): New function.
313 2021-01-26 Alan Modra <amodra@gmail.com>
315 * elf32-ft32.c (ft32_reloc_type_lookup): Don't miss ft32_reloc_map[0].
317 2021-01-24 H.J. Lu <hongjiu.lu@intel.com>
320 * dwarf2.c (read_rnglists): Ignore empty range when parsing line
323 2021-01-23 H.J. Lu <hongjiu.lu@intel.com>
326 * dwarf2.c (read_rnglists): Advance rngs_ptr after
327 _bfd_safe_read_leb128 when parsing DW_RLE_offset_pair.
329 2021-01-20 Alan Modra <amodra@gmail.com>
331 * elf32-ppc.c: Delete outdated comment.
332 (TARGET_KEEP_UNUSED_SECTION_SYMBOLS): Define.
333 * elf64-ppc.c (TARGET_KEEP_UNUSED_SECTION_SYMBOLS): Define.
335 2021-01-20 Alan Modra <amodra@gmail.com>
337 * elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Don't assume
338 section symbols are present.
340 2021-01-19 Alan Modra <amodra@gmail.com>
342 * elf64-ppc.c (elf_hash_entry): New inline function. Use
343 throughout to replace casts.
344 (branch_reloc_hash_match): Remove const from params.
345 (use_local_plt): New function.
346 (allocate_dynrelocs, ppc_build_one_stub, ppc_size_one_stub),
347 (build_global_entry_stubs_and_plt, ppc64_elf_relocate_section):
349 * elf32-ppc.c (use_local_plt): New function.
350 (allocate_dynrelocs, ppc_elf_relocate_section),
351 (write_global_sym_plt): Use use_local_plt.
353 2021-01-17 H.J. Lu <hongjiu.lu@intel.com>
356 * elflink.c (elf_create_symbuf): Also ignore section symbols.
358 2021-01-16 H.J. Lu <hongjiu.lu@intel.com>
361 * elfxx-x86.c (_bfd_x86_elf_link_fixup_ifunc_symbol): Don't
362 check pointer_equality_needed.
364 2021-01-15 H.J. Lu <hongjiu.lu@intel.com>
366 * elf-linker-x86.h (elf_linker_x86_params): Add
367 report_relative_reloc.
368 * elf32-i386.c (elf_i386_relocate_section): Call
369 _bfd_x86_elf_link_report_relative_reloc to report relative
370 relocations for -z report-relative-reloc.
371 (elf_i386_finish_dynamic_symbol): Likewse.
372 * elf64-x86-64.c (elf_x86_64_relocate_section): Likewse.
373 (elf_x86_64_finish_dynamic_symbol): Likewse.
374 * elfxx-x86.c (_bfd_x86_elf_link_report_relative_reloc): New
376 * elfxx-x86.h (_bfd_x86_elf_link_report_relative_reloc): New
379 2021-01-16 Alan Modra <amodra@gmail.com>
381 * compress.c (decompress_contents): Tidy inflateEnd result test.
383 2021-01-16 Alan Modra <amodra@gmail.com>
386 * elflink.c (elf_link_output_extsym): Use version 1 in
387 .gnu.version for undefined unversioned symbols.
389 2021-01-15 Nelson Chu <nelson.chu@sifive.com>
391 * elfnn-riscv.c (riscv_relax_delete_bytes): Fixed the indent that
392 caused the by previous commit accidentally.
394 2021-01-15 Nelson Chu <nelson.chu@sifive.com>
396 * elfnn-riscv.c: Indent, labels and GNU coding standards tidy,
397 also aligned the code.
399 2021-01-15 Nelson Chu <nelson.chu@sifive.com>
401 * elfnn-riscv.c (riscv_merge_attributes): Fix typos of messages.
403 2021-01-15 Nelson Chu <nelson.chu@sifive.com>
405 * elfnn-riscv.c: Comments tidy and improvement.
406 * elfxx-riscv.c: Likewise.
407 * elfxx-riscv.h: Likewise.
409 2021-01-14 H.J. Lu <hongjiu.lu@intel.com>
412 * elf32-bfin.c (bfinfdpic_relocate_section): Skip non SEC_ALLOC
413 section for R_BFIN_FUNCDESC.
415 2021-01-14 Nick Clifton <nickc@redhat.com>
417 * elf.c (elfcore_grok_win32pstatus): Check for a note type of 0.
419 2021-01-13 Alan Modra <amodra@gmail.com>
421 * Makefile.in: Regenerate.
422 * doc/Makefile.in: Regenerate.
424 2021-01-13 Alan Modra <amodra@gmail.com>
427 * section.c (struct bfd_section): Remove pattern field.
428 (BFD_FAKE_SECTION): Adjust to suit.
429 * bfd-in2.h: Regenerate.
430 * elflink.c (compare_link_order, elf_fixup_link_order): Delete.
431 (bfd_elf_final_link): Don't call elf_fixup_link_order.
433 2021-01-12 H.J. Lu <hongjiu.lu@intel.com>
436 * configure.ac: Use GNU_MAKE_JOBSERVER.
437 * aclocal.m4: Regenerated.
438 * configure: Likewise.
440 2021-01-12 H.J. Lu <hongjiu.lu@intel.com>
443 * reloc.c (bfd_perform_relocation): Adjust R_AMD64_DIR64 and
444 R_AMD64_DIR32 relocations for PE/x86-64 inputs.
446 2021-01-11 H.J. Lu <hongjiu.lu@intel.com>
449 * configure: Regenerated.
451 2021-01-11 Nick Clifton <nickc@redhat.com>
453 * po/fr.po: Updated French translation.
454 * po/pt.po: Updated Portuguese translation.
455 * po/sr.po: Updated Serbian translation.
456 * po/uk.po: Updated Ukranian translation.
458 2021-01-09 H.J. Lu <hongjiu.lu@intel.com>
460 * configure: Regenerated.
462 2021-01-09 H.J. Lu <hongjiu.lu@intel.com>
465 * elfxx-x86.c (_bfd_x86_elf_merge_gnu_properties): Handle
466 -z lam-u48 and -z lam-u57.
468 2021-01-09 Nick Clifton <nickc@redhat.com>
470 * version.m4: Change to 2.36.50.
471 * configure: Regenerate.
472 * po/bfd.pot: Regenerate.
474 2021-01-09 Nick Clifton <nickc@redhat.com>
476 * 2.36 release branch crated.
478 2021-01-08 H.J. Lu <hongjiu.lu@intel.com>
480 * elfxx-x86.c (_bfd_x86_elf_link_setup_gnu_properties): Also set
481 LAM_U57 when setting LAM_U48.
483 2021-01-08 H.J. Lu <hongjiu.lu@intel.com>
487 * elflink.c (elf_fixup_link_order): Verify that fixing up
488 SHF_LINK_ORDER doesn't increase the output section size.
490 2021-01-09 Alan Modra <amodra@gmail.com>
492 * configure: Regenerate.
494 2021-01-07 Samuel Thibault <samuel.thibault@gnu.org>
496 * configure: Regenerate.
498 2021-01-07 H.J. Lu <hongjiu.lu@intel.com>
501 * aix386-core.c (core_aix386_vec): Initialize
502 keep_unused_section_symbol to TARGET_KEEP_UNUSED_SECTION_SYMBOLS.
503 * aout-target.h (MY (vec)): Likewise.
504 * binary.c (binary_vec): Likewise.
505 * cisco-core.c (core_cisco_be_vec): Likewise.
506 (core_cisco_le_vec): Likewise.
507 * coff-alpha.c (alpha_ecoff_le_vec): Likewise.
508 * coff-i386.c (TARGET_SYM): Likewise.
509 (TARGET_SYM_BIG): Likewise.
510 * coff-ia64.c (TARGET_SYM): Likewise.
511 * coff-mips.c (mips_ecoff_le_vec): Likewise.
512 (mips_ecoff_be_vec): Likewise.
513 (mips_ecoff_bele_vec): Likewise.
514 * coff-rs6000.c (rs6000_xcoff_vec): Likewise.
515 (powerpc_xcoff_vec): Likewise.
516 * coff-sh.c (sh_coff_small_vec): Likewise.
517 (sh_coff_small_le_vec): Likewise.
518 * coff-tic30.c (tic30_coff_vec): Likewise.
519 * coff-tic54x.c (tic54x_coff0_vec): Likewise.
520 (tic54x_coff0_beh_vec): Likewise.
521 (tic54x_coff1_vec): Likewise.
522 (tic54x_coff1_beh_vec): Likewise.
523 (tic54x_coff2_vec): Likewise.
524 (tic54x_coff2_beh_vec): Likewise.
525 * coff-x86_64.c (TARGET_SYM): Likewise.
526 (TARGET_SYM_BIG): Likewise.
527 * coff64-rs6000.c (rs6000_xcoff64_vec): Likewise.
528 (rs6000_xcoff64_aix_vec): Likewise.
529 * coffcode.h (CREATE_BIG_COFF_TARGET_VEC): Likewise.
530 (CREATE_BIGHDR_COFF_TARGET_VEC): Likewise.
531 (CREATE_LITTLE_COFF_TARGET_VEC): Likewise.
532 * elfxx-target.h (TARGET_BIG_SYM): Likewise.
533 (TARGET_LITTLE_SYM): Likewise.
534 * hppabsd-core.c (core_hppabsd_vec): Likewise.
535 * hpux-core.c (core_hpux_vec): Likewise.
536 * i386msdos.c (i386_msdos_vec): Likewise.
537 * ihex.c (ihex_vec): Likewise.
538 * irix-core.c (core_irix_vec): Likewise.
539 * mach-o-target.c (TARGET_NAME): Likewise.
540 * mmo.c (mmix_mmo_vec): Likewise.
541 * netbsd-core.c (core_netbsd_vec): Likewise.
542 * osf-core.c (core_osf_vec): Likewise.
543 * pdp11.c (MY (vec)): Likewise.
544 * pef.c (pef_vec): Likewise.
545 (pef_xlib_vec): Likewise.
546 * plugin.c (plugin_vec): Likewise.
547 * ppcboot.c (powerpc_boot_vec): Likewise.
548 * ptrace-core.c (core_ptrace_vec): Likewise.
549 * sco5-core.c (core_sco5_vec): Likewise.
550 * som.c (hppa_som_vec): Likewise.
551 * srec.c (srec_vec): Likewise.
552 (symbolsrec_vec): Likewise.
553 * tekhex.c (tekhex_vec): Likewise.
554 * trad-core.c (core_trad_vec): Likewise.
555 * verilog.c (verilog_vec): Likewise.
556 * vms-alpha.c (alpha_vms_vec): Likewise.
557 * vms-lib.c (alpha_vms_lib_txt_vec): Likewise.
558 * wasm-module.c (wasm_vec): Likewise.
559 * xsym.c (sym_vec): Likewise.
560 * elf.c (ignore_section_sym): Return TRUE if BSF_SECTION_SYM_USED
562 (elf_map_symbols): Don't include ignored section symbols.
563 * elfcode.h (elf_slurp_symbol_table): Also set
564 BSF_SECTION_SYM_USED on STT_SECTION symbols.
565 * elflink.c (bfd_elf_final_link): Generated section symbols only
566 when emitting relocations or reqired.
567 * elfxx-x86.h (TARGET_KEEP_UNUSED_SECTION_SYMBOLS): New.
568 * syms.c (BSF_SECTION_SYM_USED): New.
569 * targets.c (TARGET_KEEP_UNUSED_SECTION_SYMBOLS): New.
570 (bfd_target): Add keep_unused_section_symbols.
571 (bfd_keep_unused_section_symbols): New.
572 * bfd-in2.h: Regenerated.
574 2021-01-07 Nick Clifton <nickc@redhat.com>
577 * bfdio.c (_bfd_real_fopen): For Win32 convert relative paths to
578 absolute paths and check to see if they are longer than MAX_PATH.
580 2021-01-07 Philipp Tomsich <prt@gnu.org>
582 * elfxx-riscv.c (riscv_std_z_ext_strtab): Added zihintpause.
584 2021-01-07 Claire Xenia Wolf <claire@symbioticeda.com>
585 Jim Wilson <jimw@sifive.com>
586 Andrew Waterman <andrew@sifive.com>
587 Maxim Blinov <maxim.blinov@embecosm.com>
588 Kito Cheng <kito.cheng@sifive.com>
589 Nelson Chu <nelson.chu@sifive.com>
591 * elfxx-riscv.c (riscv_std_z_ext_strtab): Added zba, zbb and zbc.
593 2021-01-06 H.J. Lu <hongjiu.lu@intel.com>
595 * elf32-bfin.c (bfin_check_relocs): Check bfd_link_hash_indirect.
596 (bfinfdpic_check_relocs): Likewise.
598 2021-01-06 Alan Modra <amodra@gmail.com>
600 * elf32-score.c (s3_bfd_score_info_to_howto): Report an error
602 * elf32-score7.c (s7_bfd_score_info_to_howto): Likewise.
604 2021-01-06 Alan Modra <amodra@gmail.com>
606 * config.bfd (sparc-*-solaris2*): Add sparc_elf32_vec.
607 (sparc64-*-solaris2*): Add sparc_elf64_vec and
610 2021-01-06 Marcus Comstedt <marcus@mc.pp.se>
612 * config.bfd: Added targets riscv64be*-*-*, riscv32be*-*-* and
613 riscvbe*-*-*. Also added riscv_elf[32|64]_be_vec.
614 * configure.ac: Handle riscv_elf[32|64]_be_vec.
615 * configure: Regenerate.
616 * elfnn-riscv.c: Include <limits.h> and define CHAR_BIT for
618 (riscv_get_insn): RISC-V instructions are always little endian, but
619 bfd_get may be used for big-endian, so add new riscv_get_insn to handle
621 (riscv_put_insn): Likewsie.
622 (riscv_is_insn_reloc): Check if we are relocaing an instruction.
623 (perform_relocation): Call riscv_is_insn_reloc to decide if we should
624 use riscv_[get|put]_insn or bfd_[get|put].
625 (riscv_zero_pcrel_hi_reloc): Use riscv_[get|put]_insn, bfd_[get|put]l32
626 or bfd_[get|put]l16 for code.
627 (riscv_elf_relocate_section): Likewise.
628 (riscv_elf_finish_dynamic_symbol): Likewise.
629 (riscv_elf_finish_dynamic_sections): Likewise.
630 (_bfd_riscv_relax_call): Likewise.
631 (_bfd_riscv_relax_lui): Likewise.
632 (_bfd_riscv_relax_align): Likewise.
633 (_bfd_riscv_relax_pc): Likewise.
634 (riscv_elf_object_p): Handled for big endian.
635 (TARGET_BIG_SYM, TARGET_BIG_NAME): Defined.
636 * targets.c: Add riscv_elf[32|64]_be_vec.
637 (_bfd_target_vector): Likewise.
639 2021-01-05 Alan Modra <amodra@gmail.com>
641 * elflink.c (bfd_elf_link_record_dynamic_symbol): Handle no_export
642 for relocatable executable.
644 2021-01-05 Alan Modra <amodra@gmail.com>
646 * vms-alpha.c (_bfd_vms_slurp_egsd): Read flags after size check.
648 2021-01-05 Nelson Chu <nelson.chu@sifive.com>
650 * elfnn-riscv.c (allocate_dynrelocs): When we are generating pde,
651 make sure gp symbol is output as a dynamic symbol.
653 2021-01-04 H.J. Lu <hongjiu.lu@intel.com>
656 * elflink.c (compare_link_order): Place unordered sections before
658 (elf_fixup_link_order): Add a link info argument. Allow mixed
659 ordered and unordered input sections for non-relocatable link.
660 Sort the consecutive bfd_indirect_link_order sections with the
661 same pattern. Change the offsets of the bfd_indirect_link_order
663 (bfd_elf_final_link): Pass info to elf_fixup_link_order.
664 * section.c (bfd_section): Add pattern.
665 (BFD_FAKE_SECTION): Initialize pattern to NULL.
666 * bfd-in2.h: Regenerated.
668 2021-01-04 Alexander Fedotov <alfedotov@gmail.com>
670 * elf32-arm.c (elf32_arm_print_private_bfd_data): Prefix hex value
671 of private flags with 0x.
672 * elfnn-aarch64.c (elfNN_aarch64_print_private_bfd_data): Likewise.
674 2021-01-04 Alan Modra <amodra@gmail.com>
677 * elflink.c (elf_link_input_bfd): Use the file base name in
678 linker generated STT_FILE symbols.
680 2021-01-04 Nelson Chu <nelson.chu@sifive.com>
682 * elfxx-riscv.c (riscv_compare_subsets): Removed static.
683 * elfxx-riscv.h: Add declaration.
684 * elfnn-riscv.c (riscv_merge_multi_letter_ext): Use
685 riscv_compare_subsets to check the orders.
686 (riscv_skip_prefix): Removed.
687 (riscv_prefix_cmp): Removed.
689 2021-01-04 Alan Modra <amodra@gmail.com>
692 * elfxx-riscv.c (riscv_parse_prefixed_ext): Free subset after
693 calculating subset version length.
695 2021-01-01 Nicolas Boulenguez <nicolas@debian.org>
697 * xcofflink.c: Correct spelling in comments.
699 2021-01-01 Alan Modra <amodra@gmail.com>
701 Update year range in copyright notice of all files.
703 For older changes see ChangeLog-2020
705 Copyright (C) 2021 Free Software Foundation, Inc.
707 Copying and distribution of this file, with or without modification,
708 are permitted in any medium without royalty provided the copyright
709 notice and this notice are preserved.
715 version-control: never