1 2021-05-08 Mike Frysinger <vapier@gentoo.org>
3 * doc/Makefile.am (html-local, bfd/index.html): New targets.
4 * doc/Makefile.in: Regenerate.
6 2021-05-08 Mike Frysinger <vapier@gentoo.org>
8 * doc/Makefile.am (AM_MAKEINFOFLAGS): Define.
9 * doc/Makefile.in: Regenerate.
11 2021-05-07 Clément Chigot <clement.chigot@atos.net>
13 * coff-rs6000.c (xcoff_dwsect_names): Add new DWARF
15 * coffgen.c (coff_pointerize_aux): Handle C_DWARF.
16 (coff_print_symbol): Likewise.
17 * libxcoff.h (XCOFF_DWSECT_NBR_NAMES): Update.
19 2021-05-07 Jan Beulich <jbeulich@suse.com>
21 * elf64-x86-64.c (x86_64_elf_howto_table): Set src_mask fields
24 2021-05-07 Alan Modra <amodra@gmail.com>
26 * bfd-in2.h: Regenerate.
27 * libbfd.h: Regenerate.
29 2021-05-06 Stafford Horne <shorne@gmail.com>
32 * elf32-or1k.c (PLT_ENTRY_SIZE_LARGE, PLT_MAX_INSN_COUNT,
33 OR1K_ADD, OR1K_ORI): New macros to help with plt creation.
34 (elf_or1k_link_hash_table): New field plt_count.
35 (elf_or1k_link_hash_entry): New field plt_index.
36 (elf_or1k_plt_entry_size): New function.
37 (or1k_write_plt_entry): Update to support variable size PLTs.
38 (or1k_elf_finish_dynamic_sections): Use new or1k_write_plt_entry
40 (or1k_elf_finish_dynamic_symbol): Update to write large PLTs
42 (allocate_dynrelocs): Use elf_or1k_plt_entry_size to account for
45 2021-05-06 Stafford Horne <shorne@gmail.com>
48 * elf32-or1k.c (or1k_elf_relocate_section): Relax R_OR1K_GOT16
49 overflow check if we have R_OR1K_GOT_AHI16 followed by
52 2021-05-06 Stafford Horne <shorne@gmail.com>
55 * bfd-in2.h: Add BFD_RELOC_OR1K_GOT_AHI16 relocation.
56 * elf32-or1k.c (or1k_elf_howto_table, or1k_reloc_map): Likewise.
57 (or1k_final_link_relocate, or1k_elf_relocate_section,
58 or1k_elf_check_relocs): Likewise.
59 * libbfd.h (bfd_reloc_code_real_names): Likewise.
62 2021-05-06 Stafford Horne <shorne@gmail.com>
65 * elf32-or1k.c (or1k_elf_adjust_dynamic_symbol): Change
66 condition used to cleanup plt entries to cleanup forced local
69 2021-05-05 H.J. Lu <hongjiu.lu@intel.com>
72 * elflink.c (elf_link_output_symstrtab): Always append ".COUNT"
75 2021-05-05 Alan Modra <amodra@gmail.com>
77 * vms-lib.c (vms_traverse_index): Account for vms_kbn size when
78 sanity checking keylen.
80 2021-05-04 Nick Clifton <nickc@redhat.com>
82 * libbfd.c (bfd_malloc): Provide some documenation. Treat a size
84 (bfd_realloc): Likewise.
85 (bfd_zmalloc): Likewise.
86 (bfd_realloc_or_free): Provide some documentation. Treat a size
87 of 0 as a request to free.
88 * libbfd-in.h (bfd_realloc): Remove prototype.
89 (bfd_realloc_or_free): Remove prototype.
90 (bfd_zmalloc): Remove prototype.
91 * libbfd.h: Regenerate.
93 2021-05-03 Jan Beulich <jbeulich@suse.com>
95 * elf32-i386.c (elf_howto_table): Switch all 32-bit relocs to
96 complain_overflow_dont.
97 * elf64-x86-64.c (x86_64_elf_howto_table): Switch all 64-bit
98 relocs to complain_overflow_dont.
100 2021-05-03 Alan Modra <amodra@gmail.com>
102 * elf32-ppc.c (allocate_dynrelocs): Keep dyn_relocs for undefweak
103 symbols when -z dynamic-undefined-weak or when there are no
104 dynamic relocs in read-only sections and -z nodynamic-undefined-weak
106 * elf64-ppc.c (allocate_dynrelocs): Likewise.
108 2021-05-03 Alan Modra <amodra@gmail.com>
110 * elf32-ppc.c (allocate_dynrelocs): Call ensure_undef_dynamic for
111 weak undefined symols that only appear on PLT relocs.
112 * elf64-ppc.c (allocate_dynrelocs): Likewise.
114 2021-05-03 Alan Modra <amodra@gmail.com>
117 * elf32-ppc.c (ppc_elf_inline_plt): Do increment rel in loop.
119 2021-05-03 Alan Modra <amodra@gmail.com>
121 * elf32-csky.c (is_mapping_symbol_name): New function.
122 (csky_elf_is_target_special_symbol): Likewise.
123 (csky_elf_maybe_function_sym): Likewise.
124 (bfd_elf32_bfd_is_target_special_symbol): Define.
125 (elf_backend_maybe_function_sym): Define.
127 2021-04-30 Nick Clifton <nickc@redhat.com>
130 * mach-o.c (bfd_mach_o_core_fetch_environment): Use bfd_get_32 to
133 2021-04-30 Nick Clifton <nickc@redhat.com>
136 * elf32-xtensa.c (elf_xtensa_grok_prstatus): Check for core notes
139 2021-04-30 Nick Clifton <nickc@redhat.com>
142 * libbfd.c (bfd_realloc_or_free): Do not free a pointer than has
143 been realloc'ed to size 0.
145 2021-04-30 Nick Clifton <nickc@redhat.com>
148 * coff-rs6000.c (_bfd_xcoff_read_ar_hdr): Check for invalid name
151 2021-04-29 Nick Clifton <nickc@redhat.com>
154 * som.c (som_slurp_symbol_table): Assign symbols without any scope
155 to the undefined section.
156 (som_decode_symclass): Check for a missing symbol section.
157 * syms.c (bfd_decode_symclass): Likewise.
159 2021-04-29 Nick Clifton <nickc@redhat.com>
162 * som.c (som_slurp_string_table): Place a terminating NUL byte at
163 the end of the table.
164 (som_slurp_symbol_table): Check for an over-large offset into the
167 2021-04-28 Nick Clifton <nickc@redhat.com>
169 * elf.c (_bfd_elf_maybe_function_sym): Do not accept annobin
170 symbols as potential function symbols.
171 * elfnn-aarch64.c (elfNN_aarch64_maybe_function_sym): Likewise.
172 * elf64-ppc.c (ppc64_elf_maybe_function_sym): Likewise.
173 * elf32-arm.c (elf32_arm_maybe_function_sym): Likewise.
175 2021-04-26 Mike Frysinger <vapier@gentoo.org>
177 * elf-bfd.h: Include stdlib.h.
179 2021-04-26 Jan Beulich <jbeulich@suse.com>
181 * elf32-i386.c (elf_howto_table): Switch R_386_PC16 to
182 complain_overflow_signed.
183 * elf64-x86-64.c (x86_64_elf_howto_table): Switch R_X86_64_PC16
184 to complain_overflow_signed.
186 2021-04-23 Eric Botcazou <ebotcazou@adacore.com>
188 * elf.c (special_sections_p): Add .persistent.bss.
190 2021-04-23 Jan Beulich <jbeulich@suse.com>
192 * elf32-i386.c (elf_howto_table): R_386_TLS_DESC_CALL has zero
194 * elf64-x86-64.c (x86_64_elf_howto_table): R_X86_64_TLSDESC_CALL
197 2021-04-22 Clément Chigot <clement.chigot@atos.net>
199 * hash.c (struct bfd_strtab_hash): Remove xcoff field.
200 Add length_field_size field.
201 (_bfd_stringtab_init): Change prototype.
202 Adapt to new length_field_size.
203 (_bfd_xcoff_stringtab_init): Likewise.
204 (_bfd_stringtab_add): Likewise.
205 (_bfd_stringtab_emit): Likewise.
206 * libbfd-in.h (_bfd_xcoff_stringtab_init):
208 * libbfd.h: Regenerate.
209 * xcofflink.c (_bfd_xcoff_bfd_link_hash_table_create):
210 Call _bfd_xcoff_stringtab_init with isxcoff64 value.
212 2021-04-22 Clément Chigot <clement.chigot@atos.net>
214 * coff-rs6000.c (_bfd_xcoff_swap_aux_in): Add errors for
215 unsupported storage class or auxialiry entries.
216 Improve and adapt to new aux structures.
218 (_bfd_xcoff_swap_aux_out): Likewise.
219 * coff64-rs6000.c (_bfd_xcoff64_swap_aux_in): Likewise.
220 (_bfd_xcoff64_swap_aux_out): Likewise.
222 2021-04-21 Eli Zaretskii <eliz@gnu.org>
225 * peXXigen.c (_bfd_XX_print_private_bfd_data_common): Add display
226 of IMAGE_FILE_REMOVABLE_RUN_FROM_SWAP,
227 IMAGE_FILE_NET_RUN_FROM_SWAP and IMAGE_FILE_UP_SYSTEM_ONLY flags.
228 Decode the contents of the DllCharacteristics field.
230 2021-04-21 Nick Clifton <nickc@redhat.com>
233 * srec.c (srec_read_section): Replace assertions with error
236 2021-04-20 Clément Chigot <clement.chigot@atos.net>
239 * reloc.c (BFD_RELOC_PPC_NEG): New relocation.
240 * bfd-in2.h: Regenerate.
241 * libbfd.h: Regenerate.
242 * coff-rs6000.c (_bfd_xcoff_reloc_type_lookup): Add
243 BFD_RELOC_PPC_NEG handler.
244 (xcoff_reloc_type_neg): Correctly substract addend.
245 * coff64-rs6000.c (xcoff64_howto_table): Add R_NEG_32
247 (xcoff64_rtype2howto): Add handler for R_NEG_32.
248 (xcoff64_reloc_type_lookup): Add BFD_RELOC_PPC_NEG handler.
249 * xcofflink.c (xcoff_need_ldrel_p): Check output section
250 for R_POS-like relocations. New argument added.
251 (xcoff_mark): Adapt to new xcoff_need_ldrel_p argument.
252 (xcoff_link_input_bfd): Likewise.
254 2021-04-16 Alan Modra <amodra@gmail.com>
257 * coffcode.h (styp_to_sec_flags): Use an unsigned long styp_flags.
258 (coff_write_object_contents): Pass bfd to COFF_ENCODE_ALIGNMENT,
259 ignore alignment checks when return is false. Formatting.
261 2021-04-15 Nelson Chu <nelson.chu@sifive.com>
264 * elfnn-riscv.c (riscv_elf_is_target_special_symbol): Added to
265 omit local and empty symbols since they usually generated to
266 mark the auipc instructions.
268 2021-04-15 Lifang Xia<lifang_xia@c-sky.com>
270 * elf32-csky.c (csky_elf_howto_table)
271 <R_CKCORE_PCREL_IMM16BY2>: Set special_function to
272 bfd_elf_generic_reloc.
273 <R_CKCORE_PCREL_IMM16BY4>: Likewise.
274 <R_CKCORE_PCREL_IMM10BY4>: Likewise.
275 <R_CKCORE_PCREL_IMM18BY2>: Likewise.
276 <R_CKCORE_PCREL_FLRW_IMM8BY4>: Likewise.
278 2021-04-14 H.J. Lu <hongjiu.lu@intel.com>
281 * elf.c (assign_file_positions_for_non_load_sections): Set
282 p_memsz to p_filesz for the loadable PT_NOTE segment.
284 2021-04-14 Frederic Cambus <fred@statdns.com>
286 * elf.c (elfcore_grok_netbsd_note): Remove unneeded #ifdef
287 checks for NT_NETBSDCORE_AUXV and NT_NETBSDCORE_LWPSTATUS.
289 2021-04-14 Alan Modra <amodra@gmail.com>
292 * elf32-metag.c (elf_metag_relocate_section): Don't use &hh->elf
293 when hh might be NULL, test for NULL first.
295 2021-04-14 Alan Modra <amodra@gmail.com>
298 * elf32-arm.c (elf32_arm_size_stubs): Don't use &hash->root when
299 hash might be NULL, cast instead.
301 2021-04-13 Clément Chigot <clement.chigot@atos.net>
303 * xcofflink.c (xcoff_link_check_ar_symbols): Update esym earlier.
305 2021-04-13 Nelson Chu <nelson.chu@sifive.com>
307 * elfnn-riscv.c (riscv_version_mismatch): Do not report the warning
308 when the version of input or output is RISCV_UNKNOWN_VERSION, since
309 the extension is added implicitly.
310 * elfxx-riscv.c: Updated the obsolete comments.
311 (RISCV_UNKNOWN_VERSION): Moved to elfxx-riscv.h.
312 * elfxx-riscv.h (RISCV_UNKNOWN_VERSION): Added.
314 2021-04-12 Alan Modra <amodra@gmail.com>
316 * elf-bfd.h (ENABLE_CHECKING): Define.
317 (elf_link_hash_lookup): Abort if wrong type of hash table.
318 * configure.ac (--enable-checking): Add support.
319 * config.in: Regenerate.
320 * configure: Regenerate.
322 2021-04-12 Alan Modra <amodra@gmail.com>
324 * elf-bfd.h (is_elf_hash_table): Convert macro to inline function.
325 (elf_link_hash_lookup, elf_link_hash_traverse): Likewise.
326 (elf_hash_table, elf_hash_table_id): Likewise.
327 * elf32-arm.c (elf32_arm_setup_section_lists): Delete redundant
328 is_elf_hash_table check.
329 * elf32-csky.c (elf32_csky_setup_section_lists): Likewise.
330 * elf32-hppa.c (clobber_millicode_symbols): Correct param types.
331 * elf64-alpha.c (elf64_alpha_output_extsym): Likewise.
332 * elfnn-ia64.c (elfNN_ia64_global_dyn_info_free: Likewise.
333 (elfNN_ia64_global_dyn_sym_thunk: Likewise.
334 * elf64-ia64-vms.c (elf64_ia64_global_dyn_info_free): Likewise.
335 (elf64_ia64_global_dyn_sym_thunk): Likewise.
336 (elf64_vms_link_add_object_symbols): Pass base type of hash table
337 to is_elf_hash_table.
338 * elflink.c (_bfd_elf_dynamic_symbol_p): Likewise.
339 (_bfd_elf_symbol_refs_local_p, _bfd_elf_add_dynamic_entry): Likewise.
340 (_bfd_elf_strip_zero_sized_dynamic_sections): Likewise.
341 (_bfd_elf_link_check_relocs, elf_link_add_object_symbols): Likewise.
342 (bfd_elf_final_link): Likewise.
343 * elfnn-aarch64.c (elfNN_aarch64_setup_section_lists): Likewise.
344 * elf64-ppc.c (ppc64_elf_set_toc): Likewise. Use bfd_link_hash_lookup.
346 2021-04-12 Alan Modra <amodra@gmail.com>
348 * elf-bfd.h (struct elf_backend_data): Return bfd_link_hash_entry*
349 from elf_backend_archive_symbol_lookup.
350 (_bfd_elf_archive_symbol_lookup): Return bfd_link_hash_entry*.
351 * elf64-ppc.c (ppc64_elf_archive_symbol_lookup): Likewise. Check
352 we have a ppc_hash_table before accessing ppc_link_hash_entry
354 * elflink.c (_bfd_elf_archive_symbol_lookup): Return
355 bfd_link_hash_entry*.
356 (elf_link_add_archive_symbols): Adjust to suit.
358 2021-04-12 Nelson Chu <nelson.chu@sifive.com>
360 * elfxx-riscv.c (riscv_parse_std_ext): Fixed the wrong versions of
361 i-ext when expanding g-ext.
363 2021-04-12 Nelson Chu <nelson.chu@sifive.com>
365 * elfxx-riscv.c (riscv_ext_dont_care_version): Removed.
366 (riscv_parse_add_subset): Always add the implicit extensions, even if
367 their versions are RISCV_UNKNOWN_VERSION.
368 (riscv_parse_std_ext): Delay to add i-ext as the implicit extension
369 in the riscv_parse_add_implicit_subsets. Besides, add g-ext as the
370 implicit extension after it has been expanded.
371 (riscv_parse_add_implicit_subsets): Updated.
373 2021-04-12 Nelson Chu <nelson.chu@sifive.com>
375 * elfxx-riscv.c (riscv_std_z_ext_strtab): Moved forward.
376 (riscv_std_s_ext_strtab): Likewise.
377 (riscv_std_h_ext_strtab): Likewise.
378 (riscv_std_zxm_ext_strtab): Added for the zxm prefix.
379 (enum riscv_prefix_ext_class): Moved forward and renamed from
380 riscv_isa_ext_class. Reorder them according to the parsing order,
381 since the enum values are used to check the orders in the
382 riscv_compare_subsets.
383 (struct riscv_parse_prefix_config): Moved forward and renamed from
384 riscv_parse_config_t. Also removed the ext_valid_p field, the
385 related functions are replaced by riscv_valid_prefixed_ext.
386 (parse_config): Moved forward and updated. The more letters of the
387 prefix string, the more forward it must be defined. Otherwise, we
388 will get the wrong mapping when using strncmp in riscv_get_prefix_class.
389 (riscv_get_prefix_class): Moved forward. Support to parse the
390 multi-letter prefix, like zxm.
391 (riscv_known_prefixed_ext): New function, check if the prefixed
392 extension is supported according to the right riscv_std_*_ext_strtab.
393 (riscv_valid_prefixed_ext): New function, used to replace the
394 riscv_ext_*_valid_p functions.
395 (riscv_init_ext_order): Do not set the values for prefix keywords
396 since they may have multiple letters for now.
397 (riscv_compare_subsets): Set the order values of prefix keywords
398 to negative numbers according to the riscv_prefix_ext_class.
399 (riscv_parse_std_ext): Call riscv_get_prefix_class to see if we
400 have parsed the prefixed extensions.
401 (riscv_parse_prefixed_ext): Updated and removed the parameter config.
402 Report error when the prefix is unknown.
403 (riscv_parse_subset): Do not parse the prefixed extensions according
404 to the orders in the parse_config. Remove the confused message and
405 let riscv_parse_prefixed_ext to report the details.
406 * elfxx-riscv.h (enum riscv_isa_ext_class): Moved to elfxx-riscv.c.
407 (riscv_get_prefix_class): Removed to static.
409 2021-04-08 Mike Frysinger <vapier@gentoo.org>
411 * configure.ac (ACX_BUGURL): Use https://.
412 * configure.com (COPY_TEXT): Likewise.
413 * configure: Regenerate.
415 2021-04-05 Alan Modra <amodra@gmail.com>
417 * configure.ac: Don't check for long long or long double type.
418 Don't check for alloca.h, limits.h, stddef.h, stdlib.h, string.h,
419 strings.h, time.h, wchar.h, wctype.h or sys/time.h. Don't check
420 for strtoull, free, malloc, realloc, getenv, strstr, snprintf,
421 vsnprintf, strlen or setitimer. Sort AC_CHECK_DECLS.
422 (AC_ISC_POSIX): Don't invoke.
423 (AC_HEADER_TIME, AC_HEADER_DIRENT, ACX_HEADER_STRING): Likewise.
424 * sysdep.h: Remove many HAVE_*_H checks and fallback declarations.
425 Do test HAVE_SYS_TYPES_H. Don't include sys/time.h. Reorder
426 header order as per automake AC_INCLUDES_DEFAULT.
427 * bfd-in.h: Include inttypes.h unconditionally.
428 * bfd.c (_bfd_doprnt, _bfd_doprnt_scan): Assume long long and
429 long double are available.
430 (bfd_scan_vma): Assume long long and strtoull are available.
431 * elflink.c: Include limits.h unconditionally.
432 * elfnn-riscv.c: Likewise.
433 * wasm-module.c: Likewise.
434 * hpux-core.c: Include dirent.h unconditionally.
435 * trad-core.c: Likewise.
436 * hosts/x86-64linux.h: Include stdlib.h unconditionally.
437 * peXXigen.c: Remove HAVE_WCHAR_H and HAVE_WCTYPE_H checks.
438 * elf32-m68hc1x.c: Don't include alloca-conf.h.
439 * elf64-hppa.c: Likewise.
441 * wasm-module.c: Likewise.
443 * bfd-in2.h: Regenerate.
444 * config.in: Regenerate.
445 * configure: Regenerate.
447 2021-04-01 Tamar Christina <tamar.christina@arm.com>
450 * cofflink.c (_bfd_coff_generic_relocate_section): Ignore overflow.
452 2021-04-01 Martin Liska <mliska@suse.cz>
454 * ecoff.c (strneq): Remove strneq and use startswith.
455 (_bfd_ecoff_slurp_armap): Likewise.
457 2021-04-01 Martin Liska <mliska@suse.cz>
459 * elf-bfd.h (bfd_section_is_ctf): Use startswith function.
460 * elf.c (_bfd_elf_make_section_from_shdr): Likewise.
461 (elf_get_reloc_section): Likewise.
462 * elf32-arc.c (elf_arc_size_dynamic_sections): Likewise.
463 * elf32-m32r.c (m32r_elf_section_flags): Likewise.
464 * elf32-microblaze.c (microblaze_elf_size_dynamic_sections): Likewise.
465 * elf32-nds32.c (nds32_elf_size_dynamic_sections): Likewise.
466 (nds32_elf_relocate_section): Likewise.
467 (nds32_elf_action_discarded): Likewise.
468 (nds32_elf_check_relocs): Likewise.
469 (nds32_elf_section_flags): Likewise.
470 * elf32-or1k.c (or1k_elf_check_relocs): Likewise.
471 * elf32-ppc.c (ppc_elf_section_from_shdr): Likewise.
472 * elf32-rx.c (rx_table_find): Likewise.
473 (rx_table_map): Likewise.
474 * elf32-spu.c (spu_elf_backend_symbol_processing): Likewise.
475 (spu_elf_find_overlays): Likewise.
476 (needs_ovl_stub): Likewise.
477 (allocate_spuear_stubs): Likewise.
478 (build_spuear_stubs): Likewise.
479 (mark_overlay_section): Likewise.
480 (spu_elf_auto_overlay): Likewise.
481 (spu_elf_output_symbol_hook): Likewise.
482 * elf32-tilepro.c (tilepro_elf_size_dynamic_sections): Likewise.
483 * elf32-xtensa.c (xtensa_property_section_name): Likewise.
484 * elf64-ppc.c (ppc64_elf_section_flags): Likewise.
485 (ppc64_elf_relocate_section): Likewise.
486 * elflink.c (resolve_section): Likewise.
487 (UNARY_OP): Likewise.
488 (BINARY_OP_HEAD): Likewise.
489 (elf_link_input_bfd): Likewise.
490 * elfnn-riscv.c (riscv_elf_size_dynamic_sections): Likewise.
491 * elfxx-riscv.c (riscv_parse_subset): Likewise.
492 * elfxx-tilegx.c (tilegx_elf_size_dynamic_sections): Likewise.
493 * opncls.c (get_build_id): Likewise.
495 2021-03-31 Alan Modra <amodra@gmail.com>
498 * bfd-in.h: Don't poison FALSE or TRUE.
499 * bfd-in2.h: Regenerate.
501 2021-03-31 Alan Modra <amodra@gmail.com>
503 * sysdep.h: POISON_BFD_BOOLEAN: Define.
504 * aix5ppc-core.c, * aout-cris.c, * aout-ns32k.c, * aout-target.h,
505 * aoutx.h, * arc-got.h, * archive.c, * archive64.c, * archures.c,
506 * bfd-in.h, * bfd.c, * bfdwin.c, * binary.c, * cache.c,
507 * coff-alpha.c, * coff-arm.c, * coff-arm.h, * coff-bfd.c,
508 * coff-bfd.h, * coff-go32.c, * coff-i386.c, * coff-ia64.c,
509 * coff-mcore.c, * coff-mips.c, * coff-rs6000.c, * coff-sh.c,
510 * coff-stgo32.c, * coff-tic30.c, * coff-tic4x.c, * coff-tic54x.c,
511 * coff-x86_64.c, * coff-z80.c, * coff-z8k.c, * coff64-rs6000.c,
512 * coffcode.h, * coffgen.c, * cofflink.c, * compress.c,
513 * corefile.c, * cpu-aarch64.c, * cpu-aarch64.h, * cpu-alpha.c,
514 * cpu-arc.c, * cpu-arm.c, * cpu-arm.h, * cpu-avr.c, * cpu-bfin.c,
515 * cpu-bpf.c, * cpu-cr16.c, * cpu-cris.c, * cpu-crx.c,
516 * cpu-csky.c, * cpu-d10v.c, * cpu-d30v.c, * cpu-dlx.c,
517 * cpu-epiphany.c, * cpu-fr30.c, * cpu-frv.c, * cpu-ft32.c,
518 * cpu-h8300.c, * cpu-hppa.c, * cpu-i386.c, * cpu-ia64.c,
519 * cpu-iamcu.c, * cpu-ip2k.c, * cpu-iq2000.c, * cpu-k1om.c,
520 * cpu-l1om.c, * cpu-lm32.c, * cpu-m10200.c, * cpu-m10300.c,
521 * cpu-m32c.c, * cpu-m32r.c, * cpu-m68hc11.c, * cpu-m68hc12.c,
522 * cpu-m68k.c, * cpu-m9s12x.c, * cpu-m9s12xg.c, * cpu-mcore.c,
523 * cpu-mep.c, * cpu-metag.c, * cpu-microblaze.c, * cpu-mips.c,
524 * cpu-mmix.c, * cpu-moxie.c, * cpu-msp430.c, * cpu-mt.c,
525 * cpu-nds32.c, * cpu-nfp.c, * cpu-nios2.c, * cpu-ns32k.c,
526 * cpu-or1k.c, * cpu-pdp11.c, * cpu-pj.c, * cpu-powerpc.c,
527 * cpu-pru.c, * cpu-riscv.c, * cpu-rl78.c, * cpu-rs6000.c,
528 * cpu-rx.c, * cpu-s12z.c, * cpu-s390.c, * cpu-score.c,
529 * cpu-sh.c, * cpu-sparc.c, * cpu-spu.c, * cpu-tic30.c,
530 * cpu-tic4x.c, * cpu-tic54x.c, * cpu-tic6x.c, * cpu-tilegx.c,
531 * cpu-tilepro.c, * cpu-v850.c, * cpu-v850_rh850.c, * cpu-vax.c,
532 * cpu-visium.c, * cpu-wasm32.c, * cpu-xc16x.c, * cpu-xgate.c,
533 * cpu-xstormy16.c, * cpu-xtensa.c, * cpu-z80.c, * cpu-z8k.c,
534 * dwarf1.c, * dwarf2.c, * ecoff-bfd.h, * ecoff.c, * ecofflink.c,
535 * elf-attrs.c, * elf-bfd.h, * elf-eh-frame.c, * elf-hppa.h,
536 * elf-ifunc.c, * elf-m10200.c, * elf-m10300.c, * elf-nacl.c,
537 * elf-nacl.h, * elf-properties.c, * elf-s390-common.c,
538 * elf-s390.h, * elf-strtab.c, * elf-vxworks.c, * elf-vxworks.h,
539 * elf.c, * elf32-am33lin.c, * elf32-arc.c, * elf32-arm.c,
540 * elf32-arm.h, * elf32-avr.c, * elf32-avr.h, * elf32-bfin.c,
541 * elf32-bfin.h, * elf32-cr16.c, * elf32-cr16.h, * elf32-cris.c,
542 * elf32-crx.c, * elf32-csky.c, * elf32-csky.h, * elf32-d10v.c,
543 * elf32-d30v.c, * elf32-dlx.c, * elf32-epiphany.c,
544 * elf32-fr30.c, * elf32-frv.c, * elf32-ft32.c, * elf32-gen.c,
545 * elf32-h8300.c, * elf32-hppa.c, * elf32-hppa.h, * elf32-i386.c,
546 * elf32-ip2k.c, * elf32-iq2000.c, * elf32-lm32.c, * elf32-m32c.c,
547 * elf32-m32r.c, * elf32-m68hc11.c, * elf32-m68hc12.c,
548 * elf32-m68hc1x.c, * elf32-m68hc1x.h, * elf32-m68k.c,
549 * elf32-m68k.h, * elf32-mcore.c, * elf32-mep.c, * elf32-metag.c,
550 * elf32-metag.h, * elf32-microblaze.c, * elf32-mips.c,
551 * elf32-moxie.c, * elf32-msp430.c, * elf32-mt.c, * elf32-nds32.c,
552 * elf32-nios2.c, * elf32-nios2.h, * elf32-or1k.c, * elf32-pj.c,
553 * elf32-ppc.c, * elf32-ppc.h, * elf32-pru.c, * elf32-rl78.c,
554 * elf32-rx.c, * elf32-s12z.c, * elf32-s390.c, * elf32-score.c,
555 * elf32-score.h, * elf32-score7.c, * elf32-sh-relocs.h,
556 * elf32-sh.c, * elf32-sparc.c, * elf32-spu.c, * elf32-spu.h,
557 * elf32-tic6x.c, * elf32-tic6x.h, * elf32-tilegx.c,
558 * elf32-tilepro.c, * elf32-v850.c, * elf32-v850.h,
559 * elf32-vax.c, * elf32-visium.c, * elf32-wasm32.c,
560 * elf32-xc16x.c, * elf32-xgate.c, * elf32-xstormy16.c,
561 * elf32-xtensa.c, * elf32-z80.c, * elf64-alpha.c, * elf64-bpf.c,
562 * elf64-gen.c, * elf64-hppa.c, * elf64-ia64-vms.c,
563 * elf64-mips.c, * elf64-mmix.c, * elf64-nfp.c, * elf64-ppc.c,
564 * elf64-ppc.h, * elf64-s390.c, * elf64-sparc.c,
565 * elf64-tilegx.c, * elf64-x86-64.c, * elfcode.h,
566 * elfcore.h, * elflink.c, * elfn32-mips.c, * elfnn-aarch64.c,
567 * elfnn-ia64.c, * elfnn-riscv.c, * elfxx-aarch64.c,
568 * elfxx-aarch64.h, * elfxx-ia64.c, * elfxx-ia64.h,
569 * elfxx-mips.c, * elfxx-mips.h, * elfxx-riscv.c, * elfxx-riscv.h,
570 * elfxx-sparc.c, * elfxx-sparc.h, * elfxx-target.h,
571 * elfxx-tilegx.c, * elfxx-tilegx.h, * elfxx-x86.c, * elfxx-x86.h,
572 * format.c, * genlink.h, * hash.c, * i386aout.c, * i386lynx.c,
573 * i386msdos.c, * ihex.c, * libaout.h, * libbfd-in.h,
574 * libbfd.c, * libcoff-in.h, * libecoff.h, * libpei.h,
575 * libxcoff.h, * linker.c, * mach-o-aarch64.c, * mach-o-arm.c,
576 * mach-o-i386.c, * mach-o-x86-64.c, * mach-o.c, * mach-o.h,
577 * merge.c, * mmo.c, * netbsd.h, * opncls.c, * pc532-mach.c,
578 * pdp11.c, * pe-arm.c, * pe-i386.c, * pe-mcore.c, * pe-sh.c,
579 * pe-x86_64.c, * peXXigen.c, * pef.c, * pei-arm.c, * pei-i386.c,
580 * pei-ia64.c, * pei-mcore.c, * pei-sh.c, * pei-x86_64.c,
581 * peicode.h, * plugin.c, * plugin.h, * ppcboot.c, * reloc.c,
582 * reloc16.c, * rs6000-core.c, * section.c, * simple.c, * som.c,
583 * som.h, * srec.c, * stabs.c, * syms.c, * targets.c, * tekhex.c,
584 * verilog.c, * vms-alpha.c, * vms-lib.c, * vms-misc.c, * vms.h,
585 * wasm-module.c, * xcofflink.c, * xcofflink.h, * xsym.c,
586 * xsym.h: Replace bfd_boolean with bool, FALSE with false, and
587 TRUE with true throughout.
588 * bfd-in2.h: Regenerate.
589 * libbfd.h: Regenerate.
590 * libcoff.h: Regenerate.
592 2021-03-31 Alan Modra <amodra@gmail.com>
594 * bfd-in.h: Include stdbool.h.
595 (bfd_boolean): Define as bool
596 * bfd-in2.h: Regenerate.
598 2021-03-31 Alan Modra <amodra@gmail.com>
600 * .gitignore: Delete bfd_stdint.h entry.
601 * Makefile.am (bfdinclude_HEADERS): Delete bfd_stdint.h.
602 (BUILD_HFILES, LOCAL_H_DEPS): Likewise.
603 * bfd-in.h: Include stdint.h in place of bfd_stdint.h.
604 * configure.ac: Don't invoke GCC_HEADER_STDINT.
605 * configure.com: Don't create bfd_stdint.h.
606 * Makefile.in: Regenerate.
607 * aclocal.m4: Regenerate.
608 * bfd-in2.h: Regenerate.
609 * config.in: Regenerate.
610 * configure: Regenerate.
611 * doc/Makefile.in: Regenerate.
612 * po/BLD-POTFILES.in: Regenerate.
614 2021-03-31 Alan Modra <amodra@gmail.com>
616 * bfd-in.h: Include string.h.
617 (LITMEMCPY, LITSTRCPY): Delete.
618 * bfd-in2.h: Regenerate.
620 2021-03-30 Alan Modra <amodra@gmail.com>
622 * elflink.c (elf_link_add_object_symbols): Don't set h->indx
623 unless is_elf_hash_table.
625 2021-03-29 Alan Modra <amodra@gmail.com>
627 * aoutx.h (aout_link_write_symbols): Don't cast boolean expression
629 * elf32-or1k.c (or1k_set_got_and_rela_sizes): Dont compare booleans
631 * elf32-arc.c (name_for_global_symbol): Don't compare boolean to TRUE.
632 (is_reloc_PC_relative): Don't use "boolean_condition ? TRUE : FALSE".
633 (is_reloc_SDA_relative, is_reloc_for_GOT): Likewise.
634 (is_reloc_for_PLT, is_reloc_for_TLS): Likewise.
635 * elf32-arm.c (stm32l4xx_need_create_replacing_stub): Likewise.
636 * elf32-nds32.c (insert_nds32_elf_blank): Likewise.
637 * elf32-rx.c (rx_set_section_contents): Likewise.
638 * elfnn-aarch64.c (elfNN_aarch64_final_link_relocate): Likewise.
639 * elfxx-mips.c (_bfd_mips_elf_ignore_undef_symbol): Likewise.
640 * mach-o.c (bfd_mach_o_read_command): Likewise.
641 * targets.c (bfd_get_target_info): Likewise.
643 2021-03-29 Alan Modra <amodra@gmail.com>
645 * coff-z80.c (z80_is_local_label_name): Return bfd_boolean.
646 * elf32-z80.c (z80_is_local_label_name): Likewise.
647 * elf32-spu.c (spu_elf_modify_headers): Likewise.
648 * elf32-nds32.h (struct elf_nds32_link_hash_table <hyper_relax>):
650 * vms-lib.c (_bfd_vms_lib_write_archive_contents): Correct test
651 for error return from vms_write_data_block.
653 2021-03-29 Alan Modra <amodra@gmail.com>
655 * elf32-i386.c (elf_i386_finish_local_dynamic_symbol): Return int.
656 * elf64-ia64-vms.c (elf64_ia64_local_dyn_info_free): Likewise.
657 (elf64_ia64_local_dyn_sym_thunk): Likewise.
658 * elf64-x86-64.c (elf_x86_64_finish_local_dynamic_symbol): Likewise.
659 * elfnn-aarch64.c (elfNN_aarch64_allocate_local_ifunc_dynrelocs),
660 (elfNN_aarch64_finish_local_dynamic_symbol): Likewise.
661 * elfnn-ia64.c (elfNN_ia64_local_dyn_info_free): Likewise.
662 (elfNN_ia64_local_dyn_sym_thunk): Likewise.
663 * elfnn-riscv.c (allocate_local_ifunc_dynrelocs): Likewise.
664 (riscv_pcrel_reloc_eq): Likewise.
665 (riscv_elf_finish_local_dynamic_symbol): Likewise.
666 * elfxx-sparc.c (allocate_local_dynrelocs): Likewise.
667 (finish_local_dynamic_symbol): Likewise.
668 * elfxx-x86.c (elf_x86_allocate_local_dynreloc): Likewise.
669 * elfxx-mips.c (mips_elf_resolve_got_page_ref): Likewise.
670 (mips_elf_count_got_symbols): Change return type to bfd_boolean.
672 2021-03-29 Alan Modra <amodra@gmail.com>
674 * elflink.c (elf_link_output_symstrtab): Make flinfo parameter
676 (bfd_elf_final_link): Delete out_sym_func typedef and don't cast
677 elf_link_output_symstrtab when calling output_arch_syms and
678 output_arch_local_syms.
679 * elf-bfd.h (struct elf_backend_data <elf_backend_output_arch_syms,
680 elf_backend_output_arch_local_syms>): Change return type of func
681 arg to match elf_link_output_symstrtab.
682 * elf-vxworks.h (elf_vxworks_link_output_symbol_hook): Correct
684 * elf32-nds32.c (nds32_elf_output_symbol_hook): Correct return type.
685 (nds32_elf_output_arch_syms): Correct func return type.
687 2021-03-29 Alan Modra <amodra@gmail.com>
689 * elf-m10200.c (mn10200_elf_relocate_section): Return int.
690 * elf-m10300.c (mn10300_elf_relocate_section): Likewise.
691 * elf32-arc.c (elf_arc_relocate_section): Likewise.
692 * elf32-arm.c (elf32_arm_relocate_section): Likewise.
693 * elf32-avr.c (elf32_avr_relocate_section): Likewise.
694 * elf32-bfin.c (bfin_relocate_section): Likewise.
695 (bfinfdpic_relocate_section): Likewise.
696 * elf32-cr16.c (elf32_cr16_relocate_section): Likewise.
697 * elf32-cris.c (cris_elf_relocate_section): Likewise.
698 * elf32-crx.c (elf32_crx_relocate_section): Likewise.
699 * elf32-csky.c (csky_elf_relocate_section): Likewise.
700 * elf32-d10v.c (elf32_d10v_relocate_section): Likewise.
701 * elf32-epiphany.c (epiphany_elf_relocate_section): Likewise.
702 * elf32-fr30.c (fr30_elf_relocate_section): Likewise.
703 * elf32-frv.c (elf32_frv_relocate_section): Likewise.
704 * elf32-ft32.c (ft32_elf_relocate_section): Likewise.
705 * elf32-h8300.c (elf32_h8_relocate_section): Likewise.
706 * elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
707 * elf32-i386.c (elf_i386_relocate_section): Likewise.
708 * elf32-ip2k.c (ip2k_elf_relocate_section): Likewise.
709 * elf32-iq2000.c (iq2000_elf_relocate_section): Likewise.
710 * elf32-lm32.c (lm32_elf_relocate_section): Likewise.
711 * elf32-m32c.c (m32c_elf_relocate_section): Likewise.
712 * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
713 * elf32-m68hc1x.c (elf32_m68hc11_relocate_section): Likewise.
714 * elf32-m68hc1x.h (elf32_m68hc11_relocate_section): Likewise.
715 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
716 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
717 * elf32-mep.c (mep_elf_relocate_section): Likewise.
718 * elf32-metag.c (elf_metag_relocate_section): Likewise.
719 * elf32-microblaze.c (microblaze_elf_relocate_section): Likewise.
720 * elf32-moxie.c (moxie_elf_relocate_section): Likewise.
721 * elf32-msp430.c (elf32_msp430_relocate_section): Likewise.
722 * elf32-mt.c (mt_elf_relocate_section): Likewise.
723 * elf32-nds32.c (nds32_elf_relocate_section): Likewise.
724 * elf32-nios2.c (nios2_elf32_relocate_section): Likewise.
725 * elf32-or1k.c (or1k_elf_relocate_section): Likewise.
726 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
727 * elf32-pru.c (pru_elf32_relocate_section): Likewise.
728 * elf32-rl78.c (rl78_elf_relocate_section): Likewise.
729 * elf32-rx.c (rx_elf_relocate_section): Likewise.
730 * elf32-s390.c (elf_s390_relocate_section): Likewise.
731 * elf32-score.c (s3_bfd_score_elf_relocate_section): Likewise.
732 (_bfd_score_elf_relocate_section): Likewise.
733 * elf32-score.h (s7_bfd_score_elf_relocate_section): Likewise.
734 * elf32-score7.c (s7_bfd_score_elf_relocate_section): Likewise.
735 * elf32-sh.c (sh_elf_relocate_section): Likewise.
736 * elf32-tic6x.c (elf32_tic6x_relocate_section): Likewise.
737 * elf32-tilepro.c (tilepro_elf_relocate_section): Likewise.
738 * elf32-v850.c (v850_elf_relocate_section): Likewise.
739 * elf32-vax.c (elf_vax_relocate_section): Likewise.
740 * elf32-visium.c (visium_elf_relocate_section): Likewise.
741 * elf32-xc16x.c (elf32_xc16x_relocate_section): Likewise.
742 * elf32-xstormy16.c (xstormy16_elf_relocate_section): Likewise.
743 * elf32-xtensa.c (elf_xtensa_relocate_section): Likewise.
744 * elf32-z80.c (z80_elf_relocate_section): Likewise.
745 * elf64-alpha.c (elf64_alpha_relocate_section_r): Likewise.
746 (elf64_alpha_relocate_section): Likewise.
747 * elf64-bpf.c (bpf_elf_relocate_section): Likewise.
748 * elf64-hppa.c (elf64_hppa_relocate_section): Likewise.
749 * elf64-ia64-vms.c (elf64_ia64_relocate_section): Likewise.
750 * elf64-mmix.c (mmix_elf_relocate_section): Likewise.
751 * elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
752 * elf64-s390.c (elf_s390_relocate_section): Likewise.
753 * elf64-x86-64.c (elf_x86_64_relocate_section): Likewise.
754 * elfnn-aarch64.c (elfNN_aarch64_relocate_section): Likewise.
755 * elfnn-ia64.c (elfNN_ia64_relocate_section): Likewise.
756 * elfnn-riscv.c (riscv_elf_relocate_section): Likewise.
757 * elfxx-mips.c (_bfd_mips_elf_relocate_section): Likewise.
758 * elfxx-mips.h (_bfd_mips_elf_relocate_section): Likewise.
759 * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Likewise.
760 * elfxx-sparc.h (_bfd_sparc_elf_relocate_section): Likewise.
761 * elfxx-tilegx.c (tilegx_elf_relocate_section): Likewise.
762 * elfxx-tilegx.h (tilegx_elf_relocate_section): Likewise.
764 2021-03-26 Keith Seitz <keiths@redhat.com>
766 * elfcore.h (_bfd_elf_core_find_build_id): Seek file
767 offset of program headers after calling elf_read_notes.
769 2021-03-23 Jan Beulich <jbeulich@suse.com>
771 * dwarf2.c (read_indexed_string): Rename index to idx.
773 2021-03-22 Martin Liska <mliska@suse.cz>
775 * bfd-in.h (startswith): Add startswith function.
776 (CONST_STRNEQ): Remove.
777 * bfd-in2.h (startswith): Regenerate with make headers.
778 * archive.c (bfd_slurp_armap): Replace usage of CONST_STRNEQ with startswith.
779 (_bfd_slurp_extended_name_table): Likewise.
780 * archive64.c (_bfd_archive_64_bit_slurp_armap): Likewise.
781 * bfd.c (bfd_get_sign_extend_vma): Likewise.
782 (bfd_convert_section_size): Likewise.
783 (bfd_convert_section_contents): Likewise.
784 * coff-stgo32.c (go32exe_create_stub): Likewise.
785 (go32exe_check_format): Likewise.
786 * coffcode.h (styp_to_sec_flags): Likewise.
787 (GNU_DEBUGALTLINK): Likewise.
788 * coffgen.c (_bfd_coff_section_already_linked): Likewise.
789 (coff_gc_sweep): Likewise.
790 (bfd_coff_gc_sections): Likewise.
791 * cofflink.c (coff_link_add_symbols): Likewise.
792 (process_embedded_commands): Likewise.
793 * compress.c (bfd_is_section_compressed_with_header): Likewise.
794 (bfd_init_section_decompress_status): Likewise.
795 * dwarf2.c (find_debug_info): Likewise.
796 (place_sections): Likewise.
797 * ecoff.c (_bfd_ecoff_slurp_armap): Likewise.
798 * elf-m10300.c (_bfd_mn10300_elf_size_dynamic_sections): Likewise.
799 * elf.c (_bfd_elf_make_section_from_shdr): Likewise.
800 (assign_section_numbers): Likewise.
801 (elfcore_grok_win32pstatus): Likewise.
802 * elf32-arm.c (cmse_scan): Likewise.
803 (elf32_arm_gc_mark_extra_sections): Likewise.
804 (elf32_arm_size_dynamic_sections): Likewise.
805 (is_arm_elf_unwind_section_name): Likewise.
806 * elf32-bfin.c (bfin_size_dynamic_sections): Likewise.
807 * elf32-cr16.c (_bfd_cr16_elf_size_dynamic_sections): Likewise.
808 * elf32-cris.c (elf_cris_size_dynamic_sections): Likewise.
809 * elf32-csky.c (csky_elf_size_dynamic_sections): Likewise.
810 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Likewise.
811 * elf32-iq2000.c (iq2000_elf_check_relocs): Likewise.
812 * elf32-lm32.c (lm32_elf_size_dynamic_sections): Likewise.
813 * elf32-m32r.c (m32r_elf_size_dynamic_sections): Likewise.
814 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
815 * elf32-metag.c (elf_metag_size_dynamic_sections): Likewise.
816 * elf32-msp430.c (msp430_elf_relax_delete_bytes): Likewise.
817 * elf32-nios2.c (nios2_elf32_size_dynamic_sections): Likewise.
818 * elf32-or1k.c (or1k_elf_size_dynamic_sections): Likewise.
819 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Likewise.
820 * elf32-s390.c (elf_s390_size_dynamic_sections): Likewise.
821 * elf32-score.c (s3_bfd_score_elf_size_dynamic_sections): Likewise.
822 * elf32-score7.c (s7_bfd_score_elf_size_dynamic_sections): Likewise.
823 * elf32-sh.c (sh_elf_size_dynamic_sections): Likewise.
824 * elf32-tic6x.c (is_tic6x_elf_unwind_section_name): Likewise.
825 (elf32_tic6x_size_dynamic_sections): Likewise.
826 * elf32-vax.c (elf_vax_size_dynamic_sections): Likewise.
827 * elf32-xtensa.c (elf_xtensa_size_dynamic_sections): Likewise.
828 (xtensa_is_insntable_section): Likewise.
829 (xtensa_is_littable_section): Likewise.
830 (xtensa_is_proptable_section): Likewise.
831 (xtensa_property_section_name): Likewise.
832 (xtensa_callback_required_dependence): Likewise.
833 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Likewise.
834 * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise.
835 * elf64-ia64-vms.c (is_unwind_section_name): Likewise.
836 (get_reloc_section): Likewise.
837 (elf64_ia64_size_dynamic_sections): Likewise.
838 (elf64_ia64_object_p): Likewise.
839 * elf64-mmix.c (mmix_elf_add_symbol_hook): Likewise.
840 * elf64-ppc.c (ppc64_elf_size_dynamic_sections): Likewise.
841 * elf64-s390.c (elf_s390_size_dynamic_sections): Likewise.
842 * elflink.c (elf_link_add_object_symbols): Likewise.
843 (_bfd_elf_gc_mark_extra_sections): Likewise.
844 (bfd_elf_parse_eh_frame_entries): Likewise.
845 (_bfd_elf_section_already_linked): Likewise.
846 * elfnn-aarch64.c (elfNN_aarch64_size_dynamic_sections): Likewise.
847 * elfnn-ia64.c (is_unwind_section_name): Likewise.
848 (elfNN_ia64_size_dynamic_sections): Likewise.
849 (elfNN_ia64_object_p): Likewise.
850 * elfxx-mips.c (FN_STUB_P): Likewise.
851 (CALL_STUB_P): Likewise.
852 (CALL_FP_STUB_P): Likewise.
853 (_bfd_mips_elf_section_from_shdr): Likewise.
854 (_bfd_mips_elf_fake_sections): Likewise.
855 (_bfd_mips_elf_size_dynamic_sections): Likewise.
856 (_bfd_mips_final_write_processing): Likewise.
857 (_bfd_mips_elf_final_link): Likewise.
858 * elfxx-sparc.c (_bfd_sparc_elf_size_dynamic_sections): Likewise.
859 * elfxx-x86.c (elf_i386_is_reloc_section): Likewise.
860 (elf_x86_64_is_reloc_section): Likewise.
861 * hpux-core.c (thread_section_p): Likewise.
862 * libcoff.h (bfd_pei_p): Likewise.
863 * linker.c (REAL): Likewise.
864 (unwrap_hash_lookup): Likewise.
865 (_bfd_generic_link_add_one_symbol): Likewise.
866 * mmo.c (mmo_internal_write_section): Likewise.
867 * osf-core.c (osf_core_core_file_p): Likewise.
868 * pef.c (bfd_pef_print_symbol): Likewise.
869 * pei-x86_64.c (pex64_print_all_pdata_sections): Likewise.
870 * som.c (som_slurp_symbol_table): Likewise.
871 (som_slurp_armap): Likewise.
872 * wasm-module.c (wasm_compute_custom_section_file_position): Likewise.
874 2021-03-22 Jan Beulich <jbeulich@suse.com>
876 * peXXigen.c (_bfd_XXi_swap_scnhdr_out): Add missing
877 language translation wrapping to _bfd_error_handler()
880 2021-03-21 Alan Modra <amodra@gmail.com>
882 * bfd-in.h (startswith): New inline.
883 (CONST_STRNEQ): Use startswith.
884 * bfd-in2.h: Regenerate.
886 2021-03-20 Alan Modra <amodra@gmail.com>
889 * elf.c (_bfd_elf_make_section_from_shdr): Remove SHF_EXCLUDE
890 test for .gnu.debuglto*.
892 2021-03-18 H.J. Lu <hongjiu.lu@intel.com>
895 * elf.c (_bfd_elf_make_section_from_shdr): Treat
896 .gnu.debuglto_.debug_ section as debugging section unless it is
897 marked with SHF_EXCLUDE.
898 * elflink.c (elf_create_symbuf): Revert commit 994b2513281.
899 (bfd_elf_match_symbols_in_sections): Ignore section symbols when
900 matching non-debugging sections or linkonce section with comdat
903 2021-03-18 H.J. Lu <hongjiu.lu@intel.com>
906 * dwarf2.c (read_attribute_value): Check version >= 3 for
909 2021-03-16 Nick Clifton <nickc@redhat.com>
911 * peXXigen.c (_bfd_XXi_swap_aux_out): Avoid potential buffer
912 overrun by using sizeof of the destination x_fname field as the
915 2021-03-16 Kuan-Lin Chen <kuanlinchentw@gmail.com>
917 * elfxx-riscv.c (riscv_std_z_ext_strtab): Add zba, zbb and zbc.
919 2021-03-12 Clément Chigot <clement.chigot@atos.net>
921 * reloc.c (BFD_RELOC_PPC_TLS_LE, BFD_RELOC_PPC_TLS_IE,
922 BFD_RELOC_PPC_TLS_M, BFD_RELOC_PPC_TLS_ML, BFD_RELOC_PPC64_TLS_GD,
923 BFD_RELOC_PPC64_TLS_LD, BFD_RELOC_PPC64_TLS_LE,
924 BFD_RELOC_PPC64_TLS_IE, BFD_RELOC_PPC64_TLS_M,
925 BFD_RELOC_PPC64_TLS_ML): New relocations.
926 * bfd-in2.h: Regenerate.
927 * libbfd.h: Regenerate.
928 * coff-rs6000.c (xcoff_calculate_relocation): Call
929 xcoff_reloc_type_tls for TLS relocations.
930 (xcoff_howto_table): Implement TLS relocations.
931 (_bfd_xcoff_reloc_type_lookup): Add cases TLS relocations.
932 (xcoff_reloc_type_tls): New function.
933 * coff64-rs6000.c (xcoff_calculate_relocation): Likewise.
934 (xcoff_howto_table): Likewise.
935 (_bfd_xcoff_reloc_type_lookup): Likewise.
936 * coffcode.h (sec_to_styp_flags): Handle TLS sections.
937 (styp_to_sec_flags): Likewise.
938 (coff_compute_section_file_positions): Avoid file offset
939 optimisation for .data when the previous section is .tdata.
940 (coff_write_object_contents): Handle TLS sections.
941 * coffswap.h (coff_swap_aouthdr_out): Add support for
942 new fields in aouthdr.
943 * libxcoff.h (xcoff_reloc_type_tls): Add prototype.
944 * xcofflink.c (xcoff_link_add_symbols): Handle XMC_UL.
945 (xcoff_need_ldrel_p): Add cases for TLS relocations.
946 (xcoff_create_ldrel): Add l_symndx for TLS sections.
948 2021-03-12 Clément Chigot <clement.chigot@atos.net>
950 * reloc.c (BFD_RELOC_PPC_TOC16_HI, BFD_RELOC_PPC_TOC16_LO):
952 * bfd-in2.h: Regenerate.
953 * libbfd.h: Regenerate.
954 * coff-rs6000.c (xcoff_calculate_relocation): Call
955 xcoff_reloc_type_toc for R_TOCU and R_TOCL.
956 (xcoff_howto_table): Remove src_mask for TOC relocations.
957 Add R_TOCU and R_TOCL howtos.
958 (_bfd_xcoff_reloc_type_lookup): Add cases for
959 BFD_RELOC_PPC_TOC16_HI and BFD_RELOC_PPC_TOC16_LO.
960 (xcoff_reloc_type_toc): Compute the whole offset.
961 Implement R_TOCU and R_TOCL.
962 * coff64-rs6000.c (xcoff64_calculate_relocation):
964 (xcoff64_howto_table): Likewise.
965 (xcoff64_reloc_type_lookup): Likewise.
967 2021-03-12 Clément Chigot <clement.chigot@atos.net>
969 * coff-rs6000.c (xcoff_calculate_relocation): Correct and
971 (xcoff_howto_table): Likewise.
972 (xcoff_rtype2howto): Increase r_type maximum value.
973 (xcoff_ppc_relocate_section): Reuse predefined HOWTOs instead
974 of create a new one from scratch. Enable only some relocations
975 to have a changing r_size.
976 * coff64-rs6000.c (xcoff64_calculate_relocation): Likewise.
977 (xcoff64_howto_table): Likewise.
978 (xcoff64_rtype2howto): Likewise.
979 (xcoff64_ppc_relocate_section): Likewise.
980 * libxcoff.h (XCOFF_MAX_CALCULATE_RELOCATION): Fix value.
982 2021-03-12 Clément Chigot <clement.chigot@atos.net>
984 * coff64-rs6000.c (xcoff64_ppc_relocate_section): Move.
986 2021-03-12 Clément Chigot <clement.chigot@atos.net>
988 * coff64-rs6000.c (xcoff64_write_object_contents): Remove.
989 * coffcode.h (coff_write_object_contents): Add bfd_mach_ppc_620
990 support for o_cputype field. Avoid creating an empty a.out header
993 2021-03-12 Clément Chigot <clement.chigot@atos.net>
995 * coff64-rs6000.c (xcoff64_create_csect_from_smclas): Add
998 2021-03-11 Nelson Chu <nelson.chu@sifive.com>
1000 * elfnn-riscv.c (riscv_elf_link_hash_table): New boolean
1001 restart_relax, used to check if we need to run the whole
1002 relaxations from relax pass 0 to 2 again.
1003 (riscv_elf_link_hash_table_create): Init restart_relax to FALSE.
1004 (_bfd_riscv_relax_align): Remove obsolete sec_flg0 set.
1005 (_bfd_riscv_relax_delete): Set again to TRUE if we do delete the code.
1006 (bfd_elfNN_riscv_restart_relax_sections): New function. Called by
1007 after_allocation to check if we need to run the whole relaxations again.
1008 (_bfd_riscv_relax_section): We will only enter into the relax pass 3
1009 when the restart_relax is FALSE; At last set restart_relax to TRUE if
1011 * elfxx-riscv.h (bfd_elf32_riscv_restart_relax_sections): Declaration.
1012 (bfd_elf64_riscv_restart_relax_sections): Likewise.
1014 2021-03-10 Jan Beulich <jbeulich@suse.com>
1016 * cofflink.c (_bfd_coff_write_global_sym): Range-check symbol
1019 2021-03-10 Alan Modra <amodra@gmail.com>
1020 Jan Beulich <jbeulich@suse.com>
1022 * elf.c (bfd_elf_generic_reloc): Make references between debug
1023 sections use section relative values.
1025 2021-03-09 Jan Beulich <jbeulich@suse.com>
1027 * peXXigen.c (_bfd_XXi_swap_scnhdr_out): Diagnose out of range RVA.
1029 2021-03-05 H.J. Lu <hongjiu.lu@intel.com>
1033 * bfd.c (_bfd_get_link_info): New function.
1034 * elf-bfd.h (output_elf_obj_tdata): Add link_info.
1035 (elf_link_info): New.
1036 * libbfd-in.h (_bfd_get_link_info): New prototype.
1037 * coff-x86_64.c (coff_amd64_reloc): Also subtract __ImageBase for
1038 R_AMD64_IMAGEBASE when generating x86-64 ELF executable.
1039 * pe-x86_64.c: Include "coff/internal.h" and "libcoff.h".
1040 (pex64_link_add_symbols): New function.
1041 (coff_bfd_link_add_symbols): New macro.
1042 * libbfd.h: Regenerated.
1044 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
1045 Andrew Burgess <andrew.burgess@embecosm.com>
1047 * elf-bfd.h (elfcore_write_riscv_csr): Declare.
1048 * elf.c (elfcore_grok_riscv_csr): New function.
1049 (elfcore_grok_note): Handle NT_RISCV_CSR.
1050 (elfcore_write_riscv_csr): New function.
1051 (elfcore_write_register_note): Handle '.reg-riscv-csr'.
1053 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
1054 Andrew Burgess <andrew.burgess@embecosm.com>
1056 * elfnn-riscv.c (PRPSINFO_PR_FNAME_LENGTH): Define.
1057 (PRPSINFO_PR_PSARGS_LENGTH): Define.
1058 (riscv_write_core_note): New function.
1059 (riscv_elf_grok_psinfo): Make use of two new length defines.
1060 (elf_backend_write_core_note): Define.
1062 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
1063 Andrew Burgess <andrew.burgess@embecosm.com>
1065 * elf-bfd.h (elfcore_write_gdb_tdesc): Declare new function.
1066 * elf.c (elfcore_grok_gdb_tdesc): New function.
1067 (elfcore_grok_note): Handle NT_GDB_TDESC.
1068 (elfcore_write_gdb_tdesc): New function.
1069 (elfcore_write_register_note): Handle NT_GDB_TDESC.
1071 2021-03-05 Nick Clifton <nickc@redhat.com>
1074 * dwarf2.c (is_str_attr): Add DW_FORM_strx* forms.
1075 (read_indexed_string): Placeholder function.
1076 (read_attribute_value): Handle DW_FORM_strx* and DW_FORM_addrx*
1079 2021-03-05 Alan Modra <amodra@gmail.com>
1081 * reloc.c (bfd_perform_relocation): Revert 2021-01-12 and
1083 * coff-x86_64.c (coff_amd64_reloc): Do more or less the same
1084 adjustments here instead. Separate pc-relative adjustments
1085 from symbol related adjustments. Tidy comments and formatting.
1087 2021-03-04 Jan Beulich <jbeulich@suse.com>
1089 * coffcode.h (sec_to_styp_flags): Don't set IMAGE_SCN_LNK_* in
1092 2021-03-04 Alan Modra <amodra@gmail.com>
1094 * rs6000-core.c (rs6000coff_core_p): Correct prototype.
1096 2021-03-03 Alan Modra <amodra@gmail.com>
1099 * elflink.c (_bfd_elf_gc_mark_rsec): Do special start/stop
1100 processing not when start/stop symbol section is unmarked but
1101 on first time a start/stop symbol is processed.
1103 2021-03-03 Alan Modra <amodra@gmail.com>
1105 * reloc.c: Include x86_64.h rather than internal.h.
1107 2021-03-02 Nick Clifton <nickc@redhat.com>
1110 * dwarf2.c (scan_unit_for_symbols): Scan twice, once to accumulate
1111 function and variable tags and a second time to resolve their
1114 2021-03-02 Nick Alcock <nick.alcock@oracle.com>
1116 * elf-strtab.c (_bfd_elf_strtab_str): Skip strings with zero refcount.
1118 2021-03-02 Alan Modra <amodra@gmail.com>
1121 * elf64-ppc.c (ppc64_elf_gc_mark_dynamic_ref): Ignore synthesized
1122 linker defined start/stop symbols when start_stop_gc.
1124 2021-03-02 Alan Modra <amodra@gmail.com>
1126 * elf64-ppc.c (ppc64_elf_relocate_section): Don't optimise got
1127 indirect to pc-relative or toc-relative for undefined symbols.
1129 2021-03-01 Alan Modra <amodra@gmail.com>
1130 Fangrui Song <maskray@google.com>
1132 * elflink.c (_bfd_elf_gc_mark_rsec): Ignore synthesized linker
1133 defined start/stop symbols when start_stop_gc.
1134 (bfd_elf_gc_mark_dynamic_ref_symbol): Likewise.
1135 (bfd_elf_define_start_stop): Don't modify ldscript_def syms.
1136 * linker.c (bfd_generic_define_start_stop): Likewise.
1138 2021-02-25 Alan Modra <amodra@gmail.com>
1141 * elf-bfd.h (struct elf_link_hash_entry): Add ref_ir_nonweak.
1142 * elflink.c (elf_link_add_object_symbols): Set ref_ir_nonweak and
1143 use when deciding an as-needed library should be loaded instead
1144 of using the binding of the library definition.
1146 2021-02-24 Alan Modra <amodra@gmail.com>
1149 * coff-stgo32.c (go32exe_check_format): Sanity check size of
1150 header to avoid a buffer overflow.
1152 2021-02-22 Alan Modra <amodra@gmail.com>
1154 * coff-rs6000.c (_bfd_xcoff_reloc_type_lookup): Remove BFD_RELOC_16.
1155 * coff64-rs6000.c (xcoff64_reloc_type_lookup): Likewise.
1157 2021-02-19 Nelson Chu <nelson.chu@sifive.com>
1160 * elfnn-riscv.c (perform_relocation): Updated encoding macros.
1161 (_bfd_riscv_relax_call): Likewise.
1162 (_bfd_riscv_relax_lui): Likewise.
1163 * elfxx-riscv.c (howto_table): Likewise.
1165 2021-02-18 Nelson Chu <nelson.chu@sifive.com>
1167 * Makefile.am: Added cpu-riscv.h.
1168 * Makefile.in: Regenerated.
1169 * po/SRC-POTFILES.in: Regenerated.
1170 * cpu-riscv.h: Added to support spec versions controlling.
1171 Also added extern arrays and functions for cpu-riscv.c.
1172 (enum riscv_spec_class): Define all spec classes here uniformly.
1173 (struct riscv_spec): Added for all specs.
1174 (RISCV_GET_SPEC_CLASS): Added to reduce repeated code.
1175 (RISCV_GET_SPEC_NAME): Likewise.
1176 (RISCV_GET_ISA_SPEC_CLASS): Added to get ISA spec class.
1177 (RISCV_GET_PRIV_SPEC_CLASS): Added to get privileged spec class.
1178 (RISCV_GET_PRIV_SPEC_NAME): Added to get privileged spec name.
1179 * cpu-riscv.c (struct priv_spec_t): Replaced with struct riscv_spec.
1180 (riscv_get_priv_spec_class): Replaced with RISCV_GET_PRIV_SPEC_CLASS.
1181 (riscv_get_priv_spec_name): Replaced with RISCV_GET_PRIV_SPEC_NAME.
1182 (riscv_priv_specs): Moved below.
1183 (riscv_get_priv_spec_class_from_numbers): Likewise, updated.
1184 (riscv_isa_specs): Moved from include/opcode/riscv.h.
1185 * elfnn-riscv.c: Included cpu-riscv.h.
1186 (riscv_merge_attributes): Initialize in_priv_spec and out_priv_spec.
1187 * elfxx-riscv.c: Included cpu-riscv.h and opcode/riscv.h.
1188 (RISCV_UNKNOWN_VERSION): Moved from include/opcode/riscv.h.
1189 * elfxx-riscv.h: Removed extern functions to cpu-riscv.h.
1191 2021-02-17 Alan Modra <amodra@gmail.com>
1193 * wasm-module.c: Guard include of limits.h.
1194 (CHAR_BIT): Provide backup define.
1195 (wasm_read_leb128): Use CHAR_BIT to size "result" in bits.
1196 Correct signed overflow checking.
1198 2021-02-17 Nelson Chu <nelson.chu@sifive.com>
1201 * elfnn-riscv.c (_bfd_riscv_elf_merge_private_bfd_data): Delay
1202 copying the elf flags from input BFD to output BFD, until we have
1203 checked if the input BFD has no code section or not. Also fix the
1204 problem that we only check the first section rather than the entire
1205 sections for input BFD.
1207 2021-02-16 Alan Modra <amodra@gmail.com>
1209 * libbfd.c (_bfd_read_unsigned_leb128): Avoid excessive shift.
1210 (_bfd_safe_read_leb128, _bfd_read_signed_leb128): Likewise.
1212 2021-02-15 Jan Beulich <jbeulich@suse.com>
1214 * doc/Makefile.am: Replace "cp -p" by "$(LN_S)".
1215 * doc/Makefile.in: Re-generate.
1217 2021-02-15 Alan Modra <amodra@gmail.com>
1219 * elf32-nds32.c (nds32_get_section_contents): Replace
1220 bfd_malloc_and_get_section with bfd_get_full_section_contents.
1221 (nds32_elf_relax_delete_blanks): Init contents.
1222 (nds32_elf_relax_section, nds32_relax_fp_as_gp): Likewise.
1224 2021-02-15 Alan Modra <amodra@gmail.com>
1226 * coff-alpha.c (alpha_ecoff_get_relocated_section_contents): Use
1227 bfd_get_full_section_contents.
1229 2021-02-14 Alan Modra <amodra@gmail.com>
1231 * elfxx-mips.c (_bfd_elf_mips_get_relocated_section_contents): Apply
1232 all fixes to bfd_generic_get_relocated_section_contents since this
1233 function was split out.
1235 2021-02-11 Alan Modra <amodra@gmail.com>
1237 * config.bfd: Remove ia64 from obsolete list.
1239 2021-02-11 Alan Modra <amodra@gmail.com>
1242 * elfnn-ia64.c: Revert 2017-10-14 git commit db41f6eb5234.
1244 2021-02-11 Alan Modra <amodra@gmail.com>
1247 * elf32-avr.c (avr_elf32_load_records_from_section): Use
1248 bfd_malloc_and_get_section. Use bfd_byte* vars and remove then
1251 2021-02-11 Alan Modra <amodra@gmail.com>
1254 * section.c (bfd_get_section_contents): Avoid possible overflow
1255 when range checking offset and count.
1256 (bfd_set_section_contents): Likewise.
1258 2021-02-03 Nick Alcock <nick.alcock@oracle.com>
1260 * configure.ac (SHARED_LIBADD): Remove explicit -lintl population in
1262 * configure: Regenerated.
1264 2021-02-09 Alan Modra <amodra@gmail.com>
1266 * config.bfd (arm*-*-symbianelf*): Move from obsolete to removed.
1267 * configure.ac: Delete symbian entries.
1268 * elf-bfd.h (enum elf_target_os): Delete is_symbian.
1269 * elf32-arm.c: Remove symbian support. Formatting.
1270 * targets.c: Delete symbian entries.
1271 * configure: Regenerate.
1273 2021-02-04 H.J. Lu <hongjiu.lu@intel.com>
1276 * elf64-x86-64.c (elf_x86_64_relocate_section): Provide more
1277 info when failed to convert GOTPCREL relocation.
1279 2021-02-04 Nelson Chu <nelson.chu@sifive.com>
1281 * elfxx-riscv.c (riscv_parse_prefixed_ext): Removed zb*.
1283 2021-02-04 Alan Modra <amodra@gmail.com>
1286 * elflink.c (elf_link_add_object_symbols): Don't pull in as-needed
1287 libraries for IR references on pass over libraries after LTO
1290 2021-02-03 Alan Modra <amodra@gmail.com>
1293 * elflink.c (_bfd_elf_add_default_symbol): Revert last two changes.
1294 (elf_link_add_object_symbols): Here too. Don't pull in as-needed
1295 libraries when H is an indirect symbol after calling
1296 _bfd_elf_add_default_symbol.
1298 2021-02-03 Alan Modra <amodra@gmail.com>
1301 * elflink.c (_bfd_elf_add_default_symbol): Clear override when
1302 undecorated symbol will have a different version.
1304 2021-02-02 Alan Modra <amodra@gmail.com>
1307 * elflink.c (_bfd_elf_add_default_symbol): Add override parameter.
1308 Use when handling default versioned symbol. Rename existing
1309 override variable to nondef_override and use for non-default
1311 (elf_link_add_object_symbols): Adjust call to suit. Don't
1312 pull in as-needed libraries when override is set.
1314 2021-02-01 Emery Hemingway <ehmry@posteo.net>
1316 * config.bfd: Add *-*-genode* as a target for AArch64 and x86.
1318 2021-02-01 Egor Vishnyakov <lenvampir@yandex.ru>
1321 * elf32-rl78.c (rl78_elf_relocate_section): Fix calculation of
1322 offset for the R_RL78_RH_SADDR relocation.
1324 2021-01-29 Alan Modra <amodra@gmail.com>
1327 * elflink.c (bfd_elf_link_record_dynamic_symbol): Don't segfault
1328 on symbols defined in absolute or other special sections.
1330 2021-01-28 Alan Modra <amodra@gmail.com>
1333 * elflink.c (_bfd_elf_gc_mark_extra_sections): Use linker_mark to
1334 prevent endless looping of linked-to sections.
1336 2020-12-17 Mihails Strasuns <mihails.strasuns@intel.com>
1338 * bfd-elf.h (elfcore_write_file_note): New function.
1339 * elf.c (elfcore_write_file_note): New function.
1341 2021-01-26 Alan Modra <amodra@gmail.com>
1343 * elf32-ft32.c (ft32_reloc_type_lookup): Don't miss ft32_reloc_map[0].
1345 2021-01-24 H.J. Lu <hongjiu.lu@intel.com>
1348 * dwarf2.c (read_rnglists): Ignore empty range when parsing line
1351 2021-01-23 H.J. Lu <hongjiu.lu@intel.com>
1354 * dwarf2.c (read_rnglists): Advance rngs_ptr after
1355 _bfd_safe_read_leb128 when parsing DW_RLE_offset_pair.
1357 2021-01-20 Alan Modra <amodra@gmail.com>
1359 * elf32-ppc.c: Delete outdated comment.
1360 (TARGET_KEEP_UNUSED_SECTION_SYMBOLS): Define.
1361 * elf64-ppc.c (TARGET_KEEP_UNUSED_SECTION_SYMBOLS): Define.
1363 2021-01-20 Alan Modra <amodra@gmail.com>
1365 * elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Don't assume
1366 section symbols are present.
1368 2021-01-19 Alan Modra <amodra@gmail.com>
1370 * elf64-ppc.c (elf_hash_entry): New inline function. Use
1371 throughout to replace casts.
1372 (branch_reloc_hash_match): Remove const from params.
1373 (use_local_plt): New function.
1374 (allocate_dynrelocs, ppc_build_one_stub, ppc_size_one_stub),
1375 (build_global_entry_stubs_and_plt, ppc64_elf_relocate_section):
1377 * elf32-ppc.c (use_local_plt): New function.
1378 (allocate_dynrelocs, ppc_elf_relocate_section),
1379 (write_global_sym_plt): Use use_local_plt.
1381 2021-01-17 H.J. Lu <hongjiu.lu@intel.com>
1384 * elflink.c (elf_create_symbuf): Also ignore section symbols.
1386 2021-01-16 H.J. Lu <hongjiu.lu@intel.com>
1389 * elfxx-x86.c (_bfd_x86_elf_link_fixup_ifunc_symbol): Don't
1390 check pointer_equality_needed.
1392 2021-01-15 H.J. Lu <hongjiu.lu@intel.com>
1394 * elf-linker-x86.h (elf_linker_x86_params): Add
1395 report_relative_reloc.
1396 * elf32-i386.c (elf_i386_relocate_section): Call
1397 _bfd_x86_elf_link_report_relative_reloc to report relative
1398 relocations for -z report-relative-reloc.
1399 (elf_i386_finish_dynamic_symbol): Likewse.
1400 * elf64-x86-64.c (elf_x86_64_relocate_section): Likewse.
1401 (elf_x86_64_finish_dynamic_symbol): Likewse.
1402 * elfxx-x86.c (_bfd_x86_elf_link_report_relative_reloc): New
1404 * elfxx-x86.h (_bfd_x86_elf_link_report_relative_reloc): New
1407 2021-01-16 Alan Modra <amodra@gmail.com>
1409 * compress.c (decompress_contents): Tidy inflateEnd result test.
1411 2021-01-16 Alan Modra <amodra@gmail.com>
1414 * elflink.c (elf_link_output_extsym): Use version 1 in
1415 .gnu.version for undefined unversioned symbols.
1417 2021-01-15 Nelson Chu <nelson.chu@sifive.com>
1419 * elfnn-riscv.c (riscv_relax_delete_bytes): Fixed the indent that
1420 caused the by previous commit accidentally.
1422 2021-01-15 Nelson Chu <nelson.chu@sifive.com>
1424 * elfnn-riscv.c: Indent, labels and GNU coding standards tidy,
1425 also aligned the code.
1427 2021-01-15 Nelson Chu <nelson.chu@sifive.com>
1429 * elfnn-riscv.c (riscv_merge_attributes): Fix typos of messages.
1431 2021-01-15 Nelson Chu <nelson.chu@sifive.com>
1433 * elfnn-riscv.c: Comments tidy and improvement.
1434 * elfxx-riscv.c: Likewise.
1435 * elfxx-riscv.h: Likewise.
1437 2021-01-14 H.J. Lu <hongjiu.lu@intel.com>
1440 * elf32-bfin.c (bfinfdpic_relocate_section): Skip non SEC_ALLOC
1441 section for R_BFIN_FUNCDESC.
1443 2021-01-14 Nick Clifton <nickc@redhat.com>
1445 * elf.c (elfcore_grok_win32pstatus): Check for a note type of 0.
1447 2021-01-13 Alan Modra <amodra@gmail.com>
1449 * Makefile.in: Regenerate.
1450 * doc/Makefile.in: Regenerate.
1452 2021-01-13 Alan Modra <amodra@gmail.com>
1455 * section.c (struct bfd_section): Remove pattern field.
1456 (BFD_FAKE_SECTION): Adjust to suit.
1457 * bfd-in2.h: Regenerate.
1458 * elflink.c (compare_link_order, elf_fixup_link_order): Delete.
1459 (bfd_elf_final_link): Don't call elf_fixup_link_order.
1461 2021-01-12 H.J. Lu <hongjiu.lu@intel.com>
1464 * configure.ac: Use GNU_MAKE_JOBSERVER.
1465 * aclocal.m4: Regenerated.
1466 * configure: Likewise.
1468 2021-01-12 H.J. Lu <hongjiu.lu@intel.com>
1471 * reloc.c (bfd_perform_relocation): Adjust R_AMD64_DIR64 and
1472 R_AMD64_DIR32 relocations for PE/x86-64 inputs.
1474 2021-01-11 H.J. Lu <hongjiu.lu@intel.com>
1477 * configure: Regenerated.
1479 2021-01-11 Nick Clifton <nickc@redhat.com>
1481 * po/fr.po: Updated French translation.
1482 * po/pt.po: Updated Portuguese translation.
1483 * po/sr.po: Updated Serbian translation.
1484 * po/uk.po: Updated Ukranian translation.
1486 2021-01-09 H.J. Lu <hongjiu.lu@intel.com>
1488 * configure: Regenerated.
1490 2021-01-09 H.J. Lu <hongjiu.lu@intel.com>
1493 * elfxx-x86.c (_bfd_x86_elf_merge_gnu_properties): Handle
1494 -z lam-u48 and -z lam-u57.
1496 2021-01-09 Nick Clifton <nickc@redhat.com>
1498 * version.m4: Change to 2.36.50.
1499 * configure: Regenerate.
1500 * po/bfd.pot: Regenerate.
1502 2021-01-09 Nick Clifton <nickc@redhat.com>
1504 * 2.36 release branch crated.
1506 2021-01-08 H.J. Lu <hongjiu.lu@intel.com>
1508 * elfxx-x86.c (_bfd_x86_elf_link_setup_gnu_properties): Also set
1509 LAM_U57 when setting LAM_U48.
1511 2021-01-08 H.J. Lu <hongjiu.lu@intel.com>
1515 * elflink.c (elf_fixup_link_order): Verify that fixing up
1516 SHF_LINK_ORDER doesn't increase the output section size.
1518 2021-01-09 Alan Modra <amodra@gmail.com>
1520 * configure: Regenerate.
1522 2021-01-07 Samuel Thibault <samuel.thibault@gnu.org>
1524 * configure: Regenerate.
1526 2021-01-07 H.J. Lu <hongjiu.lu@intel.com>
1529 * aix386-core.c (core_aix386_vec): Initialize
1530 keep_unused_section_symbol to TARGET_KEEP_UNUSED_SECTION_SYMBOLS.
1531 * aout-target.h (MY (vec)): Likewise.
1532 * binary.c (binary_vec): Likewise.
1533 * cisco-core.c (core_cisco_be_vec): Likewise.
1534 (core_cisco_le_vec): Likewise.
1535 * coff-alpha.c (alpha_ecoff_le_vec): Likewise.
1536 * coff-i386.c (TARGET_SYM): Likewise.
1537 (TARGET_SYM_BIG): Likewise.
1538 * coff-ia64.c (TARGET_SYM): Likewise.
1539 * coff-mips.c (mips_ecoff_le_vec): Likewise.
1540 (mips_ecoff_be_vec): Likewise.
1541 (mips_ecoff_bele_vec): Likewise.
1542 * coff-rs6000.c (rs6000_xcoff_vec): Likewise.
1543 (powerpc_xcoff_vec): Likewise.
1544 * coff-sh.c (sh_coff_small_vec): Likewise.
1545 (sh_coff_small_le_vec): Likewise.
1546 * coff-tic30.c (tic30_coff_vec): Likewise.
1547 * coff-tic54x.c (tic54x_coff0_vec): Likewise.
1548 (tic54x_coff0_beh_vec): Likewise.
1549 (tic54x_coff1_vec): Likewise.
1550 (tic54x_coff1_beh_vec): Likewise.
1551 (tic54x_coff2_vec): Likewise.
1552 (tic54x_coff2_beh_vec): Likewise.
1553 * coff-x86_64.c (TARGET_SYM): Likewise.
1554 (TARGET_SYM_BIG): Likewise.
1555 * coff64-rs6000.c (rs6000_xcoff64_vec): Likewise.
1556 (rs6000_xcoff64_aix_vec): Likewise.
1557 * coffcode.h (CREATE_BIG_COFF_TARGET_VEC): Likewise.
1558 (CREATE_BIGHDR_COFF_TARGET_VEC): Likewise.
1559 (CREATE_LITTLE_COFF_TARGET_VEC): Likewise.
1560 * elfxx-target.h (TARGET_BIG_SYM): Likewise.
1561 (TARGET_LITTLE_SYM): Likewise.
1562 * hppabsd-core.c (core_hppabsd_vec): Likewise.
1563 * hpux-core.c (core_hpux_vec): Likewise.
1564 * i386msdos.c (i386_msdos_vec): Likewise.
1565 * ihex.c (ihex_vec): Likewise.
1566 * irix-core.c (core_irix_vec): Likewise.
1567 * mach-o-target.c (TARGET_NAME): Likewise.
1568 * mmo.c (mmix_mmo_vec): Likewise.
1569 * netbsd-core.c (core_netbsd_vec): Likewise.
1570 * osf-core.c (core_osf_vec): Likewise.
1571 * pdp11.c (MY (vec)): Likewise.
1572 * pef.c (pef_vec): Likewise.
1573 (pef_xlib_vec): Likewise.
1574 * plugin.c (plugin_vec): Likewise.
1575 * ppcboot.c (powerpc_boot_vec): Likewise.
1576 * ptrace-core.c (core_ptrace_vec): Likewise.
1577 * sco5-core.c (core_sco5_vec): Likewise.
1578 * som.c (hppa_som_vec): Likewise.
1579 * srec.c (srec_vec): Likewise.
1580 (symbolsrec_vec): Likewise.
1581 * tekhex.c (tekhex_vec): Likewise.
1582 * trad-core.c (core_trad_vec): Likewise.
1583 * verilog.c (verilog_vec): Likewise.
1584 * vms-alpha.c (alpha_vms_vec): Likewise.
1585 * vms-lib.c (alpha_vms_lib_txt_vec): Likewise.
1586 * wasm-module.c (wasm_vec): Likewise.
1587 * xsym.c (sym_vec): Likewise.
1588 * elf.c (ignore_section_sym): Return TRUE if BSF_SECTION_SYM_USED
1590 (elf_map_symbols): Don't include ignored section symbols.
1591 * elfcode.h (elf_slurp_symbol_table): Also set
1592 BSF_SECTION_SYM_USED on STT_SECTION symbols.
1593 * elflink.c (bfd_elf_final_link): Generated section symbols only
1594 when emitting relocations or reqired.
1595 * elfxx-x86.h (TARGET_KEEP_UNUSED_SECTION_SYMBOLS): New.
1596 * syms.c (BSF_SECTION_SYM_USED): New.
1597 * targets.c (TARGET_KEEP_UNUSED_SECTION_SYMBOLS): New.
1598 (bfd_target): Add keep_unused_section_symbols.
1599 (bfd_keep_unused_section_symbols): New.
1600 * bfd-in2.h: Regenerated.
1602 2021-01-07 Nick Clifton <nickc@redhat.com>
1605 * bfdio.c (_bfd_real_fopen): For Win32 convert relative paths to
1606 absolute paths and check to see if they are longer than MAX_PATH.
1608 2021-01-07 Philipp Tomsich <prt@gnu.org>
1610 * elfxx-riscv.c (riscv_std_z_ext_strtab): Added zihintpause.
1612 2021-01-07 Claire Xenia Wolf <claire@symbioticeda.com>
1613 Jim Wilson <jimw@sifive.com>
1614 Andrew Waterman <andrew@sifive.com>
1615 Maxim Blinov <maxim.blinov@embecosm.com>
1616 Kito Cheng <kito.cheng@sifive.com>
1617 Nelson Chu <nelson.chu@sifive.com>
1619 * elfxx-riscv.c (riscv_std_z_ext_strtab): Added zba, zbb and zbc.
1621 2021-01-06 H.J. Lu <hongjiu.lu@intel.com>
1623 * elf32-bfin.c (bfin_check_relocs): Check bfd_link_hash_indirect.
1624 (bfinfdpic_check_relocs): Likewise.
1626 2021-01-06 Alan Modra <amodra@gmail.com>
1628 * elf32-score.c (s3_bfd_score_info_to_howto): Report an error
1630 * elf32-score7.c (s7_bfd_score_info_to_howto): Likewise.
1632 2021-01-06 Alan Modra <amodra@gmail.com>
1634 * config.bfd (sparc-*-solaris2*): Add sparc_elf32_vec.
1635 (sparc64-*-solaris2*): Add sparc_elf64_vec and
1638 2021-01-06 Marcus Comstedt <marcus@mc.pp.se>
1640 * config.bfd: Added targets riscv64be*-*-*, riscv32be*-*-* and
1641 riscvbe*-*-*. Also added riscv_elf[32|64]_be_vec.
1642 * configure.ac: Handle riscv_elf[32|64]_be_vec.
1643 * configure: Regenerate.
1644 * elfnn-riscv.c: Include <limits.h> and define CHAR_BIT for
1645 riscv_is_insn_reloc.
1646 (riscv_get_insn): RISC-V instructions are always little endian, but
1647 bfd_get may be used for big-endian, so add new riscv_get_insn to handle
1649 (riscv_put_insn): Likewsie.
1650 (riscv_is_insn_reloc): Check if we are relocaing an instruction.
1651 (perform_relocation): Call riscv_is_insn_reloc to decide if we should
1652 use riscv_[get|put]_insn or bfd_[get|put].
1653 (riscv_zero_pcrel_hi_reloc): Use riscv_[get|put]_insn, bfd_[get|put]l32
1654 or bfd_[get|put]l16 for code.
1655 (riscv_elf_relocate_section): Likewise.
1656 (riscv_elf_finish_dynamic_symbol): Likewise.
1657 (riscv_elf_finish_dynamic_sections): Likewise.
1658 (_bfd_riscv_relax_call): Likewise.
1659 (_bfd_riscv_relax_lui): Likewise.
1660 (_bfd_riscv_relax_align): Likewise.
1661 (_bfd_riscv_relax_pc): Likewise.
1662 (riscv_elf_object_p): Handled for big endian.
1663 (TARGET_BIG_SYM, TARGET_BIG_NAME): Defined.
1664 * targets.c: Add riscv_elf[32|64]_be_vec.
1665 (_bfd_target_vector): Likewise.
1667 2021-01-05 Alan Modra <amodra@gmail.com>
1669 * elflink.c (bfd_elf_link_record_dynamic_symbol): Handle no_export
1670 for relocatable executable.
1672 2021-01-05 Alan Modra <amodra@gmail.com>
1674 * vms-alpha.c (_bfd_vms_slurp_egsd): Read flags after size check.
1676 2021-01-05 Nelson Chu <nelson.chu@sifive.com>
1678 * elfnn-riscv.c (allocate_dynrelocs): When we are generating pde,
1679 make sure gp symbol is output as a dynamic symbol.
1681 2021-01-04 H.J. Lu <hongjiu.lu@intel.com>
1684 * elflink.c (compare_link_order): Place unordered sections before
1686 (elf_fixup_link_order): Add a link info argument. Allow mixed
1687 ordered and unordered input sections for non-relocatable link.
1688 Sort the consecutive bfd_indirect_link_order sections with the
1689 same pattern. Change the offsets of the bfd_indirect_link_order
1691 (bfd_elf_final_link): Pass info to elf_fixup_link_order.
1692 * section.c (bfd_section): Add pattern.
1693 (BFD_FAKE_SECTION): Initialize pattern to NULL.
1694 * bfd-in2.h: Regenerated.
1696 2021-01-04 Alexander Fedotov <alfedotov@gmail.com>
1698 * elf32-arm.c (elf32_arm_print_private_bfd_data): Prefix hex value
1699 of private flags with 0x.
1700 * elfnn-aarch64.c (elfNN_aarch64_print_private_bfd_data): Likewise.
1702 2021-01-04 Alan Modra <amodra@gmail.com>
1705 * elflink.c (elf_link_input_bfd): Use the file base name in
1706 linker generated STT_FILE symbols.
1708 2021-01-04 Nelson Chu <nelson.chu@sifive.com>
1710 * elfxx-riscv.c (riscv_compare_subsets): Removed static.
1711 * elfxx-riscv.h: Add declaration.
1712 * elfnn-riscv.c (riscv_merge_multi_letter_ext): Use
1713 riscv_compare_subsets to check the orders.
1714 (riscv_skip_prefix): Removed.
1715 (riscv_prefix_cmp): Removed.
1717 2021-01-04 Alan Modra <amodra@gmail.com>
1720 * elfxx-riscv.c (riscv_parse_prefixed_ext): Free subset after
1721 calculating subset version length.
1723 2021-01-01 Nicolas Boulenguez <nicolas@debian.org>
1725 * xcofflink.c: Correct spelling in comments.
1727 2021-01-01 Alan Modra <amodra@gmail.com>
1729 Update year range in copyright notice of all files.
1731 For older changes see ChangeLog-2020
1733 Copyright (C) 2021 Free Software Foundation, Inc.
1735 Copying and distribution of this file, with or without modification,
1736 are permitted in any medium without royalty provided the copyright
1737 notice and this notice are preserved.
1743 version-control: never