1 2021-02-11 Alan Modra <amodra@gmail.com>
3 * config.bfd: Remove ia64 from obsolete list.
5 2021-02-11 Alan Modra <amodra@gmail.com>
8 * elfnn-ia64.c: Revert 2017-10-14 git commit db41f6eb5234.
10 2021-02-11 Alan Modra <amodra@gmail.com>
13 * elf32-avr.c (avr_elf32_load_records_from_section): Use
14 bfd_malloc_and_get_section. Use bfd_byte* vars and remove then
17 2021-02-11 Alan Modra <amodra@gmail.com>
20 * section.c (bfd_get_section_contents): Avoid possible overflow
21 when range checking offset and count.
22 (bfd_set_section_contents): Likewise.
24 2021-02-03 Nick Alcock <nick.alcock@oracle.com>
26 * configure.ac (SHARED_LIBADD): Remove explicit -lintl population in
28 * configure: Regenerated.
30 2021-02-09 Alan Modra <amodra@gmail.com>
32 * config.bfd (arm*-*-symbianelf*): Move from obsolete to removed.
33 * configure.ac: Delete symbian entries.
34 * elf-bfd.h (enum elf_target_os): Delete is_symbian.
35 * elf32-arm.c: Remove symbian support. Formatting.
36 * targets.c: Delete symbian entries.
37 * configure: Regenerate.
39 2021-02-04 H.J. Lu <hongjiu.lu@intel.com>
42 * elf64-x86-64.c (elf_x86_64_relocate_section): Provide more
43 info when failed to convert GOTPCREL relocation.
45 2021-02-04 Nelson Chu <nelson.chu@sifive.com>
47 * elfxx-riscv.c (riscv_parse_prefixed_ext): Removed zb*.
49 2021-02-04 Alan Modra <amodra@gmail.com>
52 * elflink.c (elf_link_add_object_symbols): Don't pull in as-needed
53 libraries for IR references on pass over libraries after LTO
56 2021-02-03 Alan Modra <amodra@gmail.com>
59 * elflink.c (_bfd_elf_add_default_symbol): Revert last two changes.
60 (elf_link_add_object_symbols): Here too. Don't pull in as-needed
61 libraries when H is an indirect symbol after calling
62 _bfd_elf_add_default_symbol.
64 2021-02-03 Alan Modra <amodra@gmail.com>
67 * elflink.c (_bfd_elf_add_default_symbol): Clear override when
68 undecorated symbol will have a different version.
70 2021-02-02 Alan Modra <amodra@gmail.com>
73 * elflink.c (_bfd_elf_add_default_symbol): Add override parameter.
74 Use when handling default versioned symbol. Rename existing
75 override variable to nondef_override and use for non-default
77 (elf_link_add_object_symbols): Adjust call to suit. Don't
78 pull in as-needed libraries when override is set.
80 2021-02-01 Emery Hemingway <ehmry@posteo.net>
82 * config.bfd: Add *-*-genode* as a target for AArch64 and x86.
84 2021-02-01 Egor Vishnyakov <lenvampir@yandex.ru>
87 * elf32-rl78.c (rl78_elf_relocate_section): Fix calculation of
88 offset for the R_RL78_RH_SADDR relocation.
90 2021-01-29 Alan Modra <amodra@gmail.com>
93 * elflink.c (bfd_elf_link_record_dynamic_symbol): Don't segfault
94 on symbols defined in absolute or other special sections.
96 2021-01-28 Alan Modra <amodra@gmail.com>
99 * elflink.c (_bfd_elf_gc_mark_extra_sections): Use linker_mark to
100 prevent endless looping of linked-to sections.
102 2020-12-17 Mihails Strasuns <mihails.strasuns@intel.com>
104 * bfd-elf.h (elfcore_write_file_note): New function.
105 * elf.c (elfcore_write_file_note): New function.
107 2021-01-26 Alan Modra <amodra@gmail.com>
109 * elf32-ft32.c (ft32_reloc_type_lookup): Don't miss ft32_reloc_map[0].
111 2021-01-24 H.J. Lu <hongjiu.lu@intel.com>
114 * dwarf2.c (read_rnglists): Ignore empty range when parsing line
117 2021-01-23 H.J. Lu <hongjiu.lu@intel.com>
120 * dwarf2.c (read_rnglists): Advance rngs_ptr after
121 _bfd_safe_read_leb128 when parsing DW_RLE_offset_pair.
123 2021-01-20 Alan Modra <amodra@gmail.com>
125 * elf32-ppc.c: Delete outdated comment.
126 (TARGET_KEEP_UNUSED_SECTION_SYMBOLS): Define.
127 * elf64-ppc.c (TARGET_KEEP_UNUSED_SECTION_SYMBOLS): Define.
129 2021-01-20 Alan Modra <amodra@gmail.com>
131 * elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Don't assume
132 section symbols are present.
134 2021-01-19 Alan Modra <amodra@gmail.com>
136 * elf64-ppc.c (elf_hash_entry): New inline function. Use
137 throughout to replace casts.
138 (branch_reloc_hash_match): Remove const from params.
139 (use_local_plt): New function.
140 (allocate_dynrelocs, ppc_build_one_stub, ppc_size_one_stub),
141 (build_global_entry_stubs_and_plt, ppc64_elf_relocate_section):
143 * elf32-ppc.c (use_local_plt): New function.
144 (allocate_dynrelocs, ppc_elf_relocate_section),
145 (write_global_sym_plt): Use use_local_plt.
147 2021-01-17 H.J. Lu <hongjiu.lu@intel.com>
150 * elflink.c (elf_create_symbuf): Also ignore section symbols.
152 2021-01-16 H.J. Lu <hongjiu.lu@intel.com>
155 * elfxx-x86.c (_bfd_x86_elf_link_fixup_ifunc_symbol): Don't
156 check pointer_equality_needed.
158 2021-01-15 H.J. Lu <hongjiu.lu@intel.com>
160 * elf-linker-x86.h (elf_linker_x86_params): Add
161 report_relative_reloc.
162 * elf32-i386.c (elf_i386_relocate_section): Call
163 _bfd_x86_elf_link_report_relative_reloc to report relative
164 relocations for -z report-relative-reloc.
165 (elf_i386_finish_dynamic_symbol): Likewse.
166 * elf64-x86-64.c (elf_x86_64_relocate_section): Likewse.
167 (elf_x86_64_finish_dynamic_symbol): Likewse.
168 * elfxx-x86.c (_bfd_x86_elf_link_report_relative_reloc): New
170 * elfxx-x86.h (_bfd_x86_elf_link_report_relative_reloc): New
173 2021-01-16 Alan Modra <amodra@gmail.com>
175 * compress.c (decompress_contents): Tidy inflateEnd result test.
177 2021-01-16 Alan Modra <amodra@gmail.com>
180 * elflink.c (elf_link_output_extsym): Use version 1 in
181 .gnu.version for undefined unversioned symbols.
183 2021-01-15 Nelson Chu <nelson.chu@sifive.com>
185 * elfnn-riscv.c (riscv_relax_delete_bytes): Fixed the indent that
186 caused the by previous commit accidentally.
188 2021-01-15 Nelson Chu <nelson.chu@sifive.com>
190 * elfnn-riscv.c: Indent, labels and GNU coding standards tidy,
191 also aligned the code.
193 2021-01-15 Nelson Chu <nelson.chu@sifive.com>
195 * elfnn-riscv.c (riscv_merge_attributes): Fix typos of messages.
197 2021-01-15 Nelson Chu <nelson.chu@sifive.com>
199 * elfnn-riscv.c: Comments tidy and improvement.
200 * elfxx-riscv.c: Likewise.
201 * elfxx-riscv.h: Likewise.
203 2021-01-14 H.J. Lu <hongjiu.lu@intel.com>
206 * elf32-bfin.c (bfinfdpic_relocate_section): Skip non SEC_ALLOC
207 section for R_BFIN_FUNCDESC.
209 2021-01-14 Nick Clifton <nickc@redhat.com>
211 * elf.c (elfcore_grok_win32pstatus): Check for a note type of 0.
213 2021-01-13 Alan Modra <amodra@gmail.com>
215 * Makefile.in: Regenerate.
216 * doc/Makefile.in: Regenerate.
218 2021-01-13 Alan Modra <amodra@gmail.com>
221 * section.c (struct bfd_section): Remove pattern field.
222 (BFD_FAKE_SECTION): Adjust to suit.
223 * bfd-in2.h: Regenerate.
224 * elflink.c (compare_link_order, elf_fixup_link_order): Delete.
225 (bfd_elf_final_link): Don't call elf_fixup_link_order.
227 2021-01-12 H.J. Lu <hongjiu.lu@intel.com>
230 * configure.ac: Use GNU_MAKE_JOBSERVER.
231 * aclocal.m4: Regenerated.
232 * configure: Likewise.
234 2021-01-12 H.J. Lu <hongjiu.lu@intel.com>
237 * reloc.c (bfd_perform_relocation): Adjust R_AMD64_DIR64 and
238 R_AMD64_DIR32 relocations for PE/x86-64 inputs.
240 2021-01-11 H.J. Lu <hongjiu.lu@intel.com>
243 * configure: Regenerated.
245 2021-01-11 Nick Clifton <nickc@redhat.com>
247 * po/fr.po: Updated French translation.
248 * po/pt.po: Updated Portuguese translation.
249 * po/sr.po: Updated Serbian translation.
250 * po/uk.po: Updated Ukranian translation.
252 2021-01-09 H.J. Lu <hongjiu.lu@intel.com>
254 * configure: Regenerated.
256 2021-01-09 H.J. Lu <hongjiu.lu@intel.com>
259 * elfxx-x86.c (_bfd_x86_elf_merge_gnu_properties): Handle
260 -z lam-u48 and -z lam-u57.
262 2021-01-09 Nick Clifton <nickc@redhat.com>
264 * version.m4: Change to 2.36.50.
265 * configure: Regenerate.
266 * po/bfd.pot: Regenerate.
268 2021-01-09 Nick Clifton <nickc@redhat.com>
270 * 2.36 release branch crated.
272 2021-01-08 H.J. Lu <hongjiu.lu@intel.com>
274 * elfxx-x86.c (_bfd_x86_elf_link_setup_gnu_properties): Also set
275 LAM_U57 when setting LAM_U48.
277 2021-01-08 H.J. Lu <hongjiu.lu@intel.com>
281 * elflink.c (elf_fixup_link_order): Verify that fixing up
282 SHF_LINK_ORDER doesn't increase the output section size.
284 2021-01-09 Alan Modra <amodra@gmail.com>
286 * configure: Regenerate.
288 2021-01-07 Samuel Thibault <samuel.thibault@gnu.org>
290 * configure: Regenerate.
292 2021-01-07 H.J. Lu <hongjiu.lu@intel.com>
295 * aix386-core.c (core_aix386_vec): Initialize
296 keep_unused_section_symbol to TARGET_KEEP_UNUSED_SECTION_SYMBOLS.
297 * aout-target.h (MY (vec)): Likewise.
298 * binary.c (binary_vec): Likewise.
299 * cisco-core.c (core_cisco_be_vec): Likewise.
300 (core_cisco_le_vec): Likewise.
301 * coff-alpha.c (alpha_ecoff_le_vec): Likewise.
302 * coff-i386.c (TARGET_SYM): Likewise.
303 (TARGET_SYM_BIG): Likewise.
304 * coff-ia64.c (TARGET_SYM): Likewise.
305 * coff-mips.c (mips_ecoff_le_vec): Likewise.
306 (mips_ecoff_be_vec): Likewise.
307 (mips_ecoff_bele_vec): Likewise.
308 * coff-rs6000.c (rs6000_xcoff_vec): Likewise.
309 (powerpc_xcoff_vec): Likewise.
310 * coff-sh.c (sh_coff_small_vec): Likewise.
311 (sh_coff_small_le_vec): Likewise.
312 * coff-tic30.c (tic30_coff_vec): Likewise.
313 * coff-tic54x.c (tic54x_coff0_vec): Likewise.
314 (tic54x_coff0_beh_vec): Likewise.
315 (tic54x_coff1_vec): Likewise.
316 (tic54x_coff1_beh_vec): Likewise.
317 (tic54x_coff2_vec): Likewise.
318 (tic54x_coff2_beh_vec): Likewise.
319 * coff-x86_64.c (TARGET_SYM): Likewise.
320 (TARGET_SYM_BIG): Likewise.
321 * coff64-rs6000.c (rs6000_xcoff64_vec): Likewise.
322 (rs6000_xcoff64_aix_vec): Likewise.
323 * coffcode.h (CREATE_BIG_COFF_TARGET_VEC): Likewise.
324 (CREATE_BIGHDR_COFF_TARGET_VEC): Likewise.
325 (CREATE_LITTLE_COFF_TARGET_VEC): Likewise.
326 * elfxx-target.h (TARGET_BIG_SYM): Likewise.
327 (TARGET_LITTLE_SYM): Likewise.
328 * hppabsd-core.c (core_hppabsd_vec): Likewise.
329 * hpux-core.c (core_hpux_vec): Likewise.
330 * i386msdos.c (i386_msdos_vec): Likewise.
331 * ihex.c (ihex_vec): Likewise.
332 * irix-core.c (core_irix_vec): Likewise.
333 * mach-o-target.c (TARGET_NAME): Likewise.
334 * mmo.c (mmix_mmo_vec): Likewise.
335 * netbsd-core.c (core_netbsd_vec): Likewise.
336 * osf-core.c (core_osf_vec): Likewise.
337 * pdp11.c (MY (vec)): Likewise.
338 * pef.c (pef_vec): Likewise.
339 (pef_xlib_vec): Likewise.
340 * plugin.c (plugin_vec): Likewise.
341 * ppcboot.c (powerpc_boot_vec): Likewise.
342 * ptrace-core.c (core_ptrace_vec): Likewise.
343 * sco5-core.c (core_sco5_vec): Likewise.
344 * som.c (hppa_som_vec): Likewise.
345 * srec.c (srec_vec): Likewise.
346 (symbolsrec_vec): Likewise.
347 * tekhex.c (tekhex_vec): Likewise.
348 * trad-core.c (core_trad_vec): Likewise.
349 * verilog.c (verilog_vec): Likewise.
350 * vms-alpha.c (alpha_vms_vec): Likewise.
351 * vms-lib.c (alpha_vms_lib_txt_vec): Likewise.
352 * wasm-module.c (wasm_vec): Likewise.
353 * xsym.c (sym_vec): Likewise.
354 * elf.c (ignore_section_sym): Return TRUE if BSF_SECTION_SYM_USED
356 (elf_map_symbols): Don't include ignored section symbols.
357 * elfcode.h (elf_slurp_symbol_table): Also set
358 BSF_SECTION_SYM_USED on STT_SECTION symbols.
359 * elflink.c (bfd_elf_final_link): Generated section symbols only
360 when emitting relocations or reqired.
361 * elfxx-x86.h (TARGET_KEEP_UNUSED_SECTION_SYMBOLS): New.
362 * syms.c (BSF_SECTION_SYM_USED): New.
363 * targets.c (TARGET_KEEP_UNUSED_SECTION_SYMBOLS): New.
364 (bfd_target): Add keep_unused_section_symbols.
365 (bfd_keep_unused_section_symbols): New.
366 * bfd-in2.h: Regenerated.
368 2021-01-07 Nick Clifton <nickc@redhat.com>
371 * bfdio.c (_bfd_real_fopen): For Win32 convert relative paths to
372 absolute paths and check to see if they are longer than MAX_PATH.
374 2021-01-07 Philipp Tomsich <prt@gnu.org>
376 * elfxx-riscv.c (riscv_std_z_ext_strtab): Added zihintpause.
378 2021-01-07 Claire Xenia Wolf <claire@symbioticeda.com>
379 Jim Wilson <jimw@sifive.com>
380 Andrew Waterman <andrew@sifive.com>
381 Maxim Blinov <maxim.blinov@embecosm.com>
382 Kito Cheng <kito.cheng@sifive.com>
383 Nelson Chu <nelson.chu@sifive.com>
385 * elfxx-riscv.c (riscv_std_z_ext_strtab): Added zba, zbb and zbc.
387 2021-01-06 H.J. Lu <hongjiu.lu@intel.com>
389 * elf32-bfin.c (bfin_check_relocs): Check bfd_link_hash_indirect.
390 (bfinfdpic_check_relocs): Likewise.
392 2021-01-06 Alan Modra <amodra@gmail.com>
394 * elf32-score.c (s3_bfd_score_info_to_howto): Report an error
396 * elf32-score7.c (s7_bfd_score_info_to_howto): Likewise.
398 2021-01-06 Alan Modra <amodra@gmail.com>
400 * config.bfd (sparc-*-solaris2*): Add sparc_elf32_vec.
401 (sparc64-*-solaris2*): Add sparc_elf64_vec and
404 2021-01-06 Marcus Comstedt <marcus@mc.pp.se>
406 * config.bfd: Added targets riscv64be*-*-*, riscv32be*-*-* and
407 riscvbe*-*-*. Also added riscv_elf[32|64]_be_vec.
408 * configure.ac: Handle riscv_elf[32|64]_be_vec.
409 * configure: Regenerate.
410 * elfnn-riscv.c: Include <limits.h> and define CHAR_BIT for
412 (riscv_get_insn): RISC-V instructions are always little endian, but
413 bfd_get may be used for big-endian, so add new riscv_get_insn to handle
415 (riscv_put_insn): Likewsie.
416 (riscv_is_insn_reloc): Check if we are relocaing an instruction.
417 (perform_relocation): Call riscv_is_insn_reloc to decide if we should
418 use riscv_[get|put]_insn or bfd_[get|put].
419 (riscv_zero_pcrel_hi_reloc): Use riscv_[get|put]_insn, bfd_[get|put]l32
420 or bfd_[get|put]l16 for code.
421 (riscv_elf_relocate_section): Likewise.
422 (riscv_elf_finish_dynamic_symbol): Likewise.
423 (riscv_elf_finish_dynamic_sections): Likewise.
424 (_bfd_riscv_relax_call): Likewise.
425 (_bfd_riscv_relax_lui): Likewise.
426 (_bfd_riscv_relax_align): Likewise.
427 (_bfd_riscv_relax_pc): Likewise.
428 (riscv_elf_object_p): Handled for big endian.
429 (TARGET_BIG_SYM, TARGET_BIG_NAME): Defined.
430 * targets.c: Add riscv_elf[32|64]_be_vec.
431 (_bfd_target_vector): Likewise.
433 2021-01-05 Alan Modra <amodra@gmail.com>
435 * elflink.c (bfd_elf_link_record_dynamic_symbol): Handle no_export
436 for relocatable executable.
438 2021-01-05 Alan Modra <amodra@gmail.com>
440 * vms-alpha.c (_bfd_vms_slurp_egsd): Read flags after size check.
442 2021-01-05 Nelson Chu <nelson.chu@sifive.com>
444 * elfnn-riscv.c (allocate_dynrelocs): When we are generating pde,
445 make sure gp symbol is output as a dynamic symbol.
447 2021-01-04 H.J. Lu <hongjiu.lu@intel.com>
450 * elflink.c (compare_link_order): Place unordered sections before
452 (elf_fixup_link_order): Add a link info argument. Allow mixed
453 ordered and unordered input sections for non-relocatable link.
454 Sort the consecutive bfd_indirect_link_order sections with the
455 same pattern. Change the offsets of the bfd_indirect_link_order
457 (bfd_elf_final_link): Pass info to elf_fixup_link_order.
458 * section.c (bfd_section): Add pattern.
459 (BFD_FAKE_SECTION): Initialize pattern to NULL.
460 * bfd-in2.h: Regenerated.
462 2021-01-04 Alexander Fedotov <alfedotov@gmail.com>
464 * elf32-arm.c (elf32_arm_print_private_bfd_data): Prefix hex value
465 of private flags with 0x.
466 * elfnn-aarch64.c (elfNN_aarch64_print_private_bfd_data): Likewise.
468 2021-01-04 Alan Modra <amodra@gmail.com>
471 * elflink.c (elf_link_input_bfd): Use the file base name in
472 linker generated STT_FILE symbols.
474 2021-01-04 Nelson Chu <nelson.chu@sifive.com>
476 * elfxx-riscv.c (riscv_compare_subsets): Removed static.
477 * elfxx-riscv.h: Add declaration.
478 * elfnn-riscv.c (riscv_merge_multi_letter_ext): Use
479 riscv_compare_subsets to check the orders.
480 (riscv_skip_prefix): Removed.
481 (riscv_prefix_cmp): Removed.
483 2021-01-04 Alan Modra <amodra@gmail.com>
486 * elfxx-riscv.c (riscv_parse_prefixed_ext): Free subset after
487 calculating subset version length.
489 2021-01-01 Nicolas Boulenguez <nicolas@debian.org>
491 * xcofflink.c: Correct spelling in comments.
493 2021-01-01 Alan Modra <amodra@gmail.com>
495 Update year range in copyright notice of all files.
497 For older changes see ChangeLog-2020
499 Copyright (C) 2021 Free Software Foundation, Inc.
501 Copying and distribution of this file, with or without modification,
502 are permitted in any medium without royalty provided the copyright
503 notice and this notice are preserved.
509 version-control: never