1 2021-02-17 Alan Modra <amodra@gmail.com>
3 * wasm-module.c: Guard include of limits.h.
4 (CHAR_BIT): Provide backup define.
5 (wasm_read_leb128): Use CHAR_BIT to size "result" in bits.
6 Correct signed overflow checking.
8 2021-02-17 Nelson Chu <nelson.chu@sifive.com>
11 * elfnn-riscv.c (_bfd_riscv_elf_merge_private_bfd_data): Delay
12 copying the elf flags from input BFD to output BFD, until we have
13 checked if the input BFD has no code section or not. Also fix the
14 problem that we only check the first section rather than the entire
15 sections for input BFD.
17 2021-02-16 Alan Modra <amodra@gmail.com>
19 * libbfd.c (_bfd_read_unsigned_leb128): Avoid excessive shift.
20 (_bfd_safe_read_leb128, _bfd_read_signed_leb128): Likewise.
22 2021-02-15 Jan Beulich <jbeulich@suse.com>
24 * doc/Makefile.am: Replace "cp -p" by "$(LN_S)".
25 * doc/Makefile.in: Re-generate.
27 2021-02-15 Alan Modra <amodra@gmail.com>
29 * elf32-nds32.c (nds32_get_section_contents): Replace
30 bfd_malloc_and_get_section with bfd_get_full_section_contents.
31 (nds32_elf_relax_delete_blanks): Init contents.
32 (nds32_elf_relax_section, nds32_relax_fp_as_gp): Likewise.
34 2021-02-15 Alan Modra <amodra@gmail.com>
36 * coff-alpha.c (alpha_ecoff_get_relocated_section_contents): Use
37 bfd_get_full_section_contents.
39 2021-02-14 Alan Modra <amodra@gmail.com>
41 * elfxx-mips.c (_bfd_elf_mips_get_relocated_section_contents): Apply
42 all fixes to bfd_generic_get_relocated_section_contents since this
43 function was split out.
45 2021-02-11 Alan Modra <amodra@gmail.com>
47 * config.bfd: Remove ia64 from obsolete list.
49 2021-02-11 Alan Modra <amodra@gmail.com>
52 * elfnn-ia64.c: Revert 2017-10-14 git commit db41f6eb5234.
54 2021-02-11 Alan Modra <amodra@gmail.com>
57 * elf32-avr.c (avr_elf32_load_records_from_section): Use
58 bfd_malloc_and_get_section. Use bfd_byte* vars and remove then
61 2021-02-11 Alan Modra <amodra@gmail.com>
64 * section.c (bfd_get_section_contents): Avoid possible overflow
65 when range checking offset and count.
66 (bfd_set_section_contents): Likewise.
68 2021-02-03 Nick Alcock <nick.alcock@oracle.com>
70 * configure.ac (SHARED_LIBADD): Remove explicit -lintl population in
72 * configure: Regenerated.
74 2021-02-09 Alan Modra <amodra@gmail.com>
76 * config.bfd (arm*-*-symbianelf*): Move from obsolete to removed.
77 * configure.ac: Delete symbian entries.
78 * elf-bfd.h (enum elf_target_os): Delete is_symbian.
79 * elf32-arm.c: Remove symbian support. Formatting.
80 * targets.c: Delete symbian entries.
81 * configure: Regenerate.
83 2021-02-04 H.J. Lu <hongjiu.lu@intel.com>
86 * elf64-x86-64.c (elf_x86_64_relocate_section): Provide more
87 info when failed to convert GOTPCREL relocation.
89 2021-02-04 Nelson Chu <nelson.chu@sifive.com>
91 * elfxx-riscv.c (riscv_parse_prefixed_ext): Removed zb*.
93 2021-02-04 Alan Modra <amodra@gmail.com>
96 * elflink.c (elf_link_add_object_symbols): Don't pull in as-needed
97 libraries for IR references on pass over libraries after LTO
100 2021-02-03 Alan Modra <amodra@gmail.com>
103 * elflink.c (_bfd_elf_add_default_symbol): Revert last two changes.
104 (elf_link_add_object_symbols): Here too. Don't pull in as-needed
105 libraries when H is an indirect symbol after calling
106 _bfd_elf_add_default_symbol.
108 2021-02-03 Alan Modra <amodra@gmail.com>
111 * elflink.c (_bfd_elf_add_default_symbol): Clear override when
112 undecorated symbol will have a different version.
114 2021-02-02 Alan Modra <amodra@gmail.com>
117 * elflink.c (_bfd_elf_add_default_symbol): Add override parameter.
118 Use when handling default versioned symbol. Rename existing
119 override variable to nondef_override and use for non-default
121 (elf_link_add_object_symbols): Adjust call to suit. Don't
122 pull in as-needed libraries when override is set.
124 2021-02-01 Emery Hemingway <ehmry@posteo.net>
126 * config.bfd: Add *-*-genode* as a target for AArch64 and x86.
128 2021-02-01 Egor Vishnyakov <lenvampir@yandex.ru>
131 * elf32-rl78.c (rl78_elf_relocate_section): Fix calculation of
132 offset for the R_RL78_RH_SADDR relocation.
134 2021-01-29 Alan Modra <amodra@gmail.com>
137 * elflink.c (bfd_elf_link_record_dynamic_symbol): Don't segfault
138 on symbols defined in absolute or other special sections.
140 2021-01-28 Alan Modra <amodra@gmail.com>
143 * elflink.c (_bfd_elf_gc_mark_extra_sections): Use linker_mark to
144 prevent endless looping of linked-to sections.
146 2020-12-17 Mihails Strasuns <mihails.strasuns@intel.com>
148 * bfd-elf.h (elfcore_write_file_note): New function.
149 * elf.c (elfcore_write_file_note): New function.
151 2021-01-26 Alan Modra <amodra@gmail.com>
153 * elf32-ft32.c (ft32_reloc_type_lookup): Don't miss ft32_reloc_map[0].
155 2021-01-24 H.J. Lu <hongjiu.lu@intel.com>
158 * dwarf2.c (read_rnglists): Ignore empty range when parsing line
161 2021-01-23 H.J. Lu <hongjiu.lu@intel.com>
164 * dwarf2.c (read_rnglists): Advance rngs_ptr after
165 _bfd_safe_read_leb128 when parsing DW_RLE_offset_pair.
167 2021-01-20 Alan Modra <amodra@gmail.com>
169 * elf32-ppc.c: Delete outdated comment.
170 (TARGET_KEEP_UNUSED_SECTION_SYMBOLS): Define.
171 * elf64-ppc.c (TARGET_KEEP_UNUSED_SECTION_SYMBOLS): Define.
173 2021-01-20 Alan Modra <amodra@gmail.com>
175 * elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Don't assume
176 section symbols are present.
178 2021-01-19 Alan Modra <amodra@gmail.com>
180 * elf64-ppc.c (elf_hash_entry): New inline function. Use
181 throughout to replace casts.
182 (branch_reloc_hash_match): Remove const from params.
183 (use_local_plt): New function.
184 (allocate_dynrelocs, ppc_build_one_stub, ppc_size_one_stub),
185 (build_global_entry_stubs_and_plt, ppc64_elf_relocate_section):
187 * elf32-ppc.c (use_local_plt): New function.
188 (allocate_dynrelocs, ppc_elf_relocate_section),
189 (write_global_sym_plt): Use use_local_plt.
191 2021-01-17 H.J. Lu <hongjiu.lu@intel.com>
194 * elflink.c (elf_create_symbuf): Also ignore section symbols.
196 2021-01-16 H.J. Lu <hongjiu.lu@intel.com>
199 * elfxx-x86.c (_bfd_x86_elf_link_fixup_ifunc_symbol): Don't
200 check pointer_equality_needed.
202 2021-01-15 H.J. Lu <hongjiu.lu@intel.com>
204 * elf-linker-x86.h (elf_linker_x86_params): Add
205 report_relative_reloc.
206 * elf32-i386.c (elf_i386_relocate_section): Call
207 _bfd_x86_elf_link_report_relative_reloc to report relative
208 relocations for -z report-relative-reloc.
209 (elf_i386_finish_dynamic_symbol): Likewse.
210 * elf64-x86-64.c (elf_x86_64_relocate_section): Likewse.
211 (elf_x86_64_finish_dynamic_symbol): Likewse.
212 * elfxx-x86.c (_bfd_x86_elf_link_report_relative_reloc): New
214 * elfxx-x86.h (_bfd_x86_elf_link_report_relative_reloc): New
217 2021-01-16 Alan Modra <amodra@gmail.com>
219 * compress.c (decompress_contents): Tidy inflateEnd result test.
221 2021-01-16 Alan Modra <amodra@gmail.com>
224 * elflink.c (elf_link_output_extsym): Use version 1 in
225 .gnu.version for undefined unversioned symbols.
227 2021-01-15 Nelson Chu <nelson.chu@sifive.com>
229 * elfnn-riscv.c (riscv_relax_delete_bytes): Fixed the indent that
230 caused the by previous commit accidentally.
232 2021-01-15 Nelson Chu <nelson.chu@sifive.com>
234 * elfnn-riscv.c: Indent, labels and GNU coding standards tidy,
235 also aligned the code.
237 2021-01-15 Nelson Chu <nelson.chu@sifive.com>
239 * elfnn-riscv.c (riscv_merge_attributes): Fix typos of messages.
241 2021-01-15 Nelson Chu <nelson.chu@sifive.com>
243 * elfnn-riscv.c: Comments tidy and improvement.
244 * elfxx-riscv.c: Likewise.
245 * elfxx-riscv.h: Likewise.
247 2021-01-14 H.J. Lu <hongjiu.lu@intel.com>
250 * elf32-bfin.c (bfinfdpic_relocate_section): Skip non SEC_ALLOC
251 section for R_BFIN_FUNCDESC.
253 2021-01-14 Nick Clifton <nickc@redhat.com>
255 * elf.c (elfcore_grok_win32pstatus): Check for a note type of 0.
257 2021-01-13 Alan Modra <amodra@gmail.com>
259 * Makefile.in: Regenerate.
260 * doc/Makefile.in: Regenerate.
262 2021-01-13 Alan Modra <amodra@gmail.com>
265 * section.c (struct bfd_section): Remove pattern field.
266 (BFD_FAKE_SECTION): Adjust to suit.
267 * bfd-in2.h: Regenerate.
268 * elflink.c (compare_link_order, elf_fixup_link_order): Delete.
269 (bfd_elf_final_link): Don't call elf_fixup_link_order.
271 2021-01-12 H.J. Lu <hongjiu.lu@intel.com>
274 * configure.ac: Use GNU_MAKE_JOBSERVER.
275 * aclocal.m4: Regenerated.
276 * configure: Likewise.
278 2021-01-12 H.J. Lu <hongjiu.lu@intel.com>
281 * reloc.c (bfd_perform_relocation): Adjust R_AMD64_DIR64 and
282 R_AMD64_DIR32 relocations for PE/x86-64 inputs.
284 2021-01-11 H.J. Lu <hongjiu.lu@intel.com>
287 * configure: Regenerated.
289 2021-01-11 Nick Clifton <nickc@redhat.com>
291 * po/fr.po: Updated French translation.
292 * po/pt.po: Updated Portuguese translation.
293 * po/sr.po: Updated Serbian translation.
294 * po/uk.po: Updated Ukranian translation.
296 2021-01-09 H.J. Lu <hongjiu.lu@intel.com>
298 * configure: Regenerated.
300 2021-01-09 H.J. Lu <hongjiu.lu@intel.com>
303 * elfxx-x86.c (_bfd_x86_elf_merge_gnu_properties): Handle
304 -z lam-u48 and -z lam-u57.
306 2021-01-09 Nick Clifton <nickc@redhat.com>
308 * version.m4: Change to 2.36.50.
309 * configure: Regenerate.
310 * po/bfd.pot: Regenerate.
312 2021-01-09 Nick Clifton <nickc@redhat.com>
314 * 2.36 release branch crated.
316 2021-01-08 H.J. Lu <hongjiu.lu@intel.com>
318 * elfxx-x86.c (_bfd_x86_elf_link_setup_gnu_properties): Also set
319 LAM_U57 when setting LAM_U48.
321 2021-01-08 H.J. Lu <hongjiu.lu@intel.com>
325 * elflink.c (elf_fixup_link_order): Verify that fixing up
326 SHF_LINK_ORDER doesn't increase the output section size.
328 2021-01-09 Alan Modra <amodra@gmail.com>
330 * configure: Regenerate.
332 2021-01-07 Samuel Thibault <samuel.thibault@gnu.org>
334 * configure: Regenerate.
336 2021-01-07 H.J. Lu <hongjiu.lu@intel.com>
339 * aix386-core.c (core_aix386_vec): Initialize
340 keep_unused_section_symbol to TARGET_KEEP_UNUSED_SECTION_SYMBOLS.
341 * aout-target.h (MY (vec)): Likewise.
342 * binary.c (binary_vec): Likewise.
343 * cisco-core.c (core_cisco_be_vec): Likewise.
344 (core_cisco_le_vec): Likewise.
345 * coff-alpha.c (alpha_ecoff_le_vec): Likewise.
346 * coff-i386.c (TARGET_SYM): Likewise.
347 (TARGET_SYM_BIG): Likewise.
348 * coff-ia64.c (TARGET_SYM): Likewise.
349 * coff-mips.c (mips_ecoff_le_vec): Likewise.
350 (mips_ecoff_be_vec): Likewise.
351 (mips_ecoff_bele_vec): Likewise.
352 * coff-rs6000.c (rs6000_xcoff_vec): Likewise.
353 (powerpc_xcoff_vec): Likewise.
354 * coff-sh.c (sh_coff_small_vec): Likewise.
355 (sh_coff_small_le_vec): Likewise.
356 * coff-tic30.c (tic30_coff_vec): Likewise.
357 * coff-tic54x.c (tic54x_coff0_vec): Likewise.
358 (tic54x_coff0_beh_vec): Likewise.
359 (tic54x_coff1_vec): Likewise.
360 (tic54x_coff1_beh_vec): Likewise.
361 (tic54x_coff2_vec): Likewise.
362 (tic54x_coff2_beh_vec): Likewise.
363 * coff-x86_64.c (TARGET_SYM): Likewise.
364 (TARGET_SYM_BIG): Likewise.
365 * coff64-rs6000.c (rs6000_xcoff64_vec): Likewise.
366 (rs6000_xcoff64_aix_vec): Likewise.
367 * coffcode.h (CREATE_BIG_COFF_TARGET_VEC): Likewise.
368 (CREATE_BIGHDR_COFF_TARGET_VEC): Likewise.
369 (CREATE_LITTLE_COFF_TARGET_VEC): Likewise.
370 * elfxx-target.h (TARGET_BIG_SYM): Likewise.
371 (TARGET_LITTLE_SYM): Likewise.
372 * hppabsd-core.c (core_hppabsd_vec): Likewise.
373 * hpux-core.c (core_hpux_vec): Likewise.
374 * i386msdos.c (i386_msdos_vec): Likewise.
375 * ihex.c (ihex_vec): Likewise.
376 * irix-core.c (core_irix_vec): Likewise.
377 * mach-o-target.c (TARGET_NAME): Likewise.
378 * mmo.c (mmix_mmo_vec): Likewise.
379 * netbsd-core.c (core_netbsd_vec): Likewise.
380 * osf-core.c (core_osf_vec): Likewise.
381 * pdp11.c (MY (vec)): Likewise.
382 * pef.c (pef_vec): Likewise.
383 (pef_xlib_vec): Likewise.
384 * plugin.c (plugin_vec): Likewise.
385 * ppcboot.c (powerpc_boot_vec): Likewise.
386 * ptrace-core.c (core_ptrace_vec): Likewise.
387 * sco5-core.c (core_sco5_vec): Likewise.
388 * som.c (hppa_som_vec): Likewise.
389 * srec.c (srec_vec): Likewise.
390 (symbolsrec_vec): Likewise.
391 * tekhex.c (tekhex_vec): Likewise.
392 * trad-core.c (core_trad_vec): Likewise.
393 * verilog.c (verilog_vec): Likewise.
394 * vms-alpha.c (alpha_vms_vec): Likewise.
395 * vms-lib.c (alpha_vms_lib_txt_vec): Likewise.
396 * wasm-module.c (wasm_vec): Likewise.
397 * xsym.c (sym_vec): Likewise.
398 * elf.c (ignore_section_sym): Return TRUE if BSF_SECTION_SYM_USED
400 (elf_map_symbols): Don't include ignored section symbols.
401 * elfcode.h (elf_slurp_symbol_table): Also set
402 BSF_SECTION_SYM_USED on STT_SECTION symbols.
403 * elflink.c (bfd_elf_final_link): Generated section symbols only
404 when emitting relocations or reqired.
405 * elfxx-x86.h (TARGET_KEEP_UNUSED_SECTION_SYMBOLS): New.
406 * syms.c (BSF_SECTION_SYM_USED): New.
407 * targets.c (TARGET_KEEP_UNUSED_SECTION_SYMBOLS): New.
408 (bfd_target): Add keep_unused_section_symbols.
409 (bfd_keep_unused_section_symbols): New.
410 * bfd-in2.h: Regenerated.
412 2021-01-07 Nick Clifton <nickc@redhat.com>
415 * bfdio.c (_bfd_real_fopen): For Win32 convert relative paths to
416 absolute paths and check to see if they are longer than MAX_PATH.
418 2021-01-07 Philipp Tomsich <prt@gnu.org>
420 * elfxx-riscv.c (riscv_std_z_ext_strtab): Added zihintpause.
422 2021-01-07 Claire Xenia Wolf <claire@symbioticeda.com>
423 Jim Wilson <jimw@sifive.com>
424 Andrew Waterman <andrew@sifive.com>
425 Maxim Blinov <maxim.blinov@embecosm.com>
426 Kito Cheng <kito.cheng@sifive.com>
427 Nelson Chu <nelson.chu@sifive.com>
429 * elfxx-riscv.c (riscv_std_z_ext_strtab): Added zba, zbb and zbc.
431 2021-01-06 H.J. Lu <hongjiu.lu@intel.com>
433 * elf32-bfin.c (bfin_check_relocs): Check bfd_link_hash_indirect.
434 (bfinfdpic_check_relocs): Likewise.
436 2021-01-06 Alan Modra <amodra@gmail.com>
438 * elf32-score.c (s3_bfd_score_info_to_howto): Report an error
440 * elf32-score7.c (s7_bfd_score_info_to_howto): Likewise.
442 2021-01-06 Alan Modra <amodra@gmail.com>
444 * config.bfd (sparc-*-solaris2*): Add sparc_elf32_vec.
445 (sparc64-*-solaris2*): Add sparc_elf64_vec and
448 2021-01-06 Marcus Comstedt <marcus@mc.pp.se>
450 * config.bfd: Added targets riscv64be*-*-*, riscv32be*-*-* and
451 riscvbe*-*-*. Also added riscv_elf[32|64]_be_vec.
452 * configure.ac: Handle riscv_elf[32|64]_be_vec.
453 * configure: Regenerate.
454 * elfnn-riscv.c: Include <limits.h> and define CHAR_BIT for
456 (riscv_get_insn): RISC-V instructions are always little endian, but
457 bfd_get may be used for big-endian, so add new riscv_get_insn to handle
459 (riscv_put_insn): Likewsie.
460 (riscv_is_insn_reloc): Check if we are relocaing an instruction.
461 (perform_relocation): Call riscv_is_insn_reloc to decide if we should
462 use riscv_[get|put]_insn or bfd_[get|put].
463 (riscv_zero_pcrel_hi_reloc): Use riscv_[get|put]_insn, bfd_[get|put]l32
464 or bfd_[get|put]l16 for code.
465 (riscv_elf_relocate_section): Likewise.
466 (riscv_elf_finish_dynamic_symbol): Likewise.
467 (riscv_elf_finish_dynamic_sections): Likewise.
468 (_bfd_riscv_relax_call): Likewise.
469 (_bfd_riscv_relax_lui): Likewise.
470 (_bfd_riscv_relax_align): Likewise.
471 (_bfd_riscv_relax_pc): Likewise.
472 (riscv_elf_object_p): Handled for big endian.
473 (TARGET_BIG_SYM, TARGET_BIG_NAME): Defined.
474 * targets.c: Add riscv_elf[32|64]_be_vec.
475 (_bfd_target_vector): Likewise.
477 2021-01-05 Alan Modra <amodra@gmail.com>
479 * elflink.c (bfd_elf_link_record_dynamic_symbol): Handle no_export
480 for relocatable executable.
482 2021-01-05 Alan Modra <amodra@gmail.com>
484 * vms-alpha.c (_bfd_vms_slurp_egsd): Read flags after size check.
486 2021-01-05 Nelson Chu <nelson.chu@sifive.com>
488 * elfnn-riscv.c (allocate_dynrelocs): When we are generating pde,
489 make sure gp symbol is output as a dynamic symbol.
491 2021-01-04 H.J. Lu <hongjiu.lu@intel.com>
494 * elflink.c (compare_link_order): Place unordered sections before
496 (elf_fixup_link_order): Add a link info argument. Allow mixed
497 ordered and unordered input sections for non-relocatable link.
498 Sort the consecutive bfd_indirect_link_order sections with the
499 same pattern. Change the offsets of the bfd_indirect_link_order
501 (bfd_elf_final_link): Pass info to elf_fixup_link_order.
502 * section.c (bfd_section): Add pattern.
503 (BFD_FAKE_SECTION): Initialize pattern to NULL.
504 * bfd-in2.h: Regenerated.
506 2021-01-04 Alexander Fedotov <alfedotov@gmail.com>
508 * elf32-arm.c (elf32_arm_print_private_bfd_data): Prefix hex value
509 of private flags with 0x.
510 * elfnn-aarch64.c (elfNN_aarch64_print_private_bfd_data): Likewise.
512 2021-01-04 Alan Modra <amodra@gmail.com>
515 * elflink.c (elf_link_input_bfd): Use the file base name in
516 linker generated STT_FILE symbols.
518 2021-01-04 Nelson Chu <nelson.chu@sifive.com>
520 * elfxx-riscv.c (riscv_compare_subsets): Removed static.
521 * elfxx-riscv.h: Add declaration.
522 * elfnn-riscv.c (riscv_merge_multi_letter_ext): Use
523 riscv_compare_subsets to check the orders.
524 (riscv_skip_prefix): Removed.
525 (riscv_prefix_cmp): Removed.
527 2021-01-04 Alan Modra <amodra@gmail.com>
530 * elfxx-riscv.c (riscv_parse_prefixed_ext): Free subset after
531 calculating subset version length.
533 2021-01-01 Nicolas Boulenguez <nicolas@debian.org>
535 * xcofflink.c: Correct spelling in comments.
537 2021-01-01 Alan Modra <amodra@gmail.com>
539 Update year range in copyright notice of all files.
541 For older changes see ChangeLog-2020
543 Copyright (C) 2021 Free Software Foundation, Inc.
545 Copying and distribution of this file, with or without modification,
546 are permitted in any medium without royalty provided the copyright
547 notice and this notice are preserved.
553 version-control: never