1 2021-03-05 Alan Modra <amodra@gmail.com>
3 * reloc.c (bfd_perform_relocation): Revert 2021-01-12 and
5 * coff-x86_64.c (coff_amd64_reloc): Do more or less the same
6 adjustments here instead. Separate pc-relative adjustments
7 from symbol related adjustments. Tidy comments and formatting.
9 2021-03-04 Jan Beulich <jbeulich@suse.com>
11 * coffcode.h (sec_to_styp_flags): Don't set IMAGE_SCN_LNK_* in
14 2021-03-04 Alan Modra <amodra@gmail.com>
16 * rs6000-core.c (rs6000coff_core_p): Correct prototype.
18 2021-03-03 Alan Modra <amodra@gmail.com>
21 * elflink.c (_bfd_elf_gc_mark_rsec): Do special start/stop
22 processing not when start/stop symbol section is unmarked but
23 on first time a start/stop symbol is processed.
25 2021-03-03 Alan Modra <amodra@gmail.com>
27 * reloc.c: Include x86_64.h rather than internal.h.
29 2021-03-02 Nick Clifton <nickc@redhat.com>
32 * dwarf2.c (scan_unit_for_symbols): Scan twice, once to accumulate
33 function and variable tags and a second time to resolve their
36 2021-03-02 Nick Alcock <nick.alcock@oracle.com>
38 * elf-strtab.c (_bfd_elf_strtab_str): Skip strings with zero refcount.
40 2021-03-02 Alan Modra <amodra@gmail.com>
43 * elf64-ppc.c (ppc64_elf_gc_mark_dynamic_ref): Ignore synthesized
44 linker defined start/stop symbols when start_stop_gc.
46 2021-03-02 Alan Modra <amodra@gmail.com>
48 * elf64-ppc.c (ppc64_elf_relocate_section): Don't optimise got
49 indirect to pc-relative or toc-relative for undefined symbols.
51 2021-03-01 Alan Modra <amodra@gmail.com>
52 Fangrui Song <maskray@google.com>
54 * elflink.c (_bfd_elf_gc_mark_rsec): Ignore synthesized linker
55 defined start/stop symbols when start_stop_gc.
56 (bfd_elf_gc_mark_dynamic_ref_symbol): Likewise.
57 (bfd_elf_define_start_stop): Don't modify ldscript_def syms.
58 * linker.c (bfd_generic_define_start_stop): Likewise.
60 2021-02-25 Alan Modra <amodra@gmail.com>
63 * elf-bfd.h (struct elf_link_hash_entry): Add ref_ir_nonweak.
64 * elflink.c (elf_link_add_object_symbols): Set ref_ir_nonweak and
65 use when deciding an as-needed library should be loaded instead
66 of using the binding of the library definition.
68 2021-02-24 Alan Modra <amodra@gmail.com>
71 * coff-stgo32.c (go32exe_check_format): Sanity check size of
72 header to avoid a buffer overflow.
74 2021-02-22 Alan Modra <amodra@gmail.com>
76 * coff-rs6000.c (_bfd_xcoff_reloc_type_lookup): Remove BFD_RELOC_16.
77 * coff64-rs6000.c (xcoff64_reloc_type_lookup): Likewise.
79 2021-02-19 Nelson Chu <nelson.chu@sifive.com>
82 * elfnn-riscv.c (perform_relocation): Updated encoding macros.
83 (_bfd_riscv_relax_call): Likewise.
84 (_bfd_riscv_relax_lui): Likewise.
85 * elfxx-riscv.c (howto_table): Likewise.
87 2021-02-18 Nelson Chu <nelson.chu@sifive.com>
89 * Makefile.am: Added cpu-riscv.h.
90 * Makefile.in: Regenerated.
91 * po/SRC-POTFILES.in: Regenerated.
92 * cpu-riscv.h: Added to support spec versions controlling.
93 Also added extern arrays and functions for cpu-riscv.c.
94 (enum riscv_spec_class): Define all spec classes here uniformly.
95 (struct riscv_spec): Added for all specs.
96 (RISCV_GET_SPEC_CLASS): Added to reduce repeated code.
97 (RISCV_GET_SPEC_NAME): Likewise.
98 (RISCV_GET_ISA_SPEC_CLASS): Added to get ISA spec class.
99 (RISCV_GET_PRIV_SPEC_CLASS): Added to get privileged spec class.
100 (RISCV_GET_PRIV_SPEC_NAME): Added to get privileged spec name.
101 * cpu-riscv.c (struct priv_spec_t): Replaced with struct riscv_spec.
102 (riscv_get_priv_spec_class): Replaced with RISCV_GET_PRIV_SPEC_CLASS.
103 (riscv_get_priv_spec_name): Replaced with RISCV_GET_PRIV_SPEC_NAME.
104 (riscv_priv_specs): Moved below.
105 (riscv_get_priv_spec_class_from_numbers): Likewise, updated.
106 (riscv_isa_specs): Moved from include/opcode/riscv.h.
107 * elfnn-riscv.c: Included cpu-riscv.h.
108 (riscv_merge_attributes): Initialize in_priv_spec and out_priv_spec.
109 * elfxx-riscv.c: Included cpu-riscv.h and opcode/riscv.h.
110 (RISCV_UNKNOWN_VERSION): Moved from include/opcode/riscv.h.
111 * elfxx-riscv.h: Removed extern functions to cpu-riscv.h.
113 2021-02-17 Alan Modra <amodra@gmail.com>
115 * wasm-module.c: Guard include of limits.h.
116 (CHAR_BIT): Provide backup define.
117 (wasm_read_leb128): Use CHAR_BIT to size "result" in bits.
118 Correct signed overflow checking.
120 2021-02-17 Nelson Chu <nelson.chu@sifive.com>
123 * elfnn-riscv.c (_bfd_riscv_elf_merge_private_bfd_data): Delay
124 copying the elf flags from input BFD to output BFD, until we have
125 checked if the input BFD has no code section or not. Also fix the
126 problem that we only check the first section rather than the entire
127 sections for input BFD.
129 2021-02-16 Alan Modra <amodra@gmail.com>
131 * libbfd.c (_bfd_read_unsigned_leb128): Avoid excessive shift.
132 (_bfd_safe_read_leb128, _bfd_read_signed_leb128): Likewise.
134 2021-02-15 Jan Beulich <jbeulich@suse.com>
136 * doc/Makefile.am: Replace "cp -p" by "$(LN_S)".
137 * doc/Makefile.in: Re-generate.
139 2021-02-15 Alan Modra <amodra@gmail.com>
141 * elf32-nds32.c (nds32_get_section_contents): Replace
142 bfd_malloc_and_get_section with bfd_get_full_section_contents.
143 (nds32_elf_relax_delete_blanks): Init contents.
144 (nds32_elf_relax_section, nds32_relax_fp_as_gp): Likewise.
146 2021-02-15 Alan Modra <amodra@gmail.com>
148 * coff-alpha.c (alpha_ecoff_get_relocated_section_contents): Use
149 bfd_get_full_section_contents.
151 2021-02-14 Alan Modra <amodra@gmail.com>
153 * elfxx-mips.c (_bfd_elf_mips_get_relocated_section_contents): Apply
154 all fixes to bfd_generic_get_relocated_section_contents since this
155 function was split out.
157 2021-02-11 Alan Modra <amodra@gmail.com>
159 * config.bfd: Remove ia64 from obsolete list.
161 2021-02-11 Alan Modra <amodra@gmail.com>
164 * elfnn-ia64.c: Revert 2017-10-14 git commit db41f6eb5234.
166 2021-02-11 Alan Modra <amodra@gmail.com>
169 * elf32-avr.c (avr_elf32_load_records_from_section): Use
170 bfd_malloc_and_get_section. Use bfd_byte* vars and remove then
173 2021-02-11 Alan Modra <amodra@gmail.com>
176 * section.c (bfd_get_section_contents): Avoid possible overflow
177 when range checking offset and count.
178 (bfd_set_section_contents): Likewise.
180 2021-02-03 Nick Alcock <nick.alcock@oracle.com>
182 * configure.ac (SHARED_LIBADD): Remove explicit -lintl population in
184 * configure: Regenerated.
186 2021-02-09 Alan Modra <amodra@gmail.com>
188 * config.bfd (arm*-*-symbianelf*): Move from obsolete to removed.
189 * configure.ac: Delete symbian entries.
190 * elf-bfd.h (enum elf_target_os): Delete is_symbian.
191 * elf32-arm.c: Remove symbian support. Formatting.
192 * targets.c: Delete symbian entries.
193 * configure: Regenerate.
195 2021-02-04 H.J. Lu <hongjiu.lu@intel.com>
198 * elf64-x86-64.c (elf_x86_64_relocate_section): Provide more
199 info when failed to convert GOTPCREL relocation.
201 2021-02-04 Nelson Chu <nelson.chu@sifive.com>
203 * elfxx-riscv.c (riscv_parse_prefixed_ext): Removed zb*.
205 2021-02-04 Alan Modra <amodra@gmail.com>
208 * elflink.c (elf_link_add_object_symbols): Don't pull in as-needed
209 libraries for IR references on pass over libraries after LTO
212 2021-02-03 Alan Modra <amodra@gmail.com>
215 * elflink.c (_bfd_elf_add_default_symbol): Revert last two changes.
216 (elf_link_add_object_symbols): Here too. Don't pull in as-needed
217 libraries when H is an indirect symbol after calling
218 _bfd_elf_add_default_symbol.
220 2021-02-03 Alan Modra <amodra@gmail.com>
223 * elflink.c (_bfd_elf_add_default_symbol): Clear override when
224 undecorated symbol will have a different version.
226 2021-02-02 Alan Modra <amodra@gmail.com>
229 * elflink.c (_bfd_elf_add_default_symbol): Add override parameter.
230 Use when handling default versioned symbol. Rename existing
231 override variable to nondef_override and use for non-default
233 (elf_link_add_object_symbols): Adjust call to suit. Don't
234 pull in as-needed libraries when override is set.
236 2021-02-01 Emery Hemingway <ehmry@posteo.net>
238 * config.bfd: Add *-*-genode* as a target for AArch64 and x86.
240 2021-02-01 Egor Vishnyakov <lenvampir@yandex.ru>
243 * elf32-rl78.c (rl78_elf_relocate_section): Fix calculation of
244 offset for the R_RL78_RH_SADDR relocation.
246 2021-01-29 Alan Modra <amodra@gmail.com>
249 * elflink.c (bfd_elf_link_record_dynamic_symbol): Don't segfault
250 on symbols defined in absolute or other special sections.
252 2021-01-28 Alan Modra <amodra@gmail.com>
255 * elflink.c (_bfd_elf_gc_mark_extra_sections): Use linker_mark to
256 prevent endless looping of linked-to sections.
258 2020-12-17 Mihails Strasuns <mihails.strasuns@intel.com>
260 * bfd-elf.h (elfcore_write_file_note): New function.
261 * elf.c (elfcore_write_file_note): New function.
263 2021-01-26 Alan Modra <amodra@gmail.com>
265 * elf32-ft32.c (ft32_reloc_type_lookup): Don't miss ft32_reloc_map[0].
267 2021-01-24 H.J. Lu <hongjiu.lu@intel.com>
270 * dwarf2.c (read_rnglists): Ignore empty range when parsing line
273 2021-01-23 H.J. Lu <hongjiu.lu@intel.com>
276 * dwarf2.c (read_rnglists): Advance rngs_ptr after
277 _bfd_safe_read_leb128 when parsing DW_RLE_offset_pair.
279 2021-01-20 Alan Modra <amodra@gmail.com>
281 * elf32-ppc.c: Delete outdated comment.
282 (TARGET_KEEP_UNUSED_SECTION_SYMBOLS): Define.
283 * elf64-ppc.c (TARGET_KEEP_UNUSED_SECTION_SYMBOLS): Define.
285 2021-01-20 Alan Modra <amodra@gmail.com>
287 * elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Don't assume
288 section symbols are present.
290 2021-01-19 Alan Modra <amodra@gmail.com>
292 * elf64-ppc.c (elf_hash_entry): New inline function. Use
293 throughout to replace casts.
294 (branch_reloc_hash_match): Remove const from params.
295 (use_local_plt): New function.
296 (allocate_dynrelocs, ppc_build_one_stub, ppc_size_one_stub),
297 (build_global_entry_stubs_and_plt, ppc64_elf_relocate_section):
299 * elf32-ppc.c (use_local_plt): New function.
300 (allocate_dynrelocs, ppc_elf_relocate_section),
301 (write_global_sym_plt): Use use_local_plt.
303 2021-01-17 H.J. Lu <hongjiu.lu@intel.com>
306 * elflink.c (elf_create_symbuf): Also ignore section symbols.
308 2021-01-16 H.J. Lu <hongjiu.lu@intel.com>
311 * elfxx-x86.c (_bfd_x86_elf_link_fixup_ifunc_symbol): Don't
312 check pointer_equality_needed.
314 2021-01-15 H.J. Lu <hongjiu.lu@intel.com>
316 * elf-linker-x86.h (elf_linker_x86_params): Add
317 report_relative_reloc.
318 * elf32-i386.c (elf_i386_relocate_section): Call
319 _bfd_x86_elf_link_report_relative_reloc to report relative
320 relocations for -z report-relative-reloc.
321 (elf_i386_finish_dynamic_symbol): Likewse.
322 * elf64-x86-64.c (elf_x86_64_relocate_section): Likewse.
323 (elf_x86_64_finish_dynamic_symbol): Likewse.
324 * elfxx-x86.c (_bfd_x86_elf_link_report_relative_reloc): New
326 * elfxx-x86.h (_bfd_x86_elf_link_report_relative_reloc): New
329 2021-01-16 Alan Modra <amodra@gmail.com>
331 * compress.c (decompress_contents): Tidy inflateEnd result test.
333 2021-01-16 Alan Modra <amodra@gmail.com>
336 * elflink.c (elf_link_output_extsym): Use version 1 in
337 .gnu.version for undefined unversioned symbols.
339 2021-01-15 Nelson Chu <nelson.chu@sifive.com>
341 * elfnn-riscv.c (riscv_relax_delete_bytes): Fixed the indent that
342 caused the by previous commit accidentally.
344 2021-01-15 Nelson Chu <nelson.chu@sifive.com>
346 * elfnn-riscv.c: Indent, labels and GNU coding standards tidy,
347 also aligned the code.
349 2021-01-15 Nelson Chu <nelson.chu@sifive.com>
351 * elfnn-riscv.c (riscv_merge_attributes): Fix typos of messages.
353 2021-01-15 Nelson Chu <nelson.chu@sifive.com>
355 * elfnn-riscv.c: Comments tidy and improvement.
356 * elfxx-riscv.c: Likewise.
357 * elfxx-riscv.h: Likewise.
359 2021-01-14 H.J. Lu <hongjiu.lu@intel.com>
362 * elf32-bfin.c (bfinfdpic_relocate_section): Skip non SEC_ALLOC
363 section for R_BFIN_FUNCDESC.
365 2021-01-14 Nick Clifton <nickc@redhat.com>
367 * elf.c (elfcore_grok_win32pstatus): Check for a note type of 0.
369 2021-01-13 Alan Modra <amodra@gmail.com>
371 * Makefile.in: Regenerate.
372 * doc/Makefile.in: Regenerate.
374 2021-01-13 Alan Modra <amodra@gmail.com>
377 * section.c (struct bfd_section): Remove pattern field.
378 (BFD_FAKE_SECTION): Adjust to suit.
379 * bfd-in2.h: Regenerate.
380 * elflink.c (compare_link_order, elf_fixup_link_order): Delete.
381 (bfd_elf_final_link): Don't call elf_fixup_link_order.
383 2021-01-12 H.J. Lu <hongjiu.lu@intel.com>
386 * configure.ac: Use GNU_MAKE_JOBSERVER.
387 * aclocal.m4: Regenerated.
388 * configure: Likewise.
390 2021-01-12 H.J. Lu <hongjiu.lu@intel.com>
393 * reloc.c (bfd_perform_relocation): Adjust R_AMD64_DIR64 and
394 R_AMD64_DIR32 relocations for PE/x86-64 inputs.
396 2021-01-11 H.J. Lu <hongjiu.lu@intel.com>
399 * configure: Regenerated.
401 2021-01-11 Nick Clifton <nickc@redhat.com>
403 * po/fr.po: Updated French translation.
404 * po/pt.po: Updated Portuguese translation.
405 * po/sr.po: Updated Serbian translation.
406 * po/uk.po: Updated Ukranian translation.
408 2021-01-09 H.J. Lu <hongjiu.lu@intel.com>
410 * configure: Regenerated.
412 2021-01-09 H.J. Lu <hongjiu.lu@intel.com>
415 * elfxx-x86.c (_bfd_x86_elf_merge_gnu_properties): Handle
416 -z lam-u48 and -z lam-u57.
418 2021-01-09 Nick Clifton <nickc@redhat.com>
420 * version.m4: Change to 2.36.50.
421 * configure: Regenerate.
422 * po/bfd.pot: Regenerate.
424 2021-01-09 Nick Clifton <nickc@redhat.com>
426 * 2.36 release branch crated.
428 2021-01-08 H.J. Lu <hongjiu.lu@intel.com>
430 * elfxx-x86.c (_bfd_x86_elf_link_setup_gnu_properties): Also set
431 LAM_U57 when setting LAM_U48.
433 2021-01-08 H.J. Lu <hongjiu.lu@intel.com>
437 * elflink.c (elf_fixup_link_order): Verify that fixing up
438 SHF_LINK_ORDER doesn't increase the output section size.
440 2021-01-09 Alan Modra <amodra@gmail.com>
442 * configure: Regenerate.
444 2021-01-07 Samuel Thibault <samuel.thibault@gnu.org>
446 * configure: Regenerate.
448 2021-01-07 H.J. Lu <hongjiu.lu@intel.com>
451 * aix386-core.c (core_aix386_vec): Initialize
452 keep_unused_section_symbol to TARGET_KEEP_UNUSED_SECTION_SYMBOLS.
453 * aout-target.h (MY (vec)): Likewise.
454 * binary.c (binary_vec): Likewise.
455 * cisco-core.c (core_cisco_be_vec): Likewise.
456 (core_cisco_le_vec): Likewise.
457 * coff-alpha.c (alpha_ecoff_le_vec): Likewise.
458 * coff-i386.c (TARGET_SYM): Likewise.
459 (TARGET_SYM_BIG): Likewise.
460 * coff-ia64.c (TARGET_SYM): Likewise.
461 * coff-mips.c (mips_ecoff_le_vec): Likewise.
462 (mips_ecoff_be_vec): Likewise.
463 (mips_ecoff_bele_vec): Likewise.
464 * coff-rs6000.c (rs6000_xcoff_vec): Likewise.
465 (powerpc_xcoff_vec): Likewise.
466 * coff-sh.c (sh_coff_small_vec): Likewise.
467 (sh_coff_small_le_vec): Likewise.
468 * coff-tic30.c (tic30_coff_vec): Likewise.
469 * coff-tic54x.c (tic54x_coff0_vec): Likewise.
470 (tic54x_coff0_beh_vec): Likewise.
471 (tic54x_coff1_vec): Likewise.
472 (tic54x_coff1_beh_vec): Likewise.
473 (tic54x_coff2_vec): Likewise.
474 (tic54x_coff2_beh_vec): Likewise.
475 * coff-x86_64.c (TARGET_SYM): Likewise.
476 (TARGET_SYM_BIG): Likewise.
477 * coff64-rs6000.c (rs6000_xcoff64_vec): Likewise.
478 (rs6000_xcoff64_aix_vec): Likewise.
479 * coffcode.h (CREATE_BIG_COFF_TARGET_VEC): Likewise.
480 (CREATE_BIGHDR_COFF_TARGET_VEC): Likewise.
481 (CREATE_LITTLE_COFF_TARGET_VEC): Likewise.
482 * elfxx-target.h (TARGET_BIG_SYM): Likewise.
483 (TARGET_LITTLE_SYM): Likewise.
484 * hppabsd-core.c (core_hppabsd_vec): Likewise.
485 * hpux-core.c (core_hpux_vec): Likewise.
486 * i386msdos.c (i386_msdos_vec): Likewise.
487 * ihex.c (ihex_vec): Likewise.
488 * irix-core.c (core_irix_vec): Likewise.
489 * mach-o-target.c (TARGET_NAME): Likewise.
490 * mmo.c (mmix_mmo_vec): Likewise.
491 * netbsd-core.c (core_netbsd_vec): Likewise.
492 * osf-core.c (core_osf_vec): Likewise.
493 * pdp11.c (MY (vec)): Likewise.
494 * pef.c (pef_vec): Likewise.
495 (pef_xlib_vec): Likewise.
496 * plugin.c (plugin_vec): Likewise.
497 * ppcboot.c (powerpc_boot_vec): Likewise.
498 * ptrace-core.c (core_ptrace_vec): Likewise.
499 * sco5-core.c (core_sco5_vec): Likewise.
500 * som.c (hppa_som_vec): Likewise.
501 * srec.c (srec_vec): Likewise.
502 (symbolsrec_vec): Likewise.
503 * tekhex.c (tekhex_vec): Likewise.
504 * trad-core.c (core_trad_vec): Likewise.
505 * verilog.c (verilog_vec): Likewise.
506 * vms-alpha.c (alpha_vms_vec): Likewise.
507 * vms-lib.c (alpha_vms_lib_txt_vec): Likewise.
508 * wasm-module.c (wasm_vec): Likewise.
509 * xsym.c (sym_vec): Likewise.
510 * elf.c (ignore_section_sym): Return TRUE if BSF_SECTION_SYM_USED
512 (elf_map_symbols): Don't include ignored section symbols.
513 * elfcode.h (elf_slurp_symbol_table): Also set
514 BSF_SECTION_SYM_USED on STT_SECTION symbols.
515 * elflink.c (bfd_elf_final_link): Generated section symbols only
516 when emitting relocations or reqired.
517 * elfxx-x86.h (TARGET_KEEP_UNUSED_SECTION_SYMBOLS): New.
518 * syms.c (BSF_SECTION_SYM_USED): New.
519 * targets.c (TARGET_KEEP_UNUSED_SECTION_SYMBOLS): New.
520 (bfd_target): Add keep_unused_section_symbols.
521 (bfd_keep_unused_section_symbols): New.
522 * bfd-in2.h: Regenerated.
524 2021-01-07 Nick Clifton <nickc@redhat.com>
527 * bfdio.c (_bfd_real_fopen): For Win32 convert relative paths to
528 absolute paths and check to see if they are longer than MAX_PATH.
530 2021-01-07 Philipp Tomsich <prt@gnu.org>
532 * elfxx-riscv.c (riscv_std_z_ext_strtab): Added zihintpause.
534 2021-01-07 Claire Xenia Wolf <claire@symbioticeda.com>
535 Jim Wilson <jimw@sifive.com>
536 Andrew Waterman <andrew@sifive.com>
537 Maxim Blinov <maxim.blinov@embecosm.com>
538 Kito Cheng <kito.cheng@sifive.com>
539 Nelson Chu <nelson.chu@sifive.com>
541 * elfxx-riscv.c (riscv_std_z_ext_strtab): Added zba, zbb and zbc.
543 2021-01-06 H.J. Lu <hongjiu.lu@intel.com>
545 * elf32-bfin.c (bfin_check_relocs): Check bfd_link_hash_indirect.
546 (bfinfdpic_check_relocs): Likewise.
548 2021-01-06 Alan Modra <amodra@gmail.com>
550 * elf32-score.c (s3_bfd_score_info_to_howto): Report an error
552 * elf32-score7.c (s7_bfd_score_info_to_howto): Likewise.
554 2021-01-06 Alan Modra <amodra@gmail.com>
556 * config.bfd (sparc-*-solaris2*): Add sparc_elf32_vec.
557 (sparc64-*-solaris2*): Add sparc_elf64_vec and
560 2021-01-06 Marcus Comstedt <marcus@mc.pp.se>
562 * config.bfd: Added targets riscv64be*-*-*, riscv32be*-*-* and
563 riscvbe*-*-*. Also added riscv_elf[32|64]_be_vec.
564 * configure.ac: Handle riscv_elf[32|64]_be_vec.
565 * configure: Regenerate.
566 * elfnn-riscv.c: Include <limits.h> and define CHAR_BIT for
568 (riscv_get_insn): RISC-V instructions are always little endian, but
569 bfd_get may be used for big-endian, so add new riscv_get_insn to handle
571 (riscv_put_insn): Likewsie.
572 (riscv_is_insn_reloc): Check if we are relocaing an instruction.
573 (perform_relocation): Call riscv_is_insn_reloc to decide if we should
574 use riscv_[get|put]_insn or bfd_[get|put].
575 (riscv_zero_pcrel_hi_reloc): Use riscv_[get|put]_insn, bfd_[get|put]l32
576 or bfd_[get|put]l16 for code.
577 (riscv_elf_relocate_section): Likewise.
578 (riscv_elf_finish_dynamic_symbol): Likewise.
579 (riscv_elf_finish_dynamic_sections): Likewise.
580 (_bfd_riscv_relax_call): Likewise.
581 (_bfd_riscv_relax_lui): Likewise.
582 (_bfd_riscv_relax_align): Likewise.
583 (_bfd_riscv_relax_pc): Likewise.
584 (riscv_elf_object_p): Handled for big endian.
585 (TARGET_BIG_SYM, TARGET_BIG_NAME): Defined.
586 * targets.c: Add riscv_elf[32|64]_be_vec.
587 (_bfd_target_vector): Likewise.
589 2021-01-05 Alan Modra <amodra@gmail.com>
591 * elflink.c (bfd_elf_link_record_dynamic_symbol): Handle no_export
592 for relocatable executable.
594 2021-01-05 Alan Modra <amodra@gmail.com>
596 * vms-alpha.c (_bfd_vms_slurp_egsd): Read flags after size check.
598 2021-01-05 Nelson Chu <nelson.chu@sifive.com>
600 * elfnn-riscv.c (allocate_dynrelocs): When we are generating pde,
601 make sure gp symbol is output as a dynamic symbol.
603 2021-01-04 H.J. Lu <hongjiu.lu@intel.com>
606 * elflink.c (compare_link_order): Place unordered sections before
608 (elf_fixup_link_order): Add a link info argument. Allow mixed
609 ordered and unordered input sections for non-relocatable link.
610 Sort the consecutive bfd_indirect_link_order sections with the
611 same pattern. Change the offsets of the bfd_indirect_link_order
613 (bfd_elf_final_link): Pass info to elf_fixup_link_order.
614 * section.c (bfd_section): Add pattern.
615 (BFD_FAKE_SECTION): Initialize pattern to NULL.
616 * bfd-in2.h: Regenerated.
618 2021-01-04 Alexander Fedotov <alfedotov@gmail.com>
620 * elf32-arm.c (elf32_arm_print_private_bfd_data): Prefix hex value
621 of private flags with 0x.
622 * elfnn-aarch64.c (elfNN_aarch64_print_private_bfd_data): Likewise.
624 2021-01-04 Alan Modra <amodra@gmail.com>
627 * elflink.c (elf_link_input_bfd): Use the file base name in
628 linker generated STT_FILE symbols.
630 2021-01-04 Nelson Chu <nelson.chu@sifive.com>
632 * elfxx-riscv.c (riscv_compare_subsets): Removed static.
633 * elfxx-riscv.h: Add declaration.
634 * elfnn-riscv.c (riscv_merge_multi_letter_ext): Use
635 riscv_compare_subsets to check the orders.
636 (riscv_skip_prefix): Removed.
637 (riscv_prefix_cmp): Removed.
639 2021-01-04 Alan Modra <amodra@gmail.com>
642 * elfxx-riscv.c (riscv_parse_prefixed_ext): Free subset after
643 calculating subset version length.
645 2021-01-01 Nicolas Boulenguez <nicolas@debian.org>
647 * xcofflink.c: Correct spelling in comments.
649 2021-01-01 Alan Modra <amodra@gmail.com>
651 Update year range in copyright notice of all files.
653 For older changes see ChangeLog-2020
655 Copyright (C) 2021 Free Software Foundation, Inc.
657 Copying and distribution of this file, with or without modification,
658 are permitted in any medium without royalty provided the copyright
659 notice and this notice are preserved.
665 version-control: never