]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - bfd/ChangeLog
inflow.c: Do not leak tty.
[thirdparty/binutils-gdb.git] / bfd / ChangeLog
CommitLineData
75f03fa7
NC
12021-05-14 Nelson Chu <nelson.chu@sifive.com>
2
3 * elfnn-riscv.c (riscv_resolve_pcrel_lo_relocs): Check the values
4 of %pcrel_hi, before and after adding the addend. Make sure the
5 value won't be changed, otherwise, report dangerous error.
6
7671eff8
NC
72021-05-13 Nelson Chu <nelson.chu@sifive.com>
8
9 * elfxx-riscv.c (check_implicit_always): The check_func, always add
10 the implicit subset without checking.
11 (check_implicit_for_i): The check_func for i, only add zicsr and
12 zifencei when the version of i less than 2.1.
13 (struct riscv_implicit_subset): Record the subsets and their
14 corresponding implicit subsets.
15 (riscv_implicit_subsets): Table records all implicit informations.
16 (riscv_parse_add_implicit_subsets): Updated and add implicit subsets
17 according to riscv_implicit_subsets. Remove the redundant codes.
18
4863cddb
AM
192021-05-13 Alan Modra <amodra@gmail.com>
20
21 PR 27858
22 * elf32-sh.c (sh_elf_info_to_howto): Correct check for last valid
23 reloc howto.
24
f0bbe8ba
LM
252021-05-12 Luis Machado <luis.machado@linaro.org>
26
27 * elf-bfd.h (elfcore_write_aarch_mte): New prototype.
28 * elf.c (elfcore_grok_aarch_mte, elfcore_write_aarch_mte): New
29 functions.
30 (elfcore_grok_note): Handle notes of type NT_ARM_TAGGED_ADDR_CTRL.
31 (elfcore_write_register_note): Handle MTE notes.
32
8ca5537b
AM
332021-05-11 Alan Modra <amodra@gmail.com>
34
35 PR 27844
36 * pdp11.c (aout_get_external_symbols): Clear first four bytes of
37 strings array, not just the first byte.
38 * aoutx.h (aout_get_external_symbols): Likewise.
39
b397aef4
L
402021-05-10 H.J. Lu <hongjiu.lu@intel.com>
41
42 PR binutils/27839
43 * simple.c (bfd_simple_get_relocated_section_contents): Remove
44 strayed fprintf.
45
23182ac0
NC
462021-05-10 Nick Clifton <nickc@redhat.com>
47
48 PR 27839
49 * simple.c (simple_dummy_add_to_set): New function.
50 (simple_dummy_constructor): New function.
51 (simple_dummy_multiple_common): New function.
52 (bfd_simple_get_relocated_section_contents): Zero out the
53 callbacks structure, and then set the add_to_set, constructor and
54 multiple_common fields.
55
5b45e89f
DD
562021-05-10 Dimitar Dimitrov <dimitar@dinux.eu>
57
58 * elf32-pru.c (elf_backend_can_gc_sections): Define as 1.
59
cf758b39
MF
602021-05-08 Mike Frysinger <vapier@gentoo.org>
61
62 * doc/Makefile.am (html-local, bfd/index.html): New targets.
63 * doc/Makefile.in: Regenerate.
64
2faf902d
MF
652021-05-08 Mike Frysinger <vapier@gentoo.org>
66
67 * doc/Makefile.am (AM_MAKEINFOFLAGS): Define.
68 * doc/Makefile.in: Regenerate.
69
97834047
CC
702021-05-07 Clément Chigot <clement.chigot@atos.net>
71
72 * coff-rs6000.c (xcoff_dwsect_names): Add new DWARF
73 sections.
74 * coffgen.c (coff_pointerize_aux): Handle C_DWARF.
75 (coff_print_symbol): Likewise.
76 * libxcoff.h (XCOFF_DWSECT_NBR_NAMES): Update.
77
17c6c3b9
JB
782021-05-07 Jan Beulich <jbeulich@suse.com>
79
80 * elf64-x86-64.c (x86_64_elf_howto_table): Set src_mask fields
81 to zero.
82
a41513ef
AM
832021-05-07 Alan Modra <amodra@gmail.com>
84
85 * bfd-in2.h: Regenerate.
86 * libbfd.h: Regenerate.
87
284a1309
SH
882021-05-06 Stafford Horne <shorne@gmail.com>
89
90 PR 27746
91 * elf32-or1k.c (PLT_ENTRY_SIZE_LARGE, PLT_MAX_INSN_COUNT,
92 OR1K_ADD, OR1K_ORI): New macros to help with plt creation.
93 (elf_or1k_link_hash_table): New field plt_count.
94 (elf_or1k_link_hash_entry): New field plt_index.
95 (elf_or1k_plt_entry_size): New function.
96 (or1k_write_plt_entry): Update to support variable size PLTs.
97 (or1k_elf_finish_dynamic_sections): Use new or1k_write_plt_entry
98 API.
99 (or1k_elf_finish_dynamic_symbol): Update to write large PLTs
100 when needed.
101 (allocate_dynrelocs): Use elf_or1k_plt_entry_size to account for
102 PLT size.
103
3c3de29b
SH
1042021-05-06 Stafford Horne <shorne@gmail.com>
105
106 PR 21464
107 * elf32-or1k.c (or1k_elf_relocate_section): Relax R_OR1K_GOT16
108 overflow check if we have R_OR1K_GOT_AHI16 followed by
109 R_OR1K_GOT16.
110
0b3e14c9
SH
1112021-05-06 Stafford Horne <shorne@gmail.com>
112
113 PR 21464
114 * bfd-in2.h: Add BFD_RELOC_OR1K_GOT_AHI16 relocation.
115 * elf32-or1k.c (or1k_elf_howto_table, or1k_reloc_map): Likewise.
116 (or1k_final_link_relocate, or1k_elf_relocate_section,
117 or1k_elf_check_relocs): Likewise.
118 * libbfd.h (bfd_reloc_code_real_names): Likewise.
119 * reloc.c: Likewise.
120
a76ef689
SH
1212021-05-06 Stafford Horne <shorne@gmail.com>
122
123 PR 27624
124 * elf32-or1k.c (or1k_elf_adjust_dynamic_symbol): Change
125 condition used to cleanup plt entries to cleanup forced local
126 entries.
127
4467df35
L
1282021-05-05 H.J. Lu <hongjiu.lu@intel.com>
129
130 PR ld/27825
131 * elflink.c (elf_link_output_symstrtab): Always append ".COUNT"
132 to local symbols.
133
c38c6234
AM
1342021-05-05 Alan Modra <amodra@gmail.com>
135
136 * vms-lib.c (vms_traverse_index): Account for vms_kbn size when
137 sanity checking keylen.
138
bd6d8601
NC
1392021-05-04 Nick Clifton <nickc@redhat.com>
140
141 * libbfd.c (bfd_malloc): Provide some documenation. Treat a size
142 of 0 as 1.
143 (bfd_realloc): Likewise.
144 (bfd_zmalloc): Likewise.
145 (bfd_realloc_or_free): Provide some documentation. Treat a size
146 of 0 as a request to free.
147 * libbfd-in.h (bfd_realloc): Remove prototype.
148 (bfd_realloc_or_free): Remove prototype.
149 (bfd_zmalloc): Remove prototype.
150 * libbfd.h: Regenerate.
151
4c398cc0
JB
1522021-05-03 Jan Beulich <jbeulich@suse.com>
153
154 * elf32-i386.c (elf_howto_table): Switch all 32-bit relocs to
155 complain_overflow_dont.
156 * elf64-x86-64.c (x86_64_elf_howto_table): Switch all 64-bit
157 relocs to complain_overflow_dont.
158
49160308
AM
1592021-05-03 Alan Modra <amodra@gmail.com>
160
161 * elf32-ppc.c (allocate_dynrelocs): Keep dyn_relocs for undefweak
162 symbols when -z dynamic-undefined-weak or when there are no
163 dynamic relocs in read-only sections and -z nodynamic-undefined-weak
164 is not given.
165 * elf64-ppc.c (allocate_dynrelocs): Likewise.
166
b2936612
AM
1672021-05-03 Alan Modra <amodra@gmail.com>
168
169 * elf32-ppc.c (allocate_dynrelocs): Call ensure_undef_dynamic for
170 weak undefined symols that only appear on PLT relocs.
171 * elf64-ppc.c (allocate_dynrelocs): Likewise.
172
337d0bf8
AM
1732021-05-03 Alan Modra <amodra@gmail.com>
174
175 PR 27755
176 * elf32-ppc.c (ppc_elf_inline_plt): Do increment rel in loop.
177
5072b52d
AM
1782021-05-03 Alan Modra <amodra@gmail.com>
179
180 * elf32-csky.c (is_mapping_symbol_name): New function.
181 (csky_elf_is_target_special_symbol): Likewise.
182 (csky_elf_maybe_function_sym): Likewise.
183 (bfd_elf32_bfd_is_target_special_symbol): Define.
184 (elf_backend_maybe_function_sym): Define.
185
d1fbc3ba
NC
1862021-04-30 Nick Clifton <nickc@redhat.com>
187
188 PR 27801
189 * mach-o.c (bfd_mach_o_core_fetch_environment): Use bfd_get_32 to
190 read 32-bit value.
191
9f84cb38
NC
1922021-04-30 Nick Clifton <nickc@redhat.com>
193
194 PR 27799
195 * elf32-xtensa.c (elf_xtensa_grok_prstatus): Check for core notes
196 that are too small.
197
6cb40a67
NC
1982021-04-30 Nick Clifton <nickc@redhat.com>
199
200 PR 27797
201 * libbfd.c (bfd_realloc_or_free): Do not free a pointer than has
202 been realloc'ed to size 0.
203
bceb87ef
NC
2042021-04-30 Nick Clifton <nickc@redhat.com>
205
206 PR 27795
207 * coff-rs6000.c (_bfd_xcoff_read_ar_hdr): Check for invalid name
208 lengths.
209
09e40e44
NC
2102021-04-29 Nick Clifton <nickc@redhat.com>
211
212 PR 27793
213 * som.c (som_slurp_symbol_table): Assign symbols without any scope
214 to the undefined section.
215 (som_decode_symclass): Check for a missing symbol section.
216 * syms.c (bfd_decode_symclass): Likewise.
217
063e75c9
NC
2182021-04-29 Nick Clifton <nickc@redhat.com>
219
220 PR 27792
221 * som.c (som_slurp_string_table): Place a terminating NUL byte at
222 the end of the table.
223 (som_slurp_symbol_table): Check for an over-large offset into the
224 string string table.
225
24aebc79
NC
2262021-04-28 Nick Clifton <nickc@redhat.com>
227
228 * elf.c (_bfd_elf_maybe_function_sym): Do not accept annobin
229 symbols as potential function symbols.
230 * elfnn-aarch64.c (elfNN_aarch64_maybe_function_sym): Likewise.
231 * elf64-ppc.c (ppc64_elf_maybe_function_sym): Likewise.
232 * elf32-arm.c (elf32_arm_maybe_function_sym): Likewise.
233
3955e346
MF
2342021-04-26 Mike Frysinger <vapier@gentoo.org>
235
236 * elf-bfd.h: Include stdlib.h.
237
a7664973
JB
2382021-04-26 Jan Beulich <jbeulich@suse.com>
239
240 * elf32-i386.c (elf_howto_table): Switch R_386_PC16 to
241 complain_overflow_signed.
242 * elf64-x86-64.c (x86_64_elf_howto_table): Switch R_X86_64_PC16
243 to complain_overflow_signed.
244
f5e98b7d
EB
2452021-04-23 Eric Botcazou <ebotcazou@adacore.com>
246
247 * elf.c (special_sections_p): Add .persistent.bss.
248
c21346c5
JB
2492021-04-23 Jan Beulich <jbeulich@suse.com>
250
251 * elf32-i386.c (elf_howto_table): R_386_TLS_DESC_CALL has zero
252 size field.
253 * elf64-x86-64.c (x86_64_elf_howto_table): R_X86_64_TLSDESC_CALL
254 has zero size field.
255
bdd2aaf6
CC
2562021-04-22 Clément Chigot <clement.chigot@atos.net>
257
258 * hash.c (struct bfd_strtab_hash): Remove xcoff field.
259 Add length_field_size field.
260 (_bfd_stringtab_init): Change prototype.
261 Adapt to new length_field_size.
262 (_bfd_xcoff_stringtab_init): Likewise.
263 (_bfd_stringtab_add): Likewise.
264 (_bfd_stringtab_emit): Likewise.
265 * libbfd-in.h (_bfd_xcoff_stringtab_init):
266 Change prototype.
267 * libbfd.h: Regenerate.
268 * xcofflink.c (_bfd_xcoff_bfd_link_hash_table_create):
269 Call _bfd_xcoff_stringtab_init with isxcoff64 value.
270
b11b2969
CC
2712021-04-22 Clément Chigot <clement.chigot@atos.net>
272
273 * coff-rs6000.c (_bfd_xcoff_swap_aux_in): Add errors for
274 unsupported storage class or auxialiry entries.
275 Improve and adapt to new aux structures.
276 Add C_DWARF support.
277 (_bfd_xcoff_swap_aux_out): Likewise.
278 * coff64-rs6000.c (_bfd_xcoff64_swap_aux_in): Likewise.
279 (_bfd_xcoff64_swap_aux_out): Likewise.
280
18e9a809
EZ
2812021-04-21 Eli Zaretskii <eliz@gnu.org>
282
283 PR 27760
284 * peXXigen.c (_bfd_XX_print_private_bfd_data_common): Add display
285 of IMAGE_FILE_REMOVABLE_RUN_FROM_SWAP,
286 IMAGE_FILE_NET_RUN_FROM_SWAP and IMAGE_FILE_UP_SYSTEM_ONLY flags.
287 Decode the contents of the DllCharacteristics field.
288
33fe00c1
NC
2892021-04-21 Nick Clifton <nickc@redhat.com>
290
291 PR 27759
292 * srec.c (srec_read_section): Replace assertions with error
293 returns.
294
c5df7e44
CC
2952021-04-20 Clément Chigot <clement.chigot@atos.net>
296
297 PR binutils/21700
298 * reloc.c (BFD_RELOC_PPC_NEG): New relocation.
299 * bfd-in2.h: Regenerate.
300 * libbfd.h: Regenerate.
301 * coff-rs6000.c (_bfd_xcoff_reloc_type_lookup): Add
302 BFD_RELOC_PPC_NEG handler.
303 (xcoff_reloc_type_neg): Correctly substract addend.
304 * coff64-rs6000.c (xcoff64_howto_table): Add R_NEG_32
305 howto.
306 (xcoff64_rtype2howto): Add handler for R_NEG_32.
307 (xcoff64_reloc_type_lookup): Add BFD_RELOC_PPC_NEG handler.
308 * xcofflink.c (xcoff_need_ldrel_p): Check output section
309 for R_POS-like relocations. New argument added.
310 (xcoff_mark): Adapt to new xcoff_need_ldrel_p argument.
311 (xcoff_link_input_bfd): Likewise.
312
6f8f6017
AM
3132021-04-16 Alan Modra <amodra@gmail.com>
314
315 PR 27567
316 * coffcode.h (styp_to_sec_flags): Use an unsigned long styp_flags.
317 (coff_write_object_contents): Pass bfd to COFF_ENCODE_ALIGNMENT,
318 ignore alignment checks when return is false. Formatting.
319
ddfe525f
NC
3202021-04-15 Nelson Chu <nelson.chu@sifive.com>
321
322 PR27584
323 * elfnn-riscv.c (riscv_elf_is_target_special_symbol): Added to
324 omit local and empty symbols since they usually generated to
325 mark the auipc instructions.
326
f6a1f957
LX
3272021-04-15 Lifang Xia<lifang_xia@c-sky.com>
328
329 * elf32-csky.c (csky_elf_howto_table)
330 <R_CKCORE_PCREL_IMM16BY2>: Set special_function to
331 bfd_elf_generic_reloc.
332 <R_CKCORE_PCREL_IMM16BY4>: Likewise.
333 <R_CKCORE_PCREL_IMM10BY4>: Likewise.
334 <R_CKCORE_PCREL_IMM18BY2>: Likewise.
335 <R_CKCORE_PCREL_FLRW_IMM8BY4>: Likewise.
336
9917b559
L
3372021-04-14 H.J. Lu <hongjiu.lu@intel.com>
338
339 PR binutils/27708
340 * elf.c (assign_file_positions_for_non_load_sections): Set
341 p_memsz to p_filesz for the loadable PT_NOTE segment.
342
5f47741b
FC
3432021-04-14 Frederic Cambus <fred@statdns.com>
344
345 * elf.c (elfcore_grok_netbsd_note): Remove unneeded #ifdef
346 checks for NT_NETBSDCORE_AUXV and NT_NETBSDCORE_LWPSTATUS.
347
8985b74b
AM
3482021-04-14 Alan Modra <amodra@gmail.com>
349
350 PR 27631
351 * elf32-metag.c (elf_metag_relocate_section): Don't use &hh->elf
352 when hh might be NULL, test for NULL first.
353
c9f9a78d
AM
3542021-04-14 Alan Modra <amodra@gmail.com>
355
356 PR 27630
357 * elf32-arm.c (elf32_arm_size_stubs): Don't use &hash->root when
358 hash might be NULL, cast instead.
359
d2f1139e
CC
3602021-04-13 Clément Chigot <clement.chigot@atos.net>
361
362 * xcofflink.c (xcoff_link_check_ar_symbols): Update esym earlier.
363
e3839c10
NC
3642021-04-13 Nelson Chu <nelson.chu@sifive.com>
365
366 * elfnn-riscv.c (riscv_version_mismatch): Do not report the warning
367 when the version of input or output is RISCV_UNKNOWN_VERSION, since
368 the extension is added implicitly.
369 * elfxx-riscv.c: Updated the obsolete comments.
370 (RISCV_UNKNOWN_VERSION): Moved to elfxx-riscv.h.
371 * elfxx-riscv.h (RISCV_UNKNOWN_VERSION): Added.
372
43e05cd4
AM
3732021-04-12 Alan Modra <amodra@gmail.com>
374
375 * elf-bfd.h (ENABLE_CHECKING): Define.
376 (elf_link_hash_lookup): Abort if wrong type of hash table.
377 * configure.ac (--enable-checking): Add support.
378 * config.in: Regenerate.
379 * configure: Regenerate.
380
2cc15b10
AM
3812021-04-12 Alan Modra <amodra@gmail.com>
382
383 * elf-bfd.h (is_elf_hash_table): Convert macro to inline function.
384 (elf_link_hash_lookup, elf_link_hash_traverse): Likewise.
385 (elf_hash_table, elf_hash_table_id): Likewise.
386 * elf32-arm.c (elf32_arm_setup_section_lists): Delete redundant
387 is_elf_hash_table check.
388 * elf32-csky.c (elf32_csky_setup_section_lists): Likewise.
389 * elf32-hppa.c (clobber_millicode_symbols): Correct param types.
390 * elf64-alpha.c (elf64_alpha_output_extsym): Likewise.
391 * elfnn-ia64.c (elfNN_ia64_global_dyn_info_free: Likewise.
392 (elfNN_ia64_global_dyn_sym_thunk: Likewise.
393 * elf64-ia64-vms.c (elf64_ia64_global_dyn_info_free): Likewise.
394 (elf64_ia64_global_dyn_sym_thunk): Likewise.
395 (elf64_vms_link_add_object_symbols): Pass base type of hash table
396 to is_elf_hash_table.
397 * elflink.c (_bfd_elf_dynamic_symbol_p): Likewise.
398 (_bfd_elf_symbol_refs_local_p, _bfd_elf_add_dynamic_entry): Likewise.
399 (_bfd_elf_strip_zero_sized_dynamic_sections): Likewise.
400 (_bfd_elf_link_check_relocs, elf_link_add_object_symbols): Likewise.
401 (bfd_elf_final_link): Likewise.
402 * elfnn-aarch64.c (elfNN_aarch64_setup_section_lists): Likewise.
403 * elf64-ppc.c (ppc64_elf_set_toc): Likewise. Use bfd_link_hash_lookup.
404
b585e899
AM
4052021-04-12 Alan Modra <amodra@gmail.com>
406
407 * elf-bfd.h (struct elf_backend_data): Return bfd_link_hash_entry*
408 from elf_backend_archive_symbol_lookup.
409 (_bfd_elf_archive_symbol_lookup): Return bfd_link_hash_entry*.
410 * elf64-ppc.c (ppc64_elf_archive_symbol_lookup): Likewise. Check
411 we have a ppc_hash_table before accessing ppc_link_hash_entry
412 fields.
413 * elflink.c (_bfd_elf_archive_symbol_lookup): Return
414 bfd_link_hash_entry*.
415 (elf_link_add_archive_symbols): Adjust to suit.
416
f5b10973
NC
4172021-04-12 Nelson Chu <nelson.chu@sifive.com>
418
419 * elfxx-riscv.c (riscv_parse_std_ext): Fixed the wrong versions of
420 i-ext when expanding g-ext.
421
f0bae255
NC
4222021-04-12 Nelson Chu <nelson.chu@sifive.com>
423
424 * elfxx-riscv.c (riscv_ext_dont_care_version): Removed.
425 (riscv_parse_add_subset): Always add the implicit extensions, even if
426 their versions are RISCV_UNKNOWN_VERSION.
427 (riscv_parse_std_ext): Delay to add i-ext as the implicit extension
428 in the riscv_parse_add_implicit_subsets. Besides, add g-ext as the
429 implicit extension after it has been expanded.
430 (riscv_parse_add_implicit_subsets): Updated.
431
e601909a
NC
4322021-04-12 Nelson Chu <nelson.chu@sifive.com>
433
434 * elfxx-riscv.c (riscv_std_z_ext_strtab): Moved forward.
435 (riscv_std_s_ext_strtab): Likewise.
436 (riscv_std_h_ext_strtab): Likewise.
437 (riscv_std_zxm_ext_strtab): Added for the zxm prefix.
438 (enum riscv_prefix_ext_class): Moved forward and renamed from
439 riscv_isa_ext_class. Reorder them according to the parsing order,
440 since the enum values are used to check the orders in the
441 riscv_compare_subsets.
442 (struct riscv_parse_prefix_config): Moved forward and renamed from
443 riscv_parse_config_t. Also removed the ext_valid_p field, the
444 related functions are replaced by riscv_valid_prefixed_ext.
445 (parse_config): Moved forward and updated. The more letters of the
446 prefix string, the more forward it must be defined. Otherwise, we
447 will get the wrong mapping when using strncmp in riscv_get_prefix_class.
448 (riscv_get_prefix_class): Moved forward. Support to parse the
449 multi-letter prefix, like zxm.
450 (riscv_known_prefixed_ext): New function, check if the prefixed
451 extension is supported according to the right riscv_std_*_ext_strtab.
452 (riscv_valid_prefixed_ext): New function, used to replace the
453 riscv_ext_*_valid_p functions.
454 (riscv_init_ext_order): Do not set the values for prefix keywords
455 since they may have multiple letters for now.
456 (riscv_compare_subsets): Set the order values of prefix keywords
457 to negative numbers according to the riscv_prefix_ext_class.
458 (riscv_parse_std_ext): Call riscv_get_prefix_class to see if we
459 have parsed the prefixed extensions.
460 (riscv_parse_prefixed_ext): Updated and removed the parameter config.
461 Report error when the prefix is unknown.
462 (riscv_parse_subset): Do not parse the prefixed extensions according
463 to the orders in the parse_config. Remove the confused message and
464 let riscv_parse_prefixed_ext to report the details.
465 * elfxx-riscv.h (enum riscv_isa_ext_class): Moved to elfxx-riscv.c.
466 (riscv_get_prefix_class): Removed to static.
467
eec8bf7e
MF
4682021-04-08 Mike Frysinger <vapier@gentoo.org>
469
470 * configure.ac (ACX_BUGURL): Use https://.
471 * configure.com (COPY_TEXT): Likewise.
472 * configure: Regenerate.
473
83c79df8
AM
4742021-04-05 Alan Modra <amodra@gmail.com>
475
476 * configure.ac: Don't check for long long or long double type.
477 Don't check for alloca.h, limits.h, stddef.h, stdlib.h, string.h,
478 strings.h, time.h, wchar.h, wctype.h or sys/time.h. Don't check
479 for strtoull, free, malloc, realloc, getenv, strstr, snprintf,
480 vsnprintf, strlen or setitimer. Sort AC_CHECK_DECLS.
481 (AC_ISC_POSIX): Don't invoke.
482 (AC_HEADER_TIME, AC_HEADER_DIRENT, ACX_HEADER_STRING): Likewise.
483 * sysdep.h: Remove many HAVE_*_H checks and fallback declarations.
484 Do test HAVE_SYS_TYPES_H. Don't include sys/time.h. Reorder
485 header order as per automake AC_INCLUDES_DEFAULT.
486 * bfd-in.h: Include inttypes.h unconditionally.
487 * bfd.c (_bfd_doprnt, _bfd_doprnt_scan): Assume long long and
488 long double are available.
489 (bfd_scan_vma): Assume long long and strtoull are available.
490 * elflink.c: Include limits.h unconditionally.
491 * elfnn-riscv.c: Likewise.
492 * wasm-module.c: Likewise.
493 * hpux-core.c: Include dirent.h unconditionally.
494 * trad-core.c: Likewise.
495 * hosts/x86-64linux.h: Include stdlib.h unconditionally.
496 * peXXigen.c: Remove HAVE_WCHAR_H and HAVE_WCTYPE_H checks.
497 * elf32-m68hc1x.c: Don't include alloca-conf.h.
498 * elf64-hppa.c: Likewise.
499 * som.c: Likewise.
500 * wasm-module.c: Likewise.
501 * xsym.c: Likewise.
502 * bfd-in2.h: Regenerate.
503 * config.in: Regenerate.
504 * configure: Regenerate.
505
74edb473
TC
5062021-04-01 Tamar Christina <tamar.christina@arm.com>
507
508 PR ld/26659
509 * cofflink.c (_bfd_coff_generic_relocate_section): Ignore overflow.
510
e9b095a5
ML
5112021-04-01 Martin Liska <mliska@suse.cz>
512
513 * ecoff.c (strneq): Remove strneq and use startswith.
514 (_bfd_ecoff_slurp_armap): Likewise.
515
3f3328b8
ML
5162021-04-01 Martin Liska <mliska@suse.cz>
517
518 * elf-bfd.h (bfd_section_is_ctf): Use startswith function.
519 * elf.c (_bfd_elf_make_section_from_shdr): Likewise.
520 (elf_get_reloc_section): Likewise.
521 * elf32-arc.c (elf_arc_size_dynamic_sections): Likewise.
522 * elf32-m32r.c (m32r_elf_section_flags): Likewise.
523 * elf32-microblaze.c (microblaze_elf_size_dynamic_sections): Likewise.
524 * elf32-nds32.c (nds32_elf_size_dynamic_sections): Likewise.
525 (nds32_elf_relocate_section): Likewise.
526 (nds32_elf_action_discarded): Likewise.
527 (nds32_elf_check_relocs): Likewise.
528 (nds32_elf_section_flags): Likewise.
529 * elf32-or1k.c (or1k_elf_check_relocs): Likewise.
530 * elf32-ppc.c (ppc_elf_section_from_shdr): Likewise.
531 * elf32-rx.c (rx_table_find): Likewise.
532 (rx_table_map): Likewise.
533 * elf32-spu.c (spu_elf_backend_symbol_processing): Likewise.
534 (spu_elf_find_overlays): Likewise.
535 (needs_ovl_stub): Likewise.
536 (allocate_spuear_stubs): Likewise.
537 (build_spuear_stubs): Likewise.
538 (mark_overlay_section): Likewise.
539 (spu_elf_auto_overlay): Likewise.
540 (spu_elf_output_symbol_hook): Likewise.
541 * elf32-tilepro.c (tilepro_elf_size_dynamic_sections): Likewise.
542 * elf32-xtensa.c (xtensa_property_section_name): Likewise.
543 * elf64-ppc.c (ppc64_elf_section_flags): Likewise.
544 (ppc64_elf_relocate_section): Likewise.
545 * elflink.c (resolve_section): Likewise.
546 (UNARY_OP): Likewise.
547 (BINARY_OP_HEAD): Likewise.
548 (elf_link_input_bfd): Likewise.
549 * elfnn-riscv.c (riscv_elf_size_dynamic_sections): Likewise.
550 * elfxx-riscv.c (riscv_parse_subset): Likewise.
551 * elfxx-tilegx.c (tilegx_elf_size_dynamic_sections): Likewise.
552 * opncls.c (get_build_id): Likewise.
553
65c5fbd4
AM
5542021-03-31 Alan Modra <amodra@gmail.com>
555
556 PR 27671
557 * bfd-in.h: Don't poison FALSE or TRUE.
558 * bfd-in2.h: Regenerate.
559
0a1b45a2
AM
5602021-03-31 Alan Modra <amodra@gmail.com>
561
562 * sysdep.h: POISON_BFD_BOOLEAN: Define.
563 * aix5ppc-core.c, * aout-cris.c, * aout-ns32k.c, * aout-target.h,
564 * aoutx.h, * arc-got.h, * archive.c, * archive64.c, * archures.c,
565 * bfd-in.h, * bfd.c, * bfdwin.c, * binary.c, * cache.c,
566 * coff-alpha.c, * coff-arm.c, * coff-arm.h, * coff-bfd.c,
567 * coff-bfd.h, * coff-go32.c, * coff-i386.c, * coff-ia64.c,
568 * coff-mcore.c, * coff-mips.c, * coff-rs6000.c, * coff-sh.c,
569 * coff-stgo32.c, * coff-tic30.c, * coff-tic4x.c, * coff-tic54x.c,
570 * coff-x86_64.c, * coff-z80.c, * coff-z8k.c, * coff64-rs6000.c,
571 * coffcode.h, * coffgen.c, * cofflink.c, * compress.c,
572 * corefile.c, * cpu-aarch64.c, * cpu-aarch64.h, * cpu-alpha.c,
573 * cpu-arc.c, * cpu-arm.c, * cpu-arm.h, * cpu-avr.c, * cpu-bfin.c,
574 * cpu-bpf.c, * cpu-cr16.c, * cpu-cris.c, * cpu-crx.c,
575 * cpu-csky.c, * cpu-d10v.c, * cpu-d30v.c, * cpu-dlx.c,
576 * cpu-epiphany.c, * cpu-fr30.c, * cpu-frv.c, * cpu-ft32.c,
577 * cpu-h8300.c, * cpu-hppa.c, * cpu-i386.c, * cpu-ia64.c,
578 * cpu-iamcu.c, * cpu-ip2k.c, * cpu-iq2000.c, * cpu-k1om.c,
579 * cpu-l1om.c, * cpu-lm32.c, * cpu-m10200.c, * cpu-m10300.c,
580 * cpu-m32c.c, * cpu-m32r.c, * cpu-m68hc11.c, * cpu-m68hc12.c,
581 * cpu-m68k.c, * cpu-m9s12x.c, * cpu-m9s12xg.c, * cpu-mcore.c,
582 * cpu-mep.c, * cpu-metag.c, * cpu-microblaze.c, * cpu-mips.c,
583 * cpu-mmix.c, * cpu-moxie.c, * cpu-msp430.c, * cpu-mt.c,
584 * cpu-nds32.c, * cpu-nfp.c, * cpu-nios2.c, * cpu-ns32k.c,
585 * cpu-or1k.c, * cpu-pdp11.c, * cpu-pj.c, * cpu-powerpc.c,
586 * cpu-pru.c, * cpu-riscv.c, * cpu-rl78.c, * cpu-rs6000.c,
587 * cpu-rx.c, * cpu-s12z.c, * cpu-s390.c, * cpu-score.c,
588 * cpu-sh.c, * cpu-sparc.c, * cpu-spu.c, * cpu-tic30.c,
589 * cpu-tic4x.c, * cpu-tic54x.c, * cpu-tic6x.c, * cpu-tilegx.c,
590 * cpu-tilepro.c, * cpu-v850.c, * cpu-v850_rh850.c, * cpu-vax.c,
591 * cpu-visium.c, * cpu-wasm32.c, * cpu-xc16x.c, * cpu-xgate.c,
592 * cpu-xstormy16.c, * cpu-xtensa.c, * cpu-z80.c, * cpu-z8k.c,
593 * dwarf1.c, * dwarf2.c, * ecoff-bfd.h, * ecoff.c, * ecofflink.c,
594 * elf-attrs.c, * elf-bfd.h, * elf-eh-frame.c, * elf-hppa.h,
595 * elf-ifunc.c, * elf-m10200.c, * elf-m10300.c, * elf-nacl.c,
596 * elf-nacl.h, * elf-properties.c, * elf-s390-common.c,
597 * elf-s390.h, * elf-strtab.c, * elf-vxworks.c, * elf-vxworks.h,
598 * elf.c, * elf32-am33lin.c, * elf32-arc.c, * elf32-arm.c,
599 * elf32-arm.h, * elf32-avr.c, * elf32-avr.h, * elf32-bfin.c,
600 * elf32-bfin.h, * elf32-cr16.c, * elf32-cr16.h, * elf32-cris.c,
601 * elf32-crx.c, * elf32-csky.c, * elf32-csky.h, * elf32-d10v.c,
602 * elf32-d30v.c, * elf32-dlx.c, * elf32-epiphany.c,
603 * elf32-fr30.c, * elf32-frv.c, * elf32-ft32.c, * elf32-gen.c,
604 * elf32-h8300.c, * elf32-hppa.c, * elf32-hppa.h, * elf32-i386.c,
605 * elf32-ip2k.c, * elf32-iq2000.c, * elf32-lm32.c, * elf32-m32c.c,
606 * elf32-m32r.c, * elf32-m68hc11.c, * elf32-m68hc12.c,
607 * elf32-m68hc1x.c, * elf32-m68hc1x.h, * elf32-m68k.c,
608 * elf32-m68k.h, * elf32-mcore.c, * elf32-mep.c, * elf32-metag.c,
609 * elf32-metag.h, * elf32-microblaze.c, * elf32-mips.c,
610 * elf32-moxie.c, * elf32-msp430.c, * elf32-mt.c, * elf32-nds32.c,
611 * elf32-nios2.c, * elf32-nios2.h, * elf32-or1k.c, * elf32-pj.c,
612 * elf32-ppc.c, * elf32-ppc.h, * elf32-pru.c, * elf32-rl78.c,
613 * elf32-rx.c, * elf32-s12z.c, * elf32-s390.c, * elf32-score.c,
614 * elf32-score.h, * elf32-score7.c, * elf32-sh-relocs.h,
615 * elf32-sh.c, * elf32-sparc.c, * elf32-spu.c, * elf32-spu.h,
616 * elf32-tic6x.c, * elf32-tic6x.h, * elf32-tilegx.c,
617 * elf32-tilepro.c, * elf32-v850.c, * elf32-v850.h,
618 * elf32-vax.c, * elf32-visium.c, * elf32-wasm32.c,
619 * elf32-xc16x.c, * elf32-xgate.c, * elf32-xstormy16.c,
620 * elf32-xtensa.c, * elf32-z80.c, * elf64-alpha.c, * elf64-bpf.c,
621 * elf64-gen.c, * elf64-hppa.c, * elf64-ia64-vms.c,
622 * elf64-mips.c, * elf64-mmix.c, * elf64-nfp.c, * elf64-ppc.c,
623 * elf64-ppc.h, * elf64-s390.c, * elf64-sparc.c,
624 * elf64-tilegx.c, * elf64-x86-64.c, * elfcode.h,
625 * elfcore.h, * elflink.c, * elfn32-mips.c, * elfnn-aarch64.c,
626 * elfnn-ia64.c, * elfnn-riscv.c, * elfxx-aarch64.c,
627 * elfxx-aarch64.h, * elfxx-ia64.c, * elfxx-ia64.h,
628 * elfxx-mips.c, * elfxx-mips.h, * elfxx-riscv.c, * elfxx-riscv.h,
629 * elfxx-sparc.c, * elfxx-sparc.h, * elfxx-target.h,
630 * elfxx-tilegx.c, * elfxx-tilegx.h, * elfxx-x86.c, * elfxx-x86.h,
631 * format.c, * genlink.h, * hash.c, * i386aout.c, * i386lynx.c,
632 * i386msdos.c, * ihex.c, * libaout.h, * libbfd-in.h,
633 * libbfd.c, * libcoff-in.h, * libecoff.h, * libpei.h,
634 * libxcoff.h, * linker.c, * mach-o-aarch64.c, * mach-o-arm.c,
635 * mach-o-i386.c, * mach-o-x86-64.c, * mach-o.c, * mach-o.h,
636 * merge.c, * mmo.c, * netbsd.h, * opncls.c, * pc532-mach.c,
637 * pdp11.c, * pe-arm.c, * pe-i386.c, * pe-mcore.c, * pe-sh.c,
638 * pe-x86_64.c, * peXXigen.c, * pef.c, * pei-arm.c, * pei-i386.c,
639 * pei-ia64.c, * pei-mcore.c, * pei-sh.c, * pei-x86_64.c,
640 * peicode.h, * plugin.c, * plugin.h, * ppcboot.c, * reloc.c,
641 * reloc16.c, * rs6000-core.c, * section.c, * simple.c, * som.c,
642 * som.h, * srec.c, * stabs.c, * syms.c, * targets.c, * tekhex.c,
643 * verilog.c, * vms-alpha.c, * vms-lib.c, * vms-misc.c, * vms.h,
644 * wasm-module.c, * xcofflink.c, * xcofflink.h, * xsym.c,
645 * xsym.h: Replace bfd_boolean with bool, FALSE with false, and
646 TRUE with true throughout.
647 * bfd-in2.h: Regenerate.
648 * libbfd.h: Regenerate.
649 * libcoff.h: Regenerate.
650
ad9e24ad
AM
6512021-03-31 Alan Modra <amodra@gmail.com>
652
653 * bfd-in.h: Include stdbool.h.
654 (bfd_boolean): Define as bool
655 * bfd-in2.h: Regenerate.
656
3dfb1b6d
AM
6572021-03-31 Alan Modra <amodra@gmail.com>
658
659 * .gitignore: Delete bfd_stdint.h entry.
660 * Makefile.am (bfdinclude_HEADERS): Delete bfd_stdint.h.
661 (BUILD_HFILES, LOCAL_H_DEPS): Likewise.
662 * bfd-in.h: Include stdint.h in place of bfd_stdint.h.
663 * configure.ac: Don't invoke GCC_HEADER_STDINT.
664 * configure.com: Don't create bfd_stdint.h.
665 * Makefile.in: Regenerate.
666 * aclocal.m4: Regenerate.
667 * bfd-in2.h: Regenerate.
668 * config.in: Regenerate.
669 * configure: Regenerate.
670 * doc/Makefile.in: Regenerate.
671 * po/BLD-POTFILES.in: Regenerate.
672
57ae980e
AM
6732021-03-31 Alan Modra <amodra@gmail.com>
674
675 * bfd-in.h: Include string.h.
676 (LITMEMCPY, LITSTRCPY): Delete.
677 * bfd-in2.h: Regenerate.
678
d1cbe007
AM
6792021-03-30 Alan Modra <amodra@gmail.com>
680
681 * elflink.c (elf_link_add_object_symbols): Don't set h->indx
682 unless is_elf_hash_table.
683
63b4cc53
AM
6842021-03-29 Alan Modra <amodra@gmail.com>
685
686 * aoutx.h (aout_link_write_symbols): Don't cast boolean expression
687 to bfd_boolean.
688 * elf32-or1k.c (or1k_set_got_and_rela_sizes): Dont compare booleans
689 against FALSE.
690 * elf32-arc.c (name_for_global_symbol): Don't compare boolean to TRUE.
691 (is_reloc_PC_relative): Don't use "boolean_condition ? TRUE : FALSE".
692 (is_reloc_SDA_relative, is_reloc_for_GOT): Likewise.
693 (is_reloc_for_PLT, is_reloc_for_TLS): Likewise.
694 * elf32-arm.c (stm32l4xx_need_create_replacing_stub): Likewise.
695 * elf32-nds32.c (insert_nds32_elf_blank): Likewise.
696 * elf32-rx.c (rx_set_section_contents): Likewise.
697 * elfnn-aarch64.c (elfNN_aarch64_final_link_relocate): Likewise.
698 * elfxx-mips.c (_bfd_mips_elf_ignore_undef_symbol): Likewise.
699 * mach-o.c (bfd_mach_o_read_command): Likewise.
700 * targets.c (bfd_get_target_info): Likewise.
701
f4f9ede0
AM
7022021-03-29 Alan Modra <amodra@gmail.com>
703
704 * coff-z80.c (z80_is_local_label_name): Return bfd_boolean.
705 * elf32-z80.c (z80_is_local_label_name): Likewise.
706 * elf32-spu.c (spu_elf_modify_headers): Likewise.
707 * elf32-nds32.h (struct elf_nds32_link_hash_table <hyper_relax>):
708 Change type to int.
709 * vms-lib.c (_bfd_vms_lib_write_archive_contents): Correct test
710 for error return from vms_write_data_block.
711
1201fda6
AM
7122021-03-29 Alan Modra <amodra@gmail.com>
713
714 * elf32-i386.c (elf_i386_finish_local_dynamic_symbol): Return int.
715 * elf64-ia64-vms.c (elf64_ia64_local_dyn_info_free): Likewise.
716 (elf64_ia64_local_dyn_sym_thunk): Likewise.
717 * elf64-x86-64.c (elf_x86_64_finish_local_dynamic_symbol): Likewise.
718 * elfnn-aarch64.c (elfNN_aarch64_allocate_local_ifunc_dynrelocs),
719 (elfNN_aarch64_finish_local_dynamic_symbol): Likewise.
720 * elfnn-ia64.c (elfNN_ia64_local_dyn_info_free): Likewise.
721 (elfNN_ia64_local_dyn_sym_thunk): Likewise.
722 * elfnn-riscv.c (allocate_local_ifunc_dynrelocs): Likewise.
723 (riscv_pcrel_reloc_eq): Likewise.
724 (riscv_elf_finish_local_dynamic_symbol): Likewise.
725 * elfxx-sparc.c (allocate_local_dynrelocs): Likewise.
726 (finish_local_dynamic_symbol): Likewise.
727 * elfxx-x86.c (elf_x86_allocate_local_dynreloc): Likewise.
728 * elfxx-mips.c (mips_elf_resolve_got_page_ref): Likewise.
729 (mips_elf_count_got_symbols): Change return type to bfd_boolean.
730
37bb890f
AM
7312021-03-29 Alan Modra <amodra@gmail.com>
732
733 * elflink.c (elf_link_output_symstrtab): Make flinfo parameter
734 a void pointer.
735 (bfd_elf_final_link): Delete out_sym_func typedef and don't cast
736 elf_link_output_symstrtab when calling output_arch_syms and
737 output_arch_local_syms.
738 * elf-bfd.h (struct elf_backend_data <elf_backend_output_arch_syms,
739 elf_backend_output_arch_local_syms>): Change return type of func
740 arg to match elf_link_output_symstrtab.
741 * elf-vxworks.h (elf_vxworks_link_output_symbol_hook): Correct
742 return type.
743 * elf32-nds32.c (nds32_elf_output_symbol_hook): Correct return type.
744 (nds32_elf_output_arch_syms): Correct func return type.
745
0f684201
AM
7462021-03-29 Alan Modra <amodra@gmail.com>
747
748 * elf-m10200.c (mn10200_elf_relocate_section): Return int.
749 * elf-m10300.c (mn10300_elf_relocate_section): Likewise.
750 * elf32-arc.c (elf_arc_relocate_section): Likewise.
751 * elf32-arm.c (elf32_arm_relocate_section): Likewise.
752 * elf32-avr.c (elf32_avr_relocate_section): Likewise.
753 * elf32-bfin.c (bfin_relocate_section): Likewise.
754 (bfinfdpic_relocate_section): Likewise.
755 * elf32-cr16.c (elf32_cr16_relocate_section): Likewise.
756 * elf32-cris.c (cris_elf_relocate_section): Likewise.
757 * elf32-crx.c (elf32_crx_relocate_section): Likewise.
758 * elf32-csky.c (csky_elf_relocate_section): Likewise.
759 * elf32-d10v.c (elf32_d10v_relocate_section): Likewise.
760 * elf32-epiphany.c (epiphany_elf_relocate_section): Likewise.
761 * elf32-fr30.c (fr30_elf_relocate_section): Likewise.
762 * elf32-frv.c (elf32_frv_relocate_section): Likewise.
763 * elf32-ft32.c (ft32_elf_relocate_section): Likewise.
764 * elf32-h8300.c (elf32_h8_relocate_section): Likewise.
765 * elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
766 * elf32-i386.c (elf_i386_relocate_section): Likewise.
767 * elf32-ip2k.c (ip2k_elf_relocate_section): Likewise.
768 * elf32-iq2000.c (iq2000_elf_relocate_section): Likewise.
769 * elf32-lm32.c (lm32_elf_relocate_section): Likewise.
770 * elf32-m32c.c (m32c_elf_relocate_section): Likewise.
771 * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
772 * elf32-m68hc1x.c (elf32_m68hc11_relocate_section): Likewise.
773 * elf32-m68hc1x.h (elf32_m68hc11_relocate_section): Likewise.
774 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
775 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
776 * elf32-mep.c (mep_elf_relocate_section): Likewise.
777 * elf32-metag.c (elf_metag_relocate_section): Likewise.
778 * elf32-microblaze.c (microblaze_elf_relocate_section): Likewise.
779 * elf32-moxie.c (moxie_elf_relocate_section): Likewise.
780 * elf32-msp430.c (elf32_msp430_relocate_section): Likewise.
781 * elf32-mt.c (mt_elf_relocate_section): Likewise.
782 * elf32-nds32.c (nds32_elf_relocate_section): Likewise.
783 * elf32-nios2.c (nios2_elf32_relocate_section): Likewise.
784 * elf32-or1k.c (or1k_elf_relocate_section): Likewise.
785 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
786 * elf32-pru.c (pru_elf32_relocate_section): Likewise.
787 * elf32-rl78.c (rl78_elf_relocate_section): Likewise.
788 * elf32-rx.c (rx_elf_relocate_section): Likewise.
789 * elf32-s390.c (elf_s390_relocate_section): Likewise.
790 * elf32-score.c (s3_bfd_score_elf_relocate_section): Likewise.
791 (_bfd_score_elf_relocate_section): Likewise.
792 * elf32-score.h (s7_bfd_score_elf_relocate_section): Likewise.
793 * elf32-score7.c (s7_bfd_score_elf_relocate_section): Likewise.
794 * elf32-sh.c (sh_elf_relocate_section): Likewise.
795 * elf32-tic6x.c (elf32_tic6x_relocate_section): Likewise.
796 * elf32-tilepro.c (tilepro_elf_relocate_section): Likewise.
797 * elf32-v850.c (v850_elf_relocate_section): Likewise.
798 * elf32-vax.c (elf_vax_relocate_section): Likewise.
799 * elf32-visium.c (visium_elf_relocate_section): Likewise.
800 * elf32-xc16x.c (elf32_xc16x_relocate_section): Likewise.
801 * elf32-xstormy16.c (xstormy16_elf_relocate_section): Likewise.
802 * elf32-xtensa.c (elf_xtensa_relocate_section): Likewise.
803 * elf32-z80.c (z80_elf_relocate_section): Likewise.
804 * elf64-alpha.c (elf64_alpha_relocate_section_r): Likewise.
805 (elf64_alpha_relocate_section): Likewise.
806 * elf64-bpf.c (bpf_elf_relocate_section): Likewise.
807 * elf64-hppa.c (elf64_hppa_relocate_section): Likewise.
808 * elf64-ia64-vms.c (elf64_ia64_relocate_section): Likewise.
809 * elf64-mmix.c (mmix_elf_relocate_section): Likewise.
810 * elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
811 * elf64-s390.c (elf_s390_relocate_section): Likewise.
812 * elf64-x86-64.c (elf_x86_64_relocate_section): Likewise.
813 * elfnn-aarch64.c (elfNN_aarch64_relocate_section): Likewise.
814 * elfnn-ia64.c (elfNN_ia64_relocate_section): Likewise.
815 * elfnn-riscv.c (riscv_elf_relocate_section): Likewise.
816 * elfxx-mips.c (_bfd_mips_elf_relocate_section): Likewise.
817 * elfxx-mips.h (_bfd_mips_elf_relocate_section): Likewise.
818 * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Likewise.
819 * elfxx-sparc.h (_bfd_sparc_elf_relocate_section): Likewise.
820 * elfxx-tilegx.c (tilegx_elf_relocate_section): Likewise.
821 * elfxx-tilegx.h (tilegx_elf_relocate_section): Likewise.
822
ff5b3e14
KS
8232021-03-26 Keith Seitz <keiths@redhat.com>
824
825 * elfcore.h (_bfd_elf_core_find_build_id): Seek file
826 offset of program headers after calling elf_read_notes.
827
f596b03f
JB
8282021-03-23 Jan Beulich <jbeulich@suse.com>
829
830 * dwarf2.c (read_indexed_string): Rename index to idx.
831
08dedd66
ML
8322021-03-22 Martin Liska <mliska@suse.cz>
833
834 * bfd-in.h (startswith): Add startswith function.
835 (CONST_STRNEQ): Remove.
836 * bfd-in2.h (startswith): Regenerate with make headers.
837 * archive.c (bfd_slurp_armap): Replace usage of CONST_STRNEQ with startswith.
838 (_bfd_slurp_extended_name_table): Likewise.
839 * archive64.c (_bfd_archive_64_bit_slurp_armap): Likewise.
840 * bfd.c (bfd_get_sign_extend_vma): Likewise.
841 (bfd_convert_section_size): Likewise.
842 (bfd_convert_section_contents): Likewise.
843 * coff-stgo32.c (go32exe_create_stub): Likewise.
844 (go32exe_check_format): Likewise.
845 * coffcode.h (styp_to_sec_flags): Likewise.
846 (GNU_DEBUGALTLINK): Likewise.
847 * coffgen.c (_bfd_coff_section_already_linked): Likewise.
848 (coff_gc_sweep): Likewise.
849 (bfd_coff_gc_sections): Likewise.
850 * cofflink.c (coff_link_add_symbols): Likewise.
851 (process_embedded_commands): Likewise.
852 * compress.c (bfd_is_section_compressed_with_header): Likewise.
853 (bfd_init_section_decompress_status): Likewise.
854 * dwarf2.c (find_debug_info): Likewise.
855 (place_sections): Likewise.
856 * ecoff.c (_bfd_ecoff_slurp_armap): Likewise.
857 * elf-m10300.c (_bfd_mn10300_elf_size_dynamic_sections): Likewise.
858 * elf.c (_bfd_elf_make_section_from_shdr): Likewise.
859 (assign_section_numbers): Likewise.
860 (elfcore_grok_win32pstatus): Likewise.
861 * elf32-arm.c (cmse_scan): Likewise.
862 (elf32_arm_gc_mark_extra_sections): Likewise.
863 (elf32_arm_size_dynamic_sections): Likewise.
864 (is_arm_elf_unwind_section_name): Likewise.
865 * elf32-bfin.c (bfin_size_dynamic_sections): Likewise.
866 * elf32-cr16.c (_bfd_cr16_elf_size_dynamic_sections): Likewise.
867 * elf32-cris.c (elf_cris_size_dynamic_sections): Likewise.
868 * elf32-csky.c (csky_elf_size_dynamic_sections): Likewise.
869 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Likewise.
870 * elf32-iq2000.c (iq2000_elf_check_relocs): Likewise.
871 * elf32-lm32.c (lm32_elf_size_dynamic_sections): Likewise.
872 * elf32-m32r.c (m32r_elf_size_dynamic_sections): Likewise.
873 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
874 * elf32-metag.c (elf_metag_size_dynamic_sections): Likewise.
875 * elf32-msp430.c (msp430_elf_relax_delete_bytes): Likewise.
876 * elf32-nios2.c (nios2_elf32_size_dynamic_sections): Likewise.
877 * elf32-or1k.c (or1k_elf_size_dynamic_sections): Likewise.
878 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Likewise.
879 * elf32-s390.c (elf_s390_size_dynamic_sections): Likewise.
880 * elf32-score.c (s3_bfd_score_elf_size_dynamic_sections): Likewise.
881 * elf32-score7.c (s7_bfd_score_elf_size_dynamic_sections): Likewise.
882 * elf32-sh.c (sh_elf_size_dynamic_sections): Likewise.
883 * elf32-tic6x.c (is_tic6x_elf_unwind_section_name): Likewise.
884 (elf32_tic6x_size_dynamic_sections): Likewise.
885 * elf32-vax.c (elf_vax_size_dynamic_sections): Likewise.
886 * elf32-xtensa.c (elf_xtensa_size_dynamic_sections): Likewise.
887 (xtensa_is_insntable_section): Likewise.
888 (xtensa_is_littable_section): Likewise.
889 (xtensa_is_proptable_section): Likewise.
890 (xtensa_property_section_name): Likewise.
891 (xtensa_callback_required_dependence): Likewise.
892 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Likewise.
893 * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise.
894 * elf64-ia64-vms.c (is_unwind_section_name): Likewise.
895 (get_reloc_section): Likewise.
896 (elf64_ia64_size_dynamic_sections): Likewise.
897 (elf64_ia64_object_p): Likewise.
898 * elf64-mmix.c (mmix_elf_add_symbol_hook): Likewise.
899 * elf64-ppc.c (ppc64_elf_size_dynamic_sections): Likewise.
900 * elf64-s390.c (elf_s390_size_dynamic_sections): Likewise.
901 * elflink.c (elf_link_add_object_symbols): Likewise.
902 (_bfd_elf_gc_mark_extra_sections): Likewise.
903 (bfd_elf_parse_eh_frame_entries): Likewise.
904 (_bfd_elf_section_already_linked): Likewise.
905 * elfnn-aarch64.c (elfNN_aarch64_size_dynamic_sections): Likewise.
906 * elfnn-ia64.c (is_unwind_section_name): Likewise.
907 (elfNN_ia64_size_dynamic_sections): Likewise.
908 (elfNN_ia64_object_p): Likewise.
909 * elfxx-mips.c (FN_STUB_P): Likewise.
910 (CALL_STUB_P): Likewise.
911 (CALL_FP_STUB_P): Likewise.
912 (_bfd_mips_elf_section_from_shdr): Likewise.
913 (_bfd_mips_elf_fake_sections): Likewise.
914 (_bfd_mips_elf_size_dynamic_sections): Likewise.
915 (_bfd_mips_final_write_processing): Likewise.
916 (_bfd_mips_elf_final_link): Likewise.
917 * elfxx-sparc.c (_bfd_sparc_elf_size_dynamic_sections): Likewise.
918 * elfxx-x86.c (elf_i386_is_reloc_section): Likewise.
919 (elf_x86_64_is_reloc_section): Likewise.
920 * hpux-core.c (thread_section_p): Likewise.
921 * libcoff.h (bfd_pei_p): Likewise.
922 * linker.c (REAL): Likewise.
923 (unwrap_hash_lookup): Likewise.
924 (_bfd_generic_link_add_one_symbol): Likewise.
925 * mmo.c (mmo_internal_write_section): Likewise.
926 * osf-core.c (osf_core_core_file_p): Likewise.
927 * pef.c (bfd_pef_print_symbol): Likewise.
928 * pei-x86_64.c (pex64_print_all_pdata_sections): Likewise.
929 * som.c (som_slurp_symbol_table): Likewise.
930 (som_slurp_armap): Likewise.
931 * wasm-module.c (wasm_compute_custom_section_file_position): Likewise.
932
2aaf2ce8
JB
9332021-03-22 Jan Beulich <jbeulich@suse.com>
934
935 * peXXigen.c (_bfd_XXi_swap_scnhdr_out): Add missing
936 language translation wrapping to _bfd_error_handler()
937 invocations.
938
e9338841
AM
9392021-03-21 Alan Modra <amodra@gmail.com>
940
941 * bfd-in.h (startswith): New inline.
942 (CONST_STRNEQ): Use startswith.
943 * bfd-in2.h: Regenerate.
944
15407e7e
AM
9452021-03-20 Alan Modra <amodra@gmail.com>
946
947 PR 27590
948 * elf.c (_bfd_elf_make_section_from_shdr): Remove SHF_EXCLUDE
949 test for .gnu.debuglto*.
950
3818d4ab
L
9512021-03-18 H.J. Lu <hongjiu.lu@intel.com>
952
953 PR ld/27590
15407e7e 954 * elf.c (_bfd_elf_make_section_from_shdr): Treat
3818d4ab
L
955 .gnu.debuglto_.debug_ section as debugging section unless it is
956 marked with SHF_EXCLUDE.
957 * elflink.c (elf_create_symbuf): Revert commit 994b2513281.
958 (bfd_elf_match_symbols_in_sections): Ignore section symbols when
959 matching non-debugging sections or linkonce section with comdat
960 section.
961
51f6e7a9
L
9622021-03-18 H.J. Lu <hongjiu.lu@intel.com>
963
964 PR ld/27587
965 * dwarf2.c (read_attribute_value): Check version >= 3 for
966 DW_FORM_ref_addr.
967
012d4426
NC
9682021-03-16 Nick Clifton <nickc@redhat.com>
969
970 * peXXigen.c (_bfd_XXi_swap_aux_out): Avoid potential buffer
971 overrun by using sizeof of the destination x_fname field as the
972 limit for a memcpy.
973
80d49d6a
KLC
9742021-03-16 Kuan-Lin Chen <kuanlinchentw@gmail.com>
975
976 * elfxx-riscv.c (riscv_std_z_ext_strtab): Add zba, zbb and zbc.
977
1b2cb8e2
CC
9782021-03-12 Clément Chigot <clement.chigot@atos.net>
979
980 * reloc.c (BFD_RELOC_PPC_TLS_LE, BFD_RELOC_PPC_TLS_IE,
981 BFD_RELOC_PPC_TLS_M, BFD_RELOC_PPC_TLS_ML, BFD_RELOC_PPC64_TLS_GD,
982 BFD_RELOC_PPC64_TLS_LD, BFD_RELOC_PPC64_TLS_LE,
983 BFD_RELOC_PPC64_TLS_IE, BFD_RELOC_PPC64_TLS_M,
984 BFD_RELOC_PPC64_TLS_ML): New relocations.
985 * bfd-in2.h: Regenerate.
986 * libbfd.h: Regenerate.
987 * coff-rs6000.c (xcoff_calculate_relocation): Call
988 xcoff_reloc_type_tls for TLS relocations.
989 (xcoff_howto_table): Implement TLS relocations.
990 (_bfd_xcoff_reloc_type_lookup): Add cases TLS relocations.
991 (xcoff_reloc_type_tls): New function.
992 * coff64-rs6000.c (xcoff_calculate_relocation): Likewise.
993 (xcoff_howto_table): Likewise.
994 (_bfd_xcoff_reloc_type_lookup): Likewise.
995 * coffcode.h (sec_to_styp_flags): Handle TLS sections.
996 (styp_to_sec_flags): Likewise.
997 (coff_compute_section_file_positions): Avoid file offset
998 optimisation for .data when the previous section is .tdata.
999 (coff_write_object_contents): Handle TLS sections.
1000 * coffswap.h (coff_swap_aouthdr_out): Add support for
1001 new fields in aouthdr.
1002 * libxcoff.h (xcoff_reloc_type_tls): Add prototype.
1003 * xcofflink.c (xcoff_link_add_symbols): Handle XMC_UL.
1004 (xcoff_need_ldrel_p): Add cases for TLS relocations.
1005 (xcoff_create_ldrel): Add l_symndx for TLS sections.
1006
4a403be0
CC
10072021-03-12 Clément Chigot <clement.chigot@atos.net>
1008
1009 * reloc.c (BFD_RELOC_PPC_TOC16_HI, BFD_RELOC_PPC_TOC16_LO):
1010 New relocations.
1011 * bfd-in2.h: Regenerate.
1012 * libbfd.h: Regenerate.
1013 * coff-rs6000.c (xcoff_calculate_relocation): Call
1014 xcoff_reloc_type_toc for R_TOCU and R_TOCL.
1015 (xcoff_howto_table): Remove src_mask for TOC relocations.
1016 Add R_TOCU and R_TOCL howtos.
1017 (_bfd_xcoff_reloc_type_lookup): Add cases for
1018 BFD_RELOC_PPC_TOC16_HI and BFD_RELOC_PPC_TOC16_LO.
1019 (xcoff_reloc_type_toc): Compute the whole offset.
1020 Implement R_TOCU and R_TOCL.
1021 * coff64-rs6000.c (xcoff64_calculate_relocation):
1022 Likewise.
1023 (xcoff64_howto_table): Likewise.
1024 (xcoff64_reloc_type_lookup): Likewise.
1025
2c1bef53
CC
10262021-03-12 Clément Chigot <clement.chigot@atos.net>
1027
1028 * coff-rs6000.c (xcoff_calculate_relocation): Correct and
1029 add new relocations.
1030 (xcoff_howto_table): Likewise.
1031 (xcoff_rtype2howto): Increase r_type maximum value.
1032 (xcoff_ppc_relocate_section): Reuse predefined HOWTOs instead
1033 of create a new one from scratch. Enable only some relocations
1034 to have a changing r_size.
1035 * coff64-rs6000.c (xcoff64_calculate_relocation): Likewise.
1036 (xcoff64_howto_table): Likewise.
1037 (xcoff64_rtype2howto): Likewise.
1038 (xcoff64_ppc_relocate_section): Likewise.
1039 * libxcoff.h (XCOFF_MAX_CALCULATE_RELOCATION): Fix value.
1040
0c929e83
CC
10412021-03-12 Clément Chigot <clement.chigot@atos.net>
1042
1043 * coff64-rs6000.c (xcoff64_ppc_relocate_section): Move.
1044
6d4d9328
CC
10452021-03-12 Clément Chigot <clement.chigot@atos.net>
1046
1047 * coff64-rs6000.c (xcoff64_write_object_contents): Remove.
1048 * coffcode.h (coff_write_object_contents): Add bfd_mach_ppc_620
1049 support for o_cputype field. Avoid creating an empty a.out header
1050 for XCOFF64.
1051
8aa2d023
CC
10522021-03-12 Clément Chigot <clement.chigot@atos.net>
1053
1054 * coff64-rs6000.c (xcoff64_create_csect_from_smclas): Add
1055 missing smclass.
1056
ebdcad3f
NC
10572021-03-11 Nelson Chu <nelson.chu@sifive.com>
1058
1059 * elfnn-riscv.c (riscv_elf_link_hash_table): New boolean
1060 restart_relax, used to check if we need to run the whole
1061 relaxations from relax pass 0 to 2 again.
1062 (riscv_elf_link_hash_table_create): Init restart_relax to FALSE.
1063 (_bfd_riscv_relax_align): Remove obsolete sec_flg0 set.
1064 (_bfd_riscv_relax_delete): Set again to TRUE if we do delete the code.
1065 (bfd_elfNN_riscv_restart_relax_sections): New function. Called by
1066 after_allocation to check if we need to run the whole relaxations again.
1067 (_bfd_riscv_relax_section): We will only enter into the relax pass 3
1068 when the restart_relax is FALSE; At last set restart_relax to TRUE if
1069 again is TRUE, too.
1070 * elfxx-riscv.h (bfd_elf32_riscv_restart_relax_sections): Declaration.
1071 (bfd_elf64_riscv_restart_relax_sections): Likewise.
1072
67b0f684
JB
10732021-03-10 Jan Beulich <jbeulich@suse.com>
1074
1075 * cofflink.c (_bfd_coff_write_global_sym): Range-check symbol
1076 offset.
1077
2dfa8341
AM
10782021-03-10 Alan Modra <amodra@gmail.com>
1079 Jan Beulich <jbeulich@suse.com>
1080
1081 * elf.c (bfd_elf_generic_reloc): Make references between debug
1082 sections use section relative values.
1083
87fa7d56
JB
10842021-03-09 Jan Beulich <jbeulich@suse.com>
1085
1086 * peXXigen.c (_bfd_XXi_swap_scnhdr_out): Diagnose out of range RVA.
1087
8c0546e9
L
10882021-03-05 H.J. Lu <hongjiu.lu@intel.com>
1089
1090 PR ld/27425
1091 PR ld/27432
1092 * bfd.c (_bfd_get_link_info): New function.
1093 * elf-bfd.h (output_elf_obj_tdata): Add link_info.
1094 (elf_link_info): New.
1095 * libbfd-in.h (_bfd_get_link_info): New prototype.
1096 * coff-x86_64.c (coff_amd64_reloc): Also subtract __ImageBase for
1097 R_AMD64_IMAGEBASE when generating x86-64 ELF executable.
1098 * pe-x86_64.c: Include "coff/internal.h" and "libcoff.h".
1099 (pex64_link_add_symbols): New function.
1100 (coff_bfd_link_add_symbols): New macro.
1101 * libbfd.h: Regenerated.
1102
db6092f3
AB
11032021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
1104 Andrew Burgess <andrew.burgess@embecosm.com>
1105
1106 * elf-bfd.h (elfcore_write_riscv_csr): Declare.
1107 * elf.c (elfcore_grok_riscv_csr): New function.
1108 (elfcore_grok_note): Handle NT_RISCV_CSR.
1109 (elfcore_write_riscv_csr): New function.
1110 (elfcore_write_register_note): Handle '.reg-riscv-csr'.
1111
0897bb7d
AB
11122021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
1113 Andrew Burgess <andrew.burgess@embecosm.com>
1114
1115 * elfnn-riscv.c (PRPSINFO_PR_FNAME_LENGTH): Define.
1116 (PRPSINFO_PR_PSARGS_LENGTH): Define.
1117 (riscv_write_core_note): New function.
1118 (riscv_elf_grok_psinfo): Make use of two new length defines.
1119 (elf_backend_write_core_note): Define.
1120
b63a5e38
AB
11212021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
1122 Andrew Burgess <andrew.burgess@embecosm.com>
1123
1124 * elf-bfd.h (elfcore_write_gdb_tdesc): Declare new function.
1125 * elf.c (elfcore_grok_gdb_tdesc): New function.
1126 (elfcore_grok_note): Handle NT_GDB_TDESC.
1127 (elfcore_write_gdb_tdesc): New function.
1128 (elfcore_write_register_note): Handle NT_GDB_TDESC.
1129
2017f387
NC
11302021-03-05 Nick Clifton <nickc@redhat.com>
1131
1132 PR 27521
1133 * dwarf2.c (is_str_attr): Add DW_FORM_strx* forms.
1134 (read_indexed_string): Placeholder function.
1135 (read_attribute_value): Handle DW_FORM_strx* and DW_FORM_addrx*
1136 forms.
1137
b01b5d9a
AM
11382021-03-05 Alan Modra <amodra@gmail.com>
1139
1140 * reloc.c (bfd_perform_relocation): Revert 2021-01-12 and
1141 2020-09-16 changes.
1142 * coff-x86_64.c (coff_amd64_reloc): Do more or less the same
1143 adjustments here instead. Separate pc-relative adjustments
1144 from symbol related adjustments. Tidy comments and formatting.
1145
6b5465b9
JB
11462021-03-04 Jan Beulich <jbeulich@suse.com>
1147
1148 * coffcode.h (sec_to_styp_flags): Don't set IMAGE_SCN_LNK_* in
1149 final PE images.
1150
0b7733b6
AM
11512021-03-04 Alan Modra <amodra@gmail.com>
1152
1153 * rs6000-core.c (rs6000coff_core_p): Correct prototype.
1154
5789f845
AM
11552021-03-03 Alan Modra <amodra@gmail.com>
1156
1157 PR 27500
1158 * elflink.c (_bfd_elf_gc_mark_rsec): Do special start/stop
1159 processing not when start/stop symbol section is unmarked but
1160 on first time a start/stop symbol is processed.
1161
dc83f2d2
AM
11622021-03-03 Alan Modra <amodra@gmail.com>
1163
1164 * reloc.c: Include x86_64.h rather than internal.h.
1165
ca8f6bc6
NC
11662021-03-02 Nick Clifton <nickc@redhat.com>
1167
1168 PR 27484
1169 * dwarf2.c (scan_unit_for_symbols): Scan twice, once to accumulate
1170 function and variable tags and a second time to resolve their
1171 attributes.
1172
211bcd01
NA
11732021-03-02 Nick Alcock <nick.alcock@oracle.com>
1174
1175 * elf-strtab.c (_bfd_elf_strtab_str): Skip strings with zero refcount.
1176
b80e421f
AM
11772021-03-02 Alan Modra <amodra@gmail.com>
1178
1179 PR 27451
1180 * elf64-ppc.c (ppc64_elf_gc_mark_dynamic_ref): Ignore synthesized
1181 linker defined start/stop symbols when start_stop_gc.
1182
f5b9c288
AM
11832021-03-02 Alan Modra <amodra@gmail.com>
1184
1185 * elf64-ppc.c (ppc64_elf_relocate_section): Don't optimise got
1186 indirect to pc-relative or toc-relative for undefined symbols.
1187
8ee10e86
AM
11882021-03-01 Alan Modra <amodra@gmail.com>
1189 Fangrui Song <maskray@google.com>
1190
1191 * elflink.c (_bfd_elf_gc_mark_rsec): Ignore synthesized linker
1192 defined start/stop symbols when start_stop_gc.
1193 (bfd_elf_gc_mark_dynamic_ref_symbol): Likewise.
1194 (bfd_elf_define_start_stop): Don't modify ldscript_def syms.
1195 * linker.c (bfd_generic_define_start_stop): Likewise.
1196
bbaddd4b
AM
11972021-02-25 Alan Modra <amodra@gmail.com>
1198
1199 PR 27441
1200 * elf-bfd.h (struct elf_link_hash_entry): Add ref_ir_nonweak.
1201 * elflink.c (elf_link_add_object_symbols): Set ref_ir_nonweak and
1202 use when deciding an as-needed library should be loaded instead
1203 of using the binding of the library definition.
1204
93af1b04
AM
12052021-02-24 Alan Modra <amodra@gmail.com>
1206
1207 PR 27459
1208 * coff-stgo32.c (go32exe_check_format): Sanity check size of
1209 header to avoid a buffer overflow.
1210
e9d18e06
AM
12112021-02-22 Alan Modra <amodra@gmail.com>
1212
1213 * coff-rs6000.c (_bfd_xcoff_reloc_type_lookup): Remove BFD_RELOC_16.
1214 * coff64-rs6000.c (xcoff64_reloc_type_lookup): Likewise.
1215
5a9f5403
NC
12162021-02-19 Nelson Chu <nelson.chu@sifive.com>
1217
1218 PR 27158
1219 * elfnn-riscv.c (perform_relocation): Updated encoding macros.
1220 (_bfd_riscv_relax_call): Likewise.
1221 (_bfd_riscv_relax_lui): Likewise.
1222 * elfxx-riscv.c (howto_table): Likewise.
1223
3d73d29e
NC
12242021-02-18 Nelson Chu <nelson.chu@sifive.com>
1225
1226 * Makefile.am: Added cpu-riscv.h.
1227 * Makefile.in: Regenerated.
1228 * po/SRC-POTFILES.in: Regenerated.
1229 * cpu-riscv.h: Added to support spec versions controlling.
1230 Also added extern arrays and functions for cpu-riscv.c.
1231 (enum riscv_spec_class): Define all spec classes here uniformly.
1232 (struct riscv_spec): Added for all specs.
1233 (RISCV_GET_SPEC_CLASS): Added to reduce repeated code.
1234 (RISCV_GET_SPEC_NAME): Likewise.
1235 (RISCV_GET_ISA_SPEC_CLASS): Added to get ISA spec class.
1236 (RISCV_GET_PRIV_SPEC_CLASS): Added to get privileged spec class.
1237 (RISCV_GET_PRIV_SPEC_NAME): Added to get privileged spec name.
1238 * cpu-riscv.c (struct priv_spec_t): Replaced with struct riscv_spec.
1239 (riscv_get_priv_spec_class): Replaced with RISCV_GET_PRIV_SPEC_CLASS.
1240 (riscv_get_priv_spec_name): Replaced with RISCV_GET_PRIV_SPEC_NAME.
1241 (riscv_priv_specs): Moved below.
1242 (riscv_get_priv_spec_class_from_numbers): Likewise, updated.
1243 (riscv_isa_specs): Moved from include/opcode/riscv.h.
1244 * elfnn-riscv.c: Included cpu-riscv.h.
1245 (riscv_merge_attributes): Initialize in_priv_spec and out_priv_spec.
1246 * elfxx-riscv.c: Included cpu-riscv.h and opcode/riscv.h.
1247 (RISCV_UNKNOWN_VERSION): Moved from include/opcode/riscv.h.
1248 * elfxx-riscv.h: Removed extern functions to cpu-riscv.h.
1249
b9b204b3
AM
12502021-02-17 Alan Modra <amodra@gmail.com>
1251
1252 * wasm-module.c: Guard include of limits.h.
1253 (CHAR_BIT): Provide backup define.
1254 (wasm_read_leb128): Use CHAR_BIT to size "result" in bits.
1255 Correct signed overflow checking.
1256
0d6aab77
NC
12572021-02-17 Nelson Chu <nelson.chu@sifive.com>
1258
1259 PR 27200
1260 * elfnn-riscv.c (_bfd_riscv_elf_merge_private_bfd_data): Delay
1261 copying the elf flags from input BFD to output BFD, until we have
1262 checked if the input BFD has no code section or not. Also fix the
1263 problem that we only check the first section rather than the entire
1264 sections for input BFD.
1265
7b54cadd
AM
12662021-02-16 Alan Modra <amodra@gmail.com>
1267
1268 * libbfd.c (_bfd_read_unsigned_leb128): Avoid excessive shift.
1269 (_bfd_safe_read_leb128, _bfd_read_signed_leb128): Likewise.
1270
8c674061
JB
12712021-02-15 Jan Beulich <jbeulich@suse.com>
1272
1273 * doc/Makefile.am: Replace "cp -p" by "$(LN_S)".
1274 * doc/Makefile.in: Re-generate.
1275
1781a9d0
AM
12762021-02-15 Alan Modra <amodra@gmail.com>
1277
1278 * elf32-nds32.c (nds32_get_section_contents): Replace
1279 bfd_malloc_and_get_section with bfd_get_full_section_contents.
1280 (nds32_elf_relax_delete_blanks): Init contents.
1281 (nds32_elf_relax_section, nds32_relax_fp_as_gp): Likewise.
1282
8b78cbec
AM
12832021-02-15 Alan Modra <amodra@gmail.com>
1284
1285 * coff-alpha.c (alpha_ecoff_get_relocated_section_contents): Use
1286 bfd_get_full_section_contents.
1287
d7a7af8f
AM
12882021-02-14 Alan Modra <amodra@gmail.com>
1289
1290 * elfxx-mips.c (_bfd_elf_mips_get_relocated_section_contents): Apply
1291 all fixes to bfd_generic_get_relocated_section_contents since this
1292 function was split out.
1293
234b98ce
AM
12942021-02-11 Alan Modra <amodra@gmail.com>
1295
1296 * config.bfd: Remove ia64 from obsolete list.
1297
769c253f
AM
12982021-02-11 Alan Modra <amodra@gmail.com>
1299
1300 PR ld/22269
1301 * elfnn-ia64.c: Revert 2017-10-14 git commit db41f6eb5234.
1302
31c711a2
AM
13032021-02-11 Alan Modra <amodra@gmail.com>
1304
1305 PR 27294
1306 * elf32-avr.c (avr_elf32_load_records_from_section): Use
1307 bfd_malloc_and_get_section. Use bfd_byte* vars and remove then
1308 unnecessary casts.
1309
6db658c5
AM
13102021-02-11 Alan Modra <amodra@gmail.com>
1311
1312 PR 27291
1313 * section.c (bfd_get_section_contents): Avoid possible overflow
1314 when range checking offset and count.
1315 (bfd_set_section_contents): Likewise.
1316
95148614
NA
13172021-02-03 Nick Alcock <nick.alcock@oracle.com>
1318
1319 * configure.ac (SHARED_LIBADD): Remove explicit -lintl population in
1320 favour of LIBINTL.
1321 * configure: Regenerated.
1322
a57d1773
AM
13232021-02-09 Alan Modra <amodra@gmail.com>
1324
1325 * config.bfd (arm*-*-symbianelf*): Move from obsolete to removed.
1326 * configure.ac: Delete symbian entries.
1327 * elf-bfd.h (enum elf_target_os): Delete is_symbian.
1328 * elf32-arm.c: Remove symbian support. Formatting.
1329 * targets.c: Delete symbian entries.
1330 * configure: Regenerate.
1331
1a2f1b54
L
13322021-02-04 H.J. Lu <hongjiu.lu@intel.com>
1333
1334 PR ld/19609
1335 * elf64-x86-64.c (elf_x86_64_relocate_section): Provide more
1336 info when failed to convert GOTPCREL relocation.
1337
24075dcc
NC
13382021-02-04 Nelson Chu <nelson.chu@sifive.com>
1339
1340 * elfxx-riscv.c (riscv_parse_prefixed_ext): Removed zb*.
1341
7d409ac0
AM
13422021-02-04 Alan Modra <amodra@gmail.com>
1343
1344 PR 27311
1345 * elflink.c (elf_link_add_object_symbols): Don't pull in as-needed
1346 libraries for IR references on pass over libraries after LTO
1347 recompilation.
1348
f01fb44c
AM
13492021-02-03 Alan Modra <amodra@gmail.com>
1350
1351 PR 27311
1352 * elflink.c (_bfd_elf_add_default_symbol): Revert last two changes.
1353 (elf_link_add_object_symbols): Here too. Don't pull in as-needed
1354 libraries when H is an indirect symbol after calling
1355 _bfd_elf_add_default_symbol.
1356
69551367
AM
13572021-02-03 Alan Modra <amodra@gmail.com>
1358
1359 PR 27311
1360 * elflink.c (_bfd_elf_add_default_symbol): Clear override when
1361 undecorated symbol will have a different version.
1362
9918bff7
AM
13632021-02-02 Alan Modra <amodra@gmail.com>
1364
1365 PR 27311
1366 * elflink.c (_bfd_elf_add_default_symbol): Add override parameter.
1367 Use when handling default versioned symbol. Rename existing
1368 override variable to nondef_override and use for non-default
1369 versioned symbol.
1370 (elf_link_add_object_symbols): Adjust call to suit. Don't
1371 pull in as-needed libraries when override is set.
1372
1f568f9a
EH
13732021-02-01 Emery Hemingway <ehmry@posteo.net>
1374
1375 * config.bfd: Add *-*-genode* as a target for AArch64 and x86.
1376
34c10233
EV
13772021-02-01 Egor Vishnyakov <lenvampir@yandex.ru>
1378
1379 PR 27254
1380 * elf32-rl78.c (rl78_elf_relocate_section): Fix calculation of
1381 offset for the R_RL78_RH_SADDR relocation.
1382
c4566785
AM
13832021-01-29 Alan Modra <amodra@gmail.com>
1384
1385 PR 27271
1386 * elflink.c (bfd_elf_link_record_dynamic_symbol): Don't segfault
1387 on symbols defined in absolute or other special sections.
1388
def97fb9
AM
13892021-01-28 Alan Modra <amodra@gmail.com>
1390
1391 PR 27259
1392 * elflink.c (_bfd_elf_gc_mark_extra_sections): Use linker_mark to
1393 prevent endless looping of linked-to sections.
1394
4cb1265b
MS
13952020-12-17 Mihails Strasuns <mihails.strasuns@intel.com>
1396
1397 * bfd-elf.h (elfcore_write_file_note): New function.
1398 * elf.c (elfcore_write_file_note): New function.
1399
4287950e
AM
14002021-01-26 Alan Modra <amodra@gmail.com>
1401
1402 * elf32-ft32.c (ft32_reloc_type_lookup): Don't miss ft32_reloc_map[0].
1403
940d0202
L
14042021-01-24 H.J. Lu <hongjiu.lu@intel.com>
1405
1406 PR binutils/27231
1407 * dwarf2.c (read_rnglists): Ignore empty range when parsing line
1408 number tables.
1409
18454c15
L
14102021-01-23 H.J. Lu <hongjiu.lu@intel.com>
1411
1412 PR binutils/27231
1413 * dwarf2.c (read_rnglists): Advance rngs_ptr after
1414 _bfd_safe_read_leb128 when parsing DW_RLE_offset_pair.
1415
4bd7c902
AM
14162021-01-20 Alan Modra <amodra@gmail.com>
1417
1418 * elf32-ppc.c: Delete outdated comment.
1419 (TARGET_KEEP_UNUSED_SECTION_SYMBOLS): Define.
1420 * elf64-ppc.c (TARGET_KEEP_UNUSED_SECTION_SYMBOLS): Define.
1421
8bd10d6b
AM
14222021-01-20 Alan Modra <amodra@gmail.com>
1423
1424 * elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Don't assume
1425 section symbols are present.
1426
30845f11
AM
14272021-01-19 Alan Modra <amodra@gmail.com>
1428
1429 * elf64-ppc.c (elf_hash_entry): New inline function. Use
1430 throughout to replace casts.
1431 (branch_reloc_hash_match): Remove const from params.
1432 (use_local_plt): New function.
1433 (allocate_dynrelocs, ppc_build_one_stub, ppc_size_one_stub),
1434 (build_global_entry_stubs_and_plt, ppc64_elf_relocate_section):
1435 Use use_local_plt.
1436 * elf32-ppc.c (use_local_plt): New function.
1437 (allocate_dynrelocs, ppc_elf_relocate_section),
1438 (write_global_sym_plt): Use use_local_plt.
1439
994b2513
L
14402021-01-17 H.J. Lu <hongjiu.lu@intel.com>
1441
1442 PR ld/27193
1443 * elflink.c (elf_create_symbuf): Also ignore section symbols.
1444
75a933f3
L
14452021-01-16 H.J. Lu <hongjiu.lu@intel.com>
1446
1447 PR ld/23169
1448 * elfxx-x86.c (_bfd_x86_elf_link_fixup_ifunc_symbol): Don't
1449 check pointer_equality_needed.
1450
68b00778
L
14512021-01-15 H.J. Lu <hongjiu.lu@intel.com>
1452
1453 * elf-linker-x86.h (elf_linker_x86_params): Add
1454 report_relative_reloc.
1455 * elf32-i386.c (elf_i386_relocate_section): Call
1456 _bfd_x86_elf_link_report_relative_reloc to report relative
1457 relocations for -z report-relative-reloc.
1458 (elf_i386_finish_dynamic_symbol): Likewse.
1459 * elf64-x86-64.c (elf_x86_64_relocate_section): Likewse.
1460 (elf_x86_64_finish_dynamic_symbol): Likewse.
1461 * elfxx-x86.c (_bfd_x86_elf_link_report_relative_reloc): New
1462 function.
1463 * elfxx-x86.h (_bfd_x86_elf_link_report_relative_reloc): New
1464 prototype.
1465
ad92f33d
AM
14662021-01-16 Alan Modra <amodra@gmail.com>
1467
1468 * compress.c (decompress_contents): Tidy inflateEnd result test.
1469
eb6e6af8
AM
14702021-01-16 Alan Modra <amodra@gmail.com>
1471
1472 PR 26002
1473 * elflink.c (elf_link_output_extsym): Use version 1 in
1474 .gnu.version for undefined unversioned symbols.
1475
4bb5732e
NC
14762021-01-15 Nelson Chu <nelson.chu@sifive.com>
1477
1478 * elfnn-riscv.c (riscv_relax_delete_bytes): Fixed the indent that
1479 caused the by previous commit accidentally.
1480
1942a048
NC
14812021-01-15 Nelson Chu <nelson.chu@sifive.com>
1482
1483 * elfnn-riscv.c: Indent, labels and GNU coding standards tidy,
1484 also aligned the code.
1485
b800637e
NC
14862021-01-15 Nelson Chu <nelson.chu@sifive.com>
1487
1488 * elfnn-riscv.c (riscv_merge_attributes): Fix typos of messages.
1489
dcd709e0
NC
14902021-01-15 Nelson Chu <nelson.chu@sifive.com>
1491
1492 * elfnn-riscv.c: Comments tidy and improvement.
1493 * elfxx-riscv.c: Likewise.
1494 * elfxx-riscv.h: Likewise.
1495
8ca9c7eb
L
14962021-01-14 H.J. Lu <hongjiu.lu@intel.com>
1497
1498 PR ld/26688
1499 * elf32-bfin.c (bfinfdpic_relocate_section): Skip non SEC_ALLOC
1500 section for R_BFIN_FUNCDESC.
1501
7e0d77ef
NC
15022021-01-14 Nick Clifton <nickc@redhat.com>
1503
1504 * elf.c (elfcore_grok_win32pstatus): Check for a note type of 0.
1505
5347ed60
AM
15062021-01-13 Alan Modra <amodra@gmail.com>
1507
1508 * Makefile.in: Regenerate.
1509 * doc/Makefile.in: Regenerate.
1510
b209b5a6
AM
15112021-01-13 Alan Modra <amodra@gmail.com>
1512
1513 PR 27160
1514 * section.c (struct bfd_section): Remove pattern field.
1515 (BFD_FAKE_SECTION): Adjust to suit.
1516 * bfd-in2.h: Regenerate.
1517 * elflink.c (compare_link_order, elf_fixup_link_order): Delete.
1518 (bfd_elf_final_link): Don't call elf_fixup_link_order.
1519
d546b610
L
15202021-01-12 H.J. Lu <hongjiu.lu@intel.com>
1521
1522 PR binutils/26792
1523 * configure.ac: Use GNU_MAKE_JOBSERVER.
1524 * aclocal.m4: Regenerated.
1525 * configure: Likewise.
1526
c2e9a4a3
L
15272021-01-12 H.J. Lu <hongjiu.lu@intel.com>
1528
1529 PR ld/27171
1530 * reloc.c (bfd_perform_relocation): Adjust R_AMD64_DIR64 and
1531 R_AMD64_DIR32 relocations for PE/x86-64 inputs.
1532
83b33c6c
L
15332021-01-11 H.J. Lu <hongjiu.lu@intel.com>
1534
1535 PR ld/27173
1536 * configure: Regenerated.
1537
a8aa72b9
NC
15382021-01-11 Nick Clifton <nickc@redhat.com>
1539
1540 * po/fr.po: Updated French translation.
1541 * po/pt.po: Updated Portuguese translation.
1542 * po/sr.po: Updated Serbian translation.
1543 * po/uk.po: Updated Ukranian translation.
1544
a4966cd9
L
15452021-01-09 H.J. Lu <hongjiu.lu@intel.com>
1546
1547 * configure: Regenerated.
1548
0a94990b
L
15492021-01-09 H.J. Lu <hongjiu.lu@intel.com>
1550
1551 PR ld/27166
1552 * elfxx-x86.c (_bfd_x86_elf_merge_gnu_properties): Handle
1553 -z lam-u48 and -z lam-u57.
1554
573fe3fb
NC
15552021-01-09 Nick Clifton <nickc@redhat.com>
1556
1557 * version.m4: Change to 2.36.50.
1558 * configure: Regenerate.
1559 * po/bfd.pot: Regenerate.
1560
055bc77a
NC
15612021-01-09 Nick Clifton <nickc@redhat.com>
1562
1563 * 2.36 release branch crated.
1564
ba9e922f
L
15652021-01-08 H.J. Lu <hongjiu.lu@intel.com>
1566
1567 * elfxx-x86.c (_bfd_x86_elf_link_setup_gnu_properties): Also set
1568 LAM_U57 when setting LAM_U48.
1569
b1b29aa5
L
15702021-01-08 H.J. Lu <hongjiu.lu@intel.com>
1571
1572 PR ld/26256
1573 PR ld/27160
1574 * elflink.c (elf_fixup_link_order): Verify that fixing up
1575 SHF_LINK_ORDER doesn't increase the output section size.
1576
64307045
AM
15772021-01-09 Alan Modra <amodra@gmail.com>
1578
1579 * configure: Regenerate.
1580
f4782128
ST
15812021-01-07 Samuel Thibault <samuel.thibault@gnu.org>
1582
1583 * configure: Regenerate.
1584
d1bcae83
L
15852021-01-07 H.J. Lu <hongjiu.lu@intel.com>
1586
1587 PR 27109
1588 * aix386-core.c (core_aix386_vec): Initialize
1589 keep_unused_section_symbol to TARGET_KEEP_UNUSED_SECTION_SYMBOLS.
1590 * aout-target.h (MY (vec)): Likewise.
1591 * binary.c (binary_vec): Likewise.
1592 * cisco-core.c (core_cisco_be_vec): Likewise.
1593 (core_cisco_le_vec): Likewise.
1594 * coff-alpha.c (alpha_ecoff_le_vec): Likewise.
1595 * coff-i386.c (TARGET_SYM): Likewise.
1596 (TARGET_SYM_BIG): Likewise.
1597 * coff-ia64.c (TARGET_SYM): Likewise.
1598 * coff-mips.c (mips_ecoff_le_vec): Likewise.
1599 (mips_ecoff_be_vec): Likewise.
1600 (mips_ecoff_bele_vec): Likewise.
1601 * coff-rs6000.c (rs6000_xcoff_vec): Likewise.
1602 (powerpc_xcoff_vec): Likewise.
1603 * coff-sh.c (sh_coff_small_vec): Likewise.
1604 (sh_coff_small_le_vec): Likewise.
1605 * coff-tic30.c (tic30_coff_vec): Likewise.
1606 * coff-tic54x.c (tic54x_coff0_vec): Likewise.
1607 (tic54x_coff0_beh_vec): Likewise.
1608 (tic54x_coff1_vec): Likewise.
1609 (tic54x_coff1_beh_vec): Likewise.
1610 (tic54x_coff2_vec): Likewise.
1611 (tic54x_coff2_beh_vec): Likewise.
1612 * coff-x86_64.c (TARGET_SYM): Likewise.
1613 (TARGET_SYM_BIG): Likewise.
1614 * coff64-rs6000.c (rs6000_xcoff64_vec): Likewise.
1615 (rs6000_xcoff64_aix_vec): Likewise.
1616 * coffcode.h (CREATE_BIG_COFF_TARGET_VEC): Likewise.
1617 (CREATE_BIGHDR_COFF_TARGET_VEC): Likewise.
1618 (CREATE_LITTLE_COFF_TARGET_VEC): Likewise.
1619 * elfxx-target.h (TARGET_BIG_SYM): Likewise.
1620 (TARGET_LITTLE_SYM): Likewise.
1621 * hppabsd-core.c (core_hppabsd_vec): Likewise.
1622 * hpux-core.c (core_hpux_vec): Likewise.
1623 * i386msdos.c (i386_msdos_vec): Likewise.
1624 * ihex.c (ihex_vec): Likewise.
1625 * irix-core.c (core_irix_vec): Likewise.
1626 * mach-o-target.c (TARGET_NAME): Likewise.
1627 * mmo.c (mmix_mmo_vec): Likewise.
1628 * netbsd-core.c (core_netbsd_vec): Likewise.
1629 * osf-core.c (core_osf_vec): Likewise.
1630 * pdp11.c (MY (vec)): Likewise.
1631 * pef.c (pef_vec): Likewise.
1632 (pef_xlib_vec): Likewise.
1633 * plugin.c (plugin_vec): Likewise.
1634 * ppcboot.c (powerpc_boot_vec): Likewise.
1635 * ptrace-core.c (core_ptrace_vec): Likewise.
1636 * sco5-core.c (core_sco5_vec): Likewise.
1637 * som.c (hppa_som_vec): Likewise.
1638 * srec.c (srec_vec): Likewise.
1639 (symbolsrec_vec): Likewise.
1640 * tekhex.c (tekhex_vec): Likewise.
1641 * trad-core.c (core_trad_vec): Likewise.
1642 * verilog.c (verilog_vec): Likewise.
1643 * vms-alpha.c (alpha_vms_vec): Likewise.
1644 * vms-lib.c (alpha_vms_lib_txt_vec): Likewise.
1645 * wasm-module.c (wasm_vec): Likewise.
1646 * xsym.c (sym_vec): Likewise.
1647 * elf.c (ignore_section_sym): Return TRUE if BSF_SECTION_SYM_USED
1648 isn't set.
1649 (elf_map_symbols): Don't include ignored section symbols.
1650 * elfcode.h (elf_slurp_symbol_table): Also set
1651 BSF_SECTION_SYM_USED on STT_SECTION symbols.
1652 * elflink.c (bfd_elf_final_link): Generated section symbols only
1653 when emitting relocations or reqired.
1654 * elfxx-x86.h (TARGET_KEEP_UNUSED_SECTION_SYMBOLS): New.
1655 * syms.c (BSF_SECTION_SYM_USED): New.
1656 * targets.c (TARGET_KEEP_UNUSED_SECTION_SYMBOLS): New.
1657 (bfd_target): Add keep_unused_section_symbols.
1658 (bfd_keep_unused_section_symbols): New.
1659 * bfd-in2.h: Regenerated.
1660
17d60030
NC
16612021-01-07 Nick Clifton <nickc@redhat.com>
1662
1663 PR 25713
1664 * bfdio.c (_bfd_real_fopen): For Win32 convert relative paths to
1665 absolute paths and check to see if they are longer than MAX_PATH.
1666
aa881ecd
PT
16672021-01-07 Philipp Tomsich <prt@gnu.org>
1668
1669 * elfxx-riscv.c (riscv_std_z_ext_strtab): Added zihintpause.
1670
2652cfad
CXW
16712021-01-07 Claire Xenia Wolf <claire@symbioticeda.com>
1672 Jim Wilson <jimw@sifive.com>
1673 Andrew Waterman <andrew@sifive.com>
1674 Maxim Blinov <maxim.blinov@embecosm.com>
1675 Kito Cheng <kito.cheng@sifive.com>
1676 Nelson Chu <nelson.chu@sifive.com>
1677
1678 * elfxx-riscv.c (riscv_std_z_ext_strtab): Added zba, zbb and zbc.
1679
d4e57b87
L
16802021-01-06 H.J. Lu <hongjiu.lu@intel.com>
1681
1682 * elf32-bfin.c (bfin_check_relocs): Check bfd_link_hash_indirect.
1683 (bfinfdpic_check_relocs): Likewise.
1684
599c86c4
AM
16852021-01-06 Alan Modra <amodra@gmail.com>
1686
1687 * elf32-score.c (s3_bfd_score_info_to_howto): Report an error
1688 on unknown r_type.
1689 * elf32-score7.c (s7_bfd_score_info_to_howto): Likewise.
1690
3677b729
AM
16912021-01-06 Alan Modra <amodra@gmail.com>
1692
1693 * config.bfd (sparc-*-solaris2*): Add sparc_elf32_vec.
1694 (sparc64-*-solaris2*): Add sparc_elf64_vec and
1695 sparc_elf32_vec.
1696
fbc09e7a
MC
16972021-01-06 Marcus Comstedt <marcus@mc.pp.se>
1698
1699 * config.bfd: Added targets riscv64be*-*-*, riscv32be*-*-* and
1700 riscvbe*-*-*. Also added riscv_elf[32|64]_be_vec.
1701 * configure.ac: Handle riscv_elf[32|64]_be_vec.
1702 * configure: Regenerate.
1703 * elfnn-riscv.c: Include <limits.h> and define CHAR_BIT for
1704 riscv_is_insn_reloc.
1705 (riscv_get_insn): RISC-V instructions are always little endian, but
1706 bfd_get may be used for big-endian, so add new riscv_get_insn to handle
1707 the insturctions.
1708 (riscv_put_insn): Likewsie.
1709 (riscv_is_insn_reloc): Check if we are relocaing an instruction.
1710 (perform_relocation): Call riscv_is_insn_reloc to decide if we should
1711 use riscv_[get|put]_insn or bfd_[get|put].
1712 (riscv_zero_pcrel_hi_reloc): Use riscv_[get|put]_insn, bfd_[get|put]l32
1713 or bfd_[get|put]l16 for code.
1714 (riscv_elf_relocate_section): Likewise.
1715 (riscv_elf_finish_dynamic_symbol): Likewise.
1716 (riscv_elf_finish_dynamic_sections): Likewise.
1717 (_bfd_riscv_relax_call): Likewise.
1718 (_bfd_riscv_relax_lui): Likewise.
1719 (_bfd_riscv_relax_align): Likewise.
1720 (_bfd_riscv_relax_pc): Likewise.
1721 (riscv_elf_object_p): Handled for big endian.
1722 (TARGET_BIG_SYM, TARGET_BIG_NAME): Defined.
1723 * targets.c: Add riscv_elf[32|64]_be_vec.
1724 (_bfd_target_vector): Likewise.
1725
c8bad65e
AM
17262021-01-05 Alan Modra <amodra@gmail.com>
1727
1728 * elflink.c (bfd_elf_link_record_dynamic_symbol): Handle no_export
1729 for relocatable executable.
1730
de6a7ee4
AM
17312021-01-05 Alan Modra <amodra@gmail.com>
1732
1733 * vms-alpha.c (_bfd_vms_slurp_egsd): Read flags after size check.
1734
18b98722
NC
17352021-01-05 Nelson Chu <nelson.chu@sifive.com>
1736
1737 * elfnn-riscv.c (allocate_dynrelocs): When we are generating pde,
1738 make sure gp symbol is output as a dynamic symbol.
1739
cd6d537c
L
17402021-01-04 H.J. Lu <hongjiu.lu@intel.com>
1741
1742 PR ld/26256
1743 * elflink.c (compare_link_order): Place unordered sections before
1744 ordered sections.
1745 (elf_fixup_link_order): Add a link info argument. Allow mixed
1746 ordered and unordered input sections for non-relocatable link.
1747 Sort the consecutive bfd_indirect_link_order sections with the
1748 same pattern. Change the offsets of the bfd_indirect_link_order
1749 sections only.
1750 (bfd_elf_final_link): Pass info to elf_fixup_link_order.
1751 * section.c (bfd_section): Add pattern.
1752 (BFD_FAKE_SECTION): Initialize pattern to NULL.
1753 * bfd-in2.h: Regenerated.
1754
dbb078f6
AF
17552021-01-04 Alexander Fedotov <alfedotov@gmail.com>
1756
1757 * elf32-arm.c (elf32_arm_print_private_bfd_data): Prefix hex value
1758 of private flags with 0x.
1759 * elfnn-aarch64.c (elfNN_aarch64_print_private_bfd_data): Likewise.
1760
5b4293ba
AM
17612021-01-04 Alan Modra <amodra@gmail.com>
1762
1763 PR 26822
1764 * elflink.c (elf_link_input_bfd): Use the file base name in
1765 linker generated STT_FILE symbols.
1766
4c0e540e
NC
17672021-01-04 Nelson Chu <nelson.chu@sifive.com>
1768
1769 * elfxx-riscv.c (riscv_compare_subsets): Removed static.
1770 * elfxx-riscv.h: Add declaration.
1771 * elfnn-riscv.c (riscv_merge_multi_letter_ext): Use
1772 riscv_compare_subsets to check the orders.
1773 (riscv_skip_prefix): Removed.
1774 (riscv_prefix_cmp): Removed.
1775
e9cf3691
AM
17762021-01-04 Alan Modra <amodra@gmail.com>
1777
1778 PR 26741
1779 * elfxx-riscv.c (riscv_parse_prefixed_ext): Free subset after
1780 calculating subset version length.
1781
f9a6a8f0
AM
17822021-01-01 Nicolas Boulenguez <nicolas@debian.org>
1783
1784 * xcofflink.c: Correct spelling in comments.
1785
250d07de
AM
17862021-01-01 Alan Modra <amodra@gmail.com>
1787
1788 Update year range in copyright notice of all files.
1789
c2795844 1790For older changes see ChangeLog-2020
3499769a 1791\f
c2795844 1792Copyright (C) 2021 Free Software Foundation, Inc.
3499769a
AM
1793
1794Copying and distribution of this file, with or without modification,
1795are permitted in any medium without royalty provided the copyright
1796notice and this notice are preserved.
1797
1798Local Variables:
1799mode: change-log
1800left-margin: 8
1801fill-column: 74
1802version-control: never
1803End: