]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - bfd/ChangeLog
Synchronize libiberty sources (and include/demangle.h) with GCC master version
[thirdparty/binutils-gdb.git] / bfd / ChangeLog
CommitLineData
49910fd8
NC
12021-07-02 Nick Clifton <nickc@redhat.com>
2
3 PR 28046
4 * dwarf2.c (read_ranges): Check that range_ptr does not exceed
5 range_end.
6
9a39f738
YS
72021-06-30 YunQiang Su <yunqiang.su@cipunited.com>
8
9 PR mips/28009
10 * bfd/elfxx-mips.c (_bfd_mips_elf_section_from_shdr,
11 _bfd_mips_elf_fake_sections): Mark LTO debug info as
12 SHT_MIPS_DWARF.
13
c2ce8313
NC
142021-06-29 Nick Clifton <nickc@redhat.com>
15
16 * config.bfd (obsolete configurations): Add netbsdpe.
17
50331d64
NC
182021-06-22 Nelson Chu <nelson.chu@sifive.com>
19
20 * elfnn-riscv.c (riscv_pcrel_hi_reloc): Added field to store
21 the original relocation type, in case the type is converted to
22 R_RISCV_HI20.
23 (riscv_pcrel_lo_reloc): Removed unused name field.
24 (riscv_pcrel_relocs): Added comments.
25 (riscv_zero_pcrel_hi_reloc): Removed unused input_bfd.
26 (riscv_record_pcrel_hi_reloc): Updated.
27 (riscv_record_pcrel_lo_reloc): Likewise.
28 (riscv_resolve_pcrel_lo_relocs): Likewise. Check the original
29 type of auipc, to make sure the %pcrel_lo without any addends.
30 Otherwise, report dangerous relocation error.
31 (riscv_elf_relocate_section): Updated above functions are changed.
32 For R_RISCV_GOT_HI20, report dangerous relocation error when addend
33 isn't zero.
34
406b4ada
L
352021-06-19 H.J. Lu <hongjiu.lu@intel.com>
36
37 PR ld/27998
38 * elfxx-x86.c (elf_x86_allocate_dynrelocs): Count PLT for GOTOFF
39 relocation against IFUNC symbols.
40 (_bfd_x86_elf_adjust_dynamic_symbol): Likewise.
41
83b1d8f4
L
422021-06-19 H.J. Lu <hongjiu.lu@intel.com>
43
44 * elflink.c (bfd_elf_final_link): Correct DT_TEXTREL warning in
45 PDE.
46
5a767724
L
472021-06-18 H.J. Lu <hongjiu.lu@intel.com>
48
49 * elf-properties.c (_bfd_elf_parse_gnu_properties): Handle
50 GNU_PROPERTY_UINT32_AND_LO, GNU_PROPERTY_UINT32_AND_HI,
51 GNU_PROPERTY_UINT32_OR_LO and GNU_PROPERTY_UINT32_OR_HI.
52 (elf_merge_gnu_properties): Likewise.
53
f64b9b13
AM
542021-06-11 Alan Modra <amodra@gmail.com>
55
56 PR 27952
57 * elf-bfd.h (struct elf_obj_tdata): Add is_pie.
58 * elflink.c (elf_link_add_object_symbols): Set is_pie.
59
f75bcf7e
NC
602021-06-09 Nick Clifton <nickc@redhat.com>
61
62 PR 27666
63 * config.bfd: Do not add the sparc_elf32_vec or sparc_elf64_vec
64 vectors to Sparc Solaris2 targets.
65
5804373d
MM
662021-06-08 Michael Matz <matz@suse.de>
67
68 * elf.c (bfd_section_from_shdr): Set has_secondary_relocs flag.
69 (_bfd_elf_slurp_secondary_reloc_section): Use it for early-out.
70
6bee34a1
JB
712021-06-07 Jan Beulich <jbeulich@suse.com>
72
73 * dwarf2.c (read_ranges, read_rnglists): Add u suffix to constant.
74
45342c7c
AM
752021-06-02 Alan Modra <amodra@gmail.com>
76
77 * elf-attrs.c (_bfd_elf_parse_attributes): Break out of loop if
78 subsection length is too small to cover tag and length field.
79
ef9d2565
NC
802021-05-31 Nelson Chu <nelson.chu@sifive.com>
81 Lifang Xia <lifang_xia@c-sky.com>
82
83 PR 27566
84 * elfnn-riscv.c (struct riscv_elf_link_hash_table): New integer pointer
85 to monitor the data segment phase.
86 (bfd_elfNN_riscv_set_data_segment_info): New function called by
87 after_allocation, to set the data_segment_phase from expld.dataseg.
88 (_bfd_riscv_relax_section): Don't relax when data_segment_phase is
89 exp_seg_relro_adjust (0x4).
90 * elfxx-riscv.h (bfd_elf32_riscv_set_data_segment_info): New extern.
91 (bfd_elf64_riscv_set_data_segment_info): Likewise
92
1273b2f8
L
932021-05-28 H.J. Lu <hongjiu.lu@intel.com>
94
95 PR ld/27905
96 * elf32-i386.c: Don't include "libiberty.h".
97 (elf_howto_table): Revert commits a7664973b24 and 50c95a739c9.
98 (elf_i386_rtype_to_howto): Revert commit 50c95a739c9.
99 (elf_i386_info_to_howto_rel): Likewise.
100 (elf_i386_tls_transition): Likewise.
101 (elf_i386_relocate_section): Likewise.
102 * elf64-x86-64.c (x86_64_elf_howto_table): Revert commits
103 a7664973b24 and 50c95a739c9.
104 (elf_x86_64_rtype_to_howto): Revert commit 50c95a739c9.
105 * elfxx-x86.c (_bfd_x86_elf_parse_gnu_properties): Likewise.
106 * elfxx-x86.h (elf_x86_obj_tdata): Likewise.
107 (elf_x86_has_code16): Likewise.
108
50c95a73
L
1092021-05-26 H.J. Lu <hongjiu.lu@intel.com>
110
111 PR ld/27905
112 * elf32-i386.c: Include "libiberty.h".
113 (elf_howto_table): Add 16-bit R_386_PC16 entry.
114 (elf_i386_rtype_to_howto): Add a BFD argument. Use 16-bit
115 R_386_PC16 if input has 16-bit mode instructions.
116 (elf_i386_info_to_howto_rel): Update elf_i386_rtype_to_howto
117 call.
118 (elf_i386_tls_transition): Likewise.
119 (elf_i386_relocate_section): Likewise.
120 * elf64-x86-64.c (x86_64_elf_howto_table): Add 16-bit
121 R_X86_64_PC16 entry.
122 (elf_x86_64_rtype_to_howto): Use 16-bit R_X86_64_PC16 if input
123 has 16-bit mode instructions.
124 * elfxx-x86.c (_bfd_x86_elf_parse_gnu_properties): Set
125 elf_x86_has_code16 if relocatable input is marked with
126 GNU_PROPERTY_X86_FEATURE_2_CODE16.
127 * elfxx-x86.h (elf_x86_obj_tdata): Add has_code16.
128 (elf_x86_has_code16): New.
129
fe1f847d
NC
1302021-05-26 Nelson Chu <nelson.chu@sifive.com>
131
132 * elfxx-riscv.h (check_unknown_prefixed_ext): New bool.
133 * elfxx-riscv.c (riscv_parse_prefixed_ext): Do not check the
134 prefixed extension name if check_unknown_prefixed_ext is false.
135 * elfnn-riscv.c (riscv_merge_arch_attr_info): Set
136 check_unknown_prefixed_ext to false for linker.
137
74fd118f
NC
1382021-05-25 Nick Clifton <nickc@redhat.com>
139
140 * elf32-arn.c (struct elf_arm_obj_tdata): Add num_entries field.
141 (elf32_arm_num_entries): New macro.
142 (elf32_arm_allocate_local_sym_info): Initialise the new field.
143 Allocate arrays individually so that buffer overruns can be
144 detected by memory checkers.
145 (elf32_arm_create_local_iplt): Check num_entries.
146 (elf32_arm_get_plt_info): Likewise.
147 (elf32_arm_final_link_relocate): Likewise.
148 (elf32_arm_check_relocs): Likewise.
149 (elf32_arm_size_dynamic_sections): Likewise.
150 (elf32_arm_output_arch_local_syms): Likewise.
151
cc850f74
NC
1522021-05-25 Nick Clifton <nickc@redhat.com>
153
154 * elf32-arm.c: Fix formatting.
155
4be1e8db
AM
1562021-05-25 Alan Modra <amodra@gmail.com>
157
158 * elf-attrs.c (elf_attr_strdup): New function.
159 (_bfd_elf_attr_strdup): Use it here.
160 (elf_add_obj_attr_string): New function, extracted from..
161 (bfd_elf_add_obj_attr_string): ..here.
162 (elf_add_obj_attr_int_string): New function, extracted from..
163 (bfd_elf_add_obj_attr_int_string): ..here.
164 (_bfd_elf_parse_attributes): Don't allocate an extra byte for a
165 string terminator. Instead ensure parsing doesn't go past
166 end of sub-section. Use size_t variables for lengths.
167
574ec108
AM
1682021-05-22 Alan Modra <amodra@gmail.com>
169
170 * libbfd.c (_bfd_safe_read_leb128): Remove length_return parameter.
171 Replace data pointer with pointer to pointer. Increment pointer
172 over bytes read.
173 * libbfd-in.h (_bfd_safe_read_leb128): Update prototype.
174 * elf-attrs.c (_bfd_elf_parse_attributes): Adjust to suit. Be
175 careful not to increment data pointer past end. Remove now
176 redundant pr17512 check.
177 * wasm-module.c (READ_LEB128): Adjust to suit changes to
178 _bfd_safe_read_leb128.
179 * dwarf2.c (read_n_bytes): New inline function, old one renamed to..
180 (read_blk): ..this. Allocate and return block. Increment bfd_byte**
181 arg.
182 (read_3_bytes): New function.
183 (read_1_byte, read_1_signed_byte, read_2_bytes, read_4_bytes),
184 (read_8_bytes, read_string, read_indirect_string),
185 (read_indirect_line_string, read_alt_indirect_string): Take a
186 byte_byte** arg which is incremented over bytes read. Remove any
187 bytes_read return. Rewrite limit checks to compare lengths
188 rather than pointers.
189 (read_abbrevs, read_attribute_value, read_formatted_entries),
190 (decode_line_info, find_abstract_instance, read_ranges),
191 (read_rnglists, scan_unit_for_symbols, parse_comp_unit),
192 (stash_comp_unit): Adjust to suit. Rewrite limit checks to
193 compare lengths rather than pointers.
194 * libbfd.h: Regenerate.
195
894982bf
LM
1962021-05-21 Luis Machado <luis.machado@linaro.org>
197
198 * elf.c (elfcore_make_memtag_note_section): New function.
199 (elfcore_grok_note): Handle NT_MEMTAG note types.
200
427e4066
AB
2012021-05-20 Andrew Burgess <andrew.burgess@embecosm.com>
202
203 * section.c (bfd_get_section_by_name): Return NULL if name is
204 NULL.
205 (bfd_get_section_by_name_if): Likewise.
206 * dwarf2.c (read_section): Remove unneeded NULL check.
207 (find_debug_info): Likewise.
208
83b0a686
NC
2092021-05-19 Nick Clifton <nickc@redhat.com>
210
211 * plugin.c (bfd_plugin_open_input): Inform the user if the limit
212 on the number of open files is reached. If possible, try to
213 increase this limit before failing.
214
75f03fa7
NC
2152021-05-14 Nelson Chu <nelson.chu@sifive.com>
216
217 * elfnn-riscv.c (riscv_resolve_pcrel_lo_relocs): Check the values
218 of %pcrel_hi, before and after adding the addend. Make sure the
219 value won't be changed, otherwise, report dangerous error.
220
7671eff8
NC
2212021-05-13 Nelson Chu <nelson.chu@sifive.com>
222
223 * elfxx-riscv.c (check_implicit_always): The check_func, always add
224 the implicit subset without checking.
225 (check_implicit_for_i): The check_func for i, only add zicsr and
226 zifencei when the version of i less than 2.1.
227 (struct riscv_implicit_subset): Record the subsets and their
228 corresponding implicit subsets.
229 (riscv_implicit_subsets): Table records all implicit informations.
230 (riscv_parse_add_implicit_subsets): Updated and add implicit subsets
231 according to riscv_implicit_subsets. Remove the redundant codes.
232
4863cddb
AM
2332021-05-13 Alan Modra <amodra@gmail.com>
234
235 PR 27858
236 * elf32-sh.c (sh_elf_info_to_howto): Correct check for last valid
237 reloc howto.
238
f0bbe8ba
LM
2392021-05-12 Luis Machado <luis.machado@linaro.org>
240
241 * elf-bfd.h (elfcore_write_aarch_mte): New prototype.
242 * elf.c (elfcore_grok_aarch_mte, elfcore_write_aarch_mte): New
243 functions.
244 (elfcore_grok_note): Handle notes of type NT_ARM_TAGGED_ADDR_CTRL.
245 (elfcore_write_register_note): Handle MTE notes.
246
8ca5537b
AM
2472021-05-11 Alan Modra <amodra@gmail.com>
248
249 PR 27844
250 * pdp11.c (aout_get_external_symbols): Clear first four bytes of
251 strings array, not just the first byte.
252 * aoutx.h (aout_get_external_symbols): Likewise.
253
b397aef4
L
2542021-05-10 H.J. Lu <hongjiu.lu@intel.com>
255
256 PR binutils/27839
257 * simple.c (bfd_simple_get_relocated_section_contents): Remove
258 strayed fprintf.
259
23182ac0
NC
2602021-05-10 Nick Clifton <nickc@redhat.com>
261
262 PR 27839
263 * simple.c (simple_dummy_add_to_set): New function.
264 (simple_dummy_constructor): New function.
265 (simple_dummy_multiple_common): New function.
266 (bfd_simple_get_relocated_section_contents): Zero out the
267 callbacks structure, and then set the add_to_set, constructor and
268 multiple_common fields.
269
5b45e89f
DD
2702021-05-10 Dimitar Dimitrov <dimitar@dinux.eu>
271
272 * elf32-pru.c (elf_backend_can_gc_sections): Define as 1.
273
cf758b39
MF
2742021-05-08 Mike Frysinger <vapier@gentoo.org>
275
276 * doc/Makefile.am (html-local, bfd/index.html): New targets.
277 * doc/Makefile.in: Regenerate.
278
2faf902d
MF
2792021-05-08 Mike Frysinger <vapier@gentoo.org>
280
281 * doc/Makefile.am (AM_MAKEINFOFLAGS): Define.
282 * doc/Makefile.in: Regenerate.
283
97834047
CC
2842021-05-07 Clément Chigot <clement.chigot@atos.net>
285
286 * coff-rs6000.c (xcoff_dwsect_names): Add new DWARF
287 sections.
288 * coffgen.c (coff_pointerize_aux): Handle C_DWARF.
289 (coff_print_symbol): Likewise.
290 * libxcoff.h (XCOFF_DWSECT_NBR_NAMES): Update.
291
17c6c3b9
JB
2922021-05-07 Jan Beulich <jbeulich@suse.com>
293
294 * elf64-x86-64.c (x86_64_elf_howto_table): Set src_mask fields
295 to zero.
296
a41513ef
AM
2972021-05-07 Alan Modra <amodra@gmail.com>
298
299 * bfd-in2.h: Regenerate.
300 * libbfd.h: Regenerate.
301
284a1309
SH
3022021-05-06 Stafford Horne <shorne@gmail.com>
303
304 PR 27746
305 * elf32-or1k.c (PLT_ENTRY_SIZE_LARGE, PLT_MAX_INSN_COUNT,
306 OR1K_ADD, OR1K_ORI): New macros to help with plt creation.
307 (elf_or1k_link_hash_table): New field plt_count.
308 (elf_or1k_link_hash_entry): New field plt_index.
309 (elf_or1k_plt_entry_size): New function.
310 (or1k_write_plt_entry): Update to support variable size PLTs.
311 (or1k_elf_finish_dynamic_sections): Use new or1k_write_plt_entry
312 API.
313 (or1k_elf_finish_dynamic_symbol): Update to write large PLTs
314 when needed.
315 (allocate_dynrelocs): Use elf_or1k_plt_entry_size to account for
316 PLT size.
317
3c3de29b
SH
3182021-05-06 Stafford Horne <shorne@gmail.com>
319
320 PR 21464
321 * elf32-or1k.c (or1k_elf_relocate_section): Relax R_OR1K_GOT16
322 overflow check if we have R_OR1K_GOT_AHI16 followed by
323 R_OR1K_GOT16.
324
0b3e14c9
SH
3252021-05-06 Stafford Horne <shorne@gmail.com>
326
327 PR 21464
328 * bfd-in2.h: Add BFD_RELOC_OR1K_GOT_AHI16 relocation.
329 * elf32-or1k.c (or1k_elf_howto_table, or1k_reloc_map): Likewise.
330 (or1k_final_link_relocate, or1k_elf_relocate_section,
331 or1k_elf_check_relocs): Likewise.
332 * libbfd.h (bfd_reloc_code_real_names): Likewise.
333 * reloc.c: Likewise.
334
a76ef689
SH
3352021-05-06 Stafford Horne <shorne@gmail.com>
336
337 PR 27624
338 * elf32-or1k.c (or1k_elf_adjust_dynamic_symbol): Change
339 condition used to cleanup plt entries to cleanup forced local
340 entries.
341
4467df35
L
3422021-05-05 H.J. Lu <hongjiu.lu@intel.com>
343
344 PR ld/27825
345 * elflink.c (elf_link_output_symstrtab): Always append ".COUNT"
346 to local symbols.
347
c38c6234
AM
3482021-05-05 Alan Modra <amodra@gmail.com>
349
350 * vms-lib.c (vms_traverse_index): Account for vms_kbn size when
351 sanity checking keylen.
352
bd6d8601
NC
3532021-05-04 Nick Clifton <nickc@redhat.com>
354
355 * libbfd.c (bfd_malloc): Provide some documenation. Treat a size
356 of 0 as 1.
357 (bfd_realloc): Likewise.
358 (bfd_zmalloc): Likewise.
359 (bfd_realloc_or_free): Provide some documentation. Treat a size
360 of 0 as a request to free.
361 * libbfd-in.h (bfd_realloc): Remove prototype.
362 (bfd_realloc_or_free): Remove prototype.
363 (bfd_zmalloc): Remove prototype.
364 * libbfd.h: Regenerate.
365
4c398cc0
JB
3662021-05-03 Jan Beulich <jbeulich@suse.com>
367
368 * elf32-i386.c (elf_howto_table): Switch all 32-bit relocs to
369 complain_overflow_dont.
370 * elf64-x86-64.c (x86_64_elf_howto_table): Switch all 64-bit
371 relocs to complain_overflow_dont.
372
49160308
AM
3732021-05-03 Alan Modra <amodra@gmail.com>
374
375 * elf32-ppc.c (allocate_dynrelocs): Keep dyn_relocs for undefweak
376 symbols when -z dynamic-undefined-weak or when there are no
377 dynamic relocs in read-only sections and -z nodynamic-undefined-weak
378 is not given.
379 * elf64-ppc.c (allocate_dynrelocs): Likewise.
380
b2936612
AM
3812021-05-03 Alan Modra <amodra@gmail.com>
382
383 * elf32-ppc.c (allocate_dynrelocs): Call ensure_undef_dynamic for
384 weak undefined symols that only appear on PLT relocs.
385 * elf64-ppc.c (allocate_dynrelocs): Likewise.
386
337d0bf8
AM
3872021-05-03 Alan Modra <amodra@gmail.com>
388
389 PR 27755
390 * elf32-ppc.c (ppc_elf_inline_plt): Do increment rel in loop.
391
5072b52d
AM
3922021-05-03 Alan Modra <amodra@gmail.com>
393
394 * elf32-csky.c (is_mapping_symbol_name): New function.
395 (csky_elf_is_target_special_symbol): Likewise.
396 (csky_elf_maybe_function_sym): Likewise.
397 (bfd_elf32_bfd_is_target_special_symbol): Define.
398 (elf_backend_maybe_function_sym): Define.
399
d1fbc3ba
NC
4002021-04-30 Nick Clifton <nickc@redhat.com>
401
402 PR 27801
403 * mach-o.c (bfd_mach_o_core_fetch_environment): Use bfd_get_32 to
404 read 32-bit value.
405
9f84cb38
NC
4062021-04-30 Nick Clifton <nickc@redhat.com>
407
408 PR 27799
409 * elf32-xtensa.c (elf_xtensa_grok_prstatus): Check for core notes
410 that are too small.
411
6cb40a67
NC
4122021-04-30 Nick Clifton <nickc@redhat.com>
413
414 PR 27797
415 * libbfd.c (bfd_realloc_or_free): Do not free a pointer than has
416 been realloc'ed to size 0.
417
bceb87ef
NC
4182021-04-30 Nick Clifton <nickc@redhat.com>
419
420 PR 27795
421 * coff-rs6000.c (_bfd_xcoff_read_ar_hdr): Check for invalid name
422 lengths.
423
09e40e44
NC
4242021-04-29 Nick Clifton <nickc@redhat.com>
425
426 PR 27793
427 * som.c (som_slurp_symbol_table): Assign symbols without any scope
428 to the undefined section.
429 (som_decode_symclass): Check for a missing symbol section.
430 * syms.c (bfd_decode_symclass): Likewise.
431
063e75c9
NC
4322021-04-29 Nick Clifton <nickc@redhat.com>
433
434 PR 27792
435 * som.c (som_slurp_string_table): Place a terminating NUL byte at
436 the end of the table.
437 (som_slurp_symbol_table): Check for an over-large offset into the
438 string string table.
439
24aebc79
NC
4402021-04-28 Nick Clifton <nickc@redhat.com>
441
442 * elf.c (_bfd_elf_maybe_function_sym): Do not accept annobin
443 symbols as potential function symbols.
444 * elfnn-aarch64.c (elfNN_aarch64_maybe_function_sym): Likewise.
445 * elf64-ppc.c (ppc64_elf_maybe_function_sym): Likewise.
446 * elf32-arm.c (elf32_arm_maybe_function_sym): Likewise.
447
3955e346
MF
4482021-04-26 Mike Frysinger <vapier@gentoo.org>
449
450 * elf-bfd.h: Include stdlib.h.
451
a7664973
JB
4522021-04-26 Jan Beulich <jbeulich@suse.com>
453
454 * elf32-i386.c (elf_howto_table): Switch R_386_PC16 to
455 complain_overflow_signed.
456 * elf64-x86-64.c (x86_64_elf_howto_table): Switch R_X86_64_PC16
457 to complain_overflow_signed.
458
f5e98b7d
EB
4592021-04-23 Eric Botcazou <ebotcazou@adacore.com>
460
461 * elf.c (special_sections_p): Add .persistent.bss.
462
c21346c5
JB
4632021-04-23 Jan Beulich <jbeulich@suse.com>
464
465 * elf32-i386.c (elf_howto_table): R_386_TLS_DESC_CALL has zero
466 size field.
467 * elf64-x86-64.c (x86_64_elf_howto_table): R_X86_64_TLSDESC_CALL
468 has zero size field.
469
bdd2aaf6
CC
4702021-04-22 Clément Chigot <clement.chigot@atos.net>
471
472 * hash.c (struct bfd_strtab_hash): Remove xcoff field.
473 Add length_field_size field.
474 (_bfd_stringtab_init): Change prototype.
475 Adapt to new length_field_size.
476 (_bfd_xcoff_stringtab_init): Likewise.
477 (_bfd_stringtab_add): Likewise.
478 (_bfd_stringtab_emit): Likewise.
479 * libbfd-in.h (_bfd_xcoff_stringtab_init):
480 Change prototype.
481 * libbfd.h: Regenerate.
482 * xcofflink.c (_bfd_xcoff_bfd_link_hash_table_create):
483 Call _bfd_xcoff_stringtab_init with isxcoff64 value.
484
b11b2969
CC
4852021-04-22 Clément Chigot <clement.chigot@atos.net>
486
487 * coff-rs6000.c (_bfd_xcoff_swap_aux_in): Add errors for
488 unsupported storage class or auxialiry entries.
489 Improve and adapt to new aux structures.
490 Add C_DWARF support.
491 (_bfd_xcoff_swap_aux_out): Likewise.
492 * coff64-rs6000.c (_bfd_xcoff64_swap_aux_in): Likewise.
493 (_bfd_xcoff64_swap_aux_out): Likewise.
494
18e9a809
EZ
4952021-04-21 Eli Zaretskii <eliz@gnu.org>
496
497 PR 27760
498 * peXXigen.c (_bfd_XX_print_private_bfd_data_common): Add display
499 of IMAGE_FILE_REMOVABLE_RUN_FROM_SWAP,
500 IMAGE_FILE_NET_RUN_FROM_SWAP and IMAGE_FILE_UP_SYSTEM_ONLY flags.
501 Decode the contents of the DllCharacteristics field.
502
33fe00c1
NC
5032021-04-21 Nick Clifton <nickc@redhat.com>
504
505 PR 27759
506 * srec.c (srec_read_section): Replace assertions with error
507 returns.
508
c5df7e44
CC
5092021-04-20 Clément Chigot <clement.chigot@atos.net>
510
511 PR binutils/21700
512 * reloc.c (BFD_RELOC_PPC_NEG): New relocation.
513 * bfd-in2.h: Regenerate.
514 * libbfd.h: Regenerate.
515 * coff-rs6000.c (_bfd_xcoff_reloc_type_lookup): Add
516 BFD_RELOC_PPC_NEG handler.
517 (xcoff_reloc_type_neg): Correctly substract addend.
518 * coff64-rs6000.c (xcoff64_howto_table): Add R_NEG_32
519 howto.
520 (xcoff64_rtype2howto): Add handler for R_NEG_32.
521 (xcoff64_reloc_type_lookup): Add BFD_RELOC_PPC_NEG handler.
522 * xcofflink.c (xcoff_need_ldrel_p): Check output section
523 for R_POS-like relocations. New argument added.
524 (xcoff_mark): Adapt to new xcoff_need_ldrel_p argument.
525 (xcoff_link_input_bfd): Likewise.
526
6f8f6017
AM
5272021-04-16 Alan Modra <amodra@gmail.com>
528
529 PR 27567
530 * coffcode.h (styp_to_sec_flags): Use an unsigned long styp_flags.
531 (coff_write_object_contents): Pass bfd to COFF_ENCODE_ALIGNMENT,
532 ignore alignment checks when return is false. Formatting.
533
ddfe525f
NC
5342021-04-15 Nelson Chu <nelson.chu@sifive.com>
535
536 PR27584
537 * elfnn-riscv.c (riscv_elf_is_target_special_symbol): Added to
538 omit local and empty symbols since they usually generated to
539 mark the auipc instructions.
540
f6a1f957
LX
5412021-04-15 Lifang Xia<lifang_xia@c-sky.com>
542
543 * elf32-csky.c (csky_elf_howto_table)
544 <R_CKCORE_PCREL_IMM16BY2>: Set special_function to
545 bfd_elf_generic_reloc.
546 <R_CKCORE_PCREL_IMM16BY4>: Likewise.
547 <R_CKCORE_PCREL_IMM10BY4>: Likewise.
548 <R_CKCORE_PCREL_IMM18BY2>: Likewise.
549 <R_CKCORE_PCREL_FLRW_IMM8BY4>: Likewise.
550
9917b559
L
5512021-04-14 H.J. Lu <hongjiu.lu@intel.com>
552
553 PR binutils/27708
554 * elf.c (assign_file_positions_for_non_load_sections): Set
555 p_memsz to p_filesz for the loadable PT_NOTE segment.
556
5f47741b
FC
5572021-04-14 Frederic Cambus <fred@statdns.com>
558
559 * elf.c (elfcore_grok_netbsd_note): Remove unneeded #ifdef
560 checks for NT_NETBSDCORE_AUXV and NT_NETBSDCORE_LWPSTATUS.
561
8985b74b
AM
5622021-04-14 Alan Modra <amodra@gmail.com>
563
564 PR 27631
565 * elf32-metag.c (elf_metag_relocate_section): Don't use &hh->elf
566 when hh might be NULL, test for NULL first.
567
c9f9a78d
AM
5682021-04-14 Alan Modra <amodra@gmail.com>
569
570 PR 27630
571 * elf32-arm.c (elf32_arm_size_stubs): Don't use &hash->root when
572 hash might be NULL, cast instead.
573
d2f1139e
CC
5742021-04-13 Clément Chigot <clement.chigot@atos.net>
575
576 * xcofflink.c (xcoff_link_check_ar_symbols): Update esym earlier.
577
e3839c10
NC
5782021-04-13 Nelson Chu <nelson.chu@sifive.com>
579
580 * elfnn-riscv.c (riscv_version_mismatch): Do not report the warning
581 when the version of input or output is RISCV_UNKNOWN_VERSION, since
582 the extension is added implicitly.
583 * elfxx-riscv.c: Updated the obsolete comments.
584 (RISCV_UNKNOWN_VERSION): Moved to elfxx-riscv.h.
585 * elfxx-riscv.h (RISCV_UNKNOWN_VERSION): Added.
586
43e05cd4
AM
5872021-04-12 Alan Modra <amodra@gmail.com>
588
589 * elf-bfd.h (ENABLE_CHECKING): Define.
590 (elf_link_hash_lookup): Abort if wrong type of hash table.
591 * configure.ac (--enable-checking): Add support.
592 * config.in: Regenerate.
593 * configure: Regenerate.
594
2cc15b10
AM
5952021-04-12 Alan Modra <amodra@gmail.com>
596
597 * elf-bfd.h (is_elf_hash_table): Convert macro to inline function.
598 (elf_link_hash_lookup, elf_link_hash_traverse): Likewise.
599 (elf_hash_table, elf_hash_table_id): Likewise.
600 * elf32-arm.c (elf32_arm_setup_section_lists): Delete redundant
601 is_elf_hash_table check.
602 * elf32-csky.c (elf32_csky_setup_section_lists): Likewise.
603 * elf32-hppa.c (clobber_millicode_symbols): Correct param types.
604 * elf64-alpha.c (elf64_alpha_output_extsym): Likewise.
605 * elfnn-ia64.c (elfNN_ia64_global_dyn_info_free: Likewise.
606 (elfNN_ia64_global_dyn_sym_thunk: Likewise.
607 * elf64-ia64-vms.c (elf64_ia64_global_dyn_info_free): Likewise.
608 (elf64_ia64_global_dyn_sym_thunk): Likewise.
609 (elf64_vms_link_add_object_symbols): Pass base type of hash table
610 to is_elf_hash_table.
611 * elflink.c (_bfd_elf_dynamic_symbol_p): Likewise.
612 (_bfd_elf_symbol_refs_local_p, _bfd_elf_add_dynamic_entry): Likewise.
613 (_bfd_elf_strip_zero_sized_dynamic_sections): Likewise.
614 (_bfd_elf_link_check_relocs, elf_link_add_object_symbols): Likewise.
615 (bfd_elf_final_link): Likewise.
616 * elfnn-aarch64.c (elfNN_aarch64_setup_section_lists): Likewise.
617 * elf64-ppc.c (ppc64_elf_set_toc): Likewise. Use bfd_link_hash_lookup.
618
b585e899
AM
6192021-04-12 Alan Modra <amodra@gmail.com>
620
621 * elf-bfd.h (struct elf_backend_data): Return bfd_link_hash_entry*
622 from elf_backend_archive_symbol_lookup.
623 (_bfd_elf_archive_symbol_lookup): Return bfd_link_hash_entry*.
624 * elf64-ppc.c (ppc64_elf_archive_symbol_lookup): Likewise. Check
625 we have a ppc_hash_table before accessing ppc_link_hash_entry
626 fields.
627 * elflink.c (_bfd_elf_archive_symbol_lookup): Return
628 bfd_link_hash_entry*.
629 (elf_link_add_archive_symbols): Adjust to suit.
630
f5b10973
NC
6312021-04-12 Nelson Chu <nelson.chu@sifive.com>
632
633 * elfxx-riscv.c (riscv_parse_std_ext): Fixed the wrong versions of
634 i-ext when expanding g-ext.
635
f0bae255
NC
6362021-04-12 Nelson Chu <nelson.chu@sifive.com>
637
638 * elfxx-riscv.c (riscv_ext_dont_care_version): Removed.
639 (riscv_parse_add_subset): Always add the implicit extensions, even if
640 their versions are RISCV_UNKNOWN_VERSION.
641 (riscv_parse_std_ext): Delay to add i-ext as the implicit extension
642 in the riscv_parse_add_implicit_subsets. Besides, add g-ext as the
643 implicit extension after it has been expanded.
644 (riscv_parse_add_implicit_subsets): Updated.
645
e601909a
NC
6462021-04-12 Nelson Chu <nelson.chu@sifive.com>
647
648 * elfxx-riscv.c (riscv_std_z_ext_strtab): Moved forward.
649 (riscv_std_s_ext_strtab): Likewise.
650 (riscv_std_h_ext_strtab): Likewise.
651 (riscv_std_zxm_ext_strtab): Added for the zxm prefix.
652 (enum riscv_prefix_ext_class): Moved forward and renamed from
653 riscv_isa_ext_class. Reorder them according to the parsing order,
654 since the enum values are used to check the orders in the
655 riscv_compare_subsets.
656 (struct riscv_parse_prefix_config): Moved forward and renamed from
657 riscv_parse_config_t. Also removed the ext_valid_p field, the
658 related functions are replaced by riscv_valid_prefixed_ext.
659 (parse_config): Moved forward and updated. The more letters of the
660 prefix string, the more forward it must be defined. Otherwise, we
661 will get the wrong mapping when using strncmp in riscv_get_prefix_class.
662 (riscv_get_prefix_class): Moved forward. Support to parse the
663 multi-letter prefix, like zxm.
664 (riscv_known_prefixed_ext): New function, check if the prefixed
665 extension is supported according to the right riscv_std_*_ext_strtab.
666 (riscv_valid_prefixed_ext): New function, used to replace the
667 riscv_ext_*_valid_p functions.
668 (riscv_init_ext_order): Do not set the values for prefix keywords
669 since they may have multiple letters for now.
670 (riscv_compare_subsets): Set the order values of prefix keywords
671 to negative numbers according to the riscv_prefix_ext_class.
672 (riscv_parse_std_ext): Call riscv_get_prefix_class to see if we
673 have parsed the prefixed extensions.
674 (riscv_parse_prefixed_ext): Updated and removed the parameter config.
675 Report error when the prefix is unknown.
676 (riscv_parse_subset): Do not parse the prefixed extensions according
677 to the orders in the parse_config. Remove the confused message and
678 let riscv_parse_prefixed_ext to report the details.
679 * elfxx-riscv.h (enum riscv_isa_ext_class): Moved to elfxx-riscv.c.
680 (riscv_get_prefix_class): Removed to static.
681
eec8bf7e
MF
6822021-04-08 Mike Frysinger <vapier@gentoo.org>
683
684 * configure.ac (ACX_BUGURL): Use https://.
685 * configure.com (COPY_TEXT): Likewise.
686 * configure: Regenerate.
687
83c79df8
AM
6882021-04-05 Alan Modra <amodra@gmail.com>
689
690 * configure.ac: Don't check for long long or long double type.
691 Don't check for alloca.h, limits.h, stddef.h, stdlib.h, string.h,
692 strings.h, time.h, wchar.h, wctype.h or sys/time.h. Don't check
693 for strtoull, free, malloc, realloc, getenv, strstr, snprintf,
694 vsnprintf, strlen or setitimer. Sort AC_CHECK_DECLS.
695 (AC_ISC_POSIX): Don't invoke.
696 (AC_HEADER_TIME, AC_HEADER_DIRENT, ACX_HEADER_STRING): Likewise.
697 * sysdep.h: Remove many HAVE_*_H checks and fallback declarations.
698 Do test HAVE_SYS_TYPES_H. Don't include sys/time.h. Reorder
699 header order as per automake AC_INCLUDES_DEFAULT.
700 * bfd-in.h: Include inttypes.h unconditionally.
701 * bfd.c (_bfd_doprnt, _bfd_doprnt_scan): Assume long long and
702 long double are available.
703 (bfd_scan_vma): Assume long long and strtoull are available.
704 * elflink.c: Include limits.h unconditionally.
705 * elfnn-riscv.c: Likewise.
706 * wasm-module.c: Likewise.
707 * hpux-core.c: Include dirent.h unconditionally.
708 * trad-core.c: Likewise.
709 * hosts/x86-64linux.h: Include stdlib.h unconditionally.
710 * peXXigen.c: Remove HAVE_WCHAR_H and HAVE_WCTYPE_H checks.
711 * elf32-m68hc1x.c: Don't include alloca-conf.h.
712 * elf64-hppa.c: Likewise.
713 * som.c: Likewise.
714 * wasm-module.c: Likewise.
715 * xsym.c: Likewise.
716 * bfd-in2.h: Regenerate.
717 * config.in: Regenerate.
718 * configure: Regenerate.
719
74edb473
TC
7202021-04-01 Tamar Christina <tamar.christina@arm.com>
721
722 PR ld/26659
723 * cofflink.c (_bfd_coff_generic_relocate_section): Ignore overflow.
724
e9b095a5
ML
7252021-04-01 Martin Liska <mliska@suse.cz>
726
727 * ecoff.c (strneq): Remove strneq and use startswith.
728 (_bfd_ecoff_slurp_armap): Likewise.
729
3f3328b8
ML
7302021-04-01 Martin Liska <mliska@suse.cz>
731
732 * elf-bfd.h (bfd_section_is_ctf): Use startswith function.
733 * elf.c (_bfd_elf_make_section_from_shdr): Likewise.
734 (elf_get_reloc_section): Likewise.
735 * elf32-arc.c (elf_arc_size_dynamic_sections): Likewise.
736 * elf32-m32r.c (m32r_elf_section_flags): Likewise.
737 * elf32-microblaze.c (microblaze_elf_size_dynamic_sections): Likewise.
738 * elf32-nds32.c (nds32_elf_size_dynamic_sections): Likewise.
739 (nds32_elf_relocate_section): Likewise.
740 (nds32_elf_action_discarded): Likewise.
741 (nds32_elf_check_relocs): Likewise.
742 (nds32_elf_section_flags): Likewise.
743 * elf32-or1k.c (or1k_elf_check_relocs): Likewise.
744 * elf32-ppc.c (ppc_elf_section_from_shdr): Likewise.
745 * elf32-rx.c (rx_table_find): Likewise.
746 (rx_table_map): Likewise.
747 * elf32-spu.c (spu_elf_backend_symbol_processing): Likewise.
748 (spu_elf_find_overlays): Likewise.
749 (needs_ovl_stub): Likewise.
750 (allocate_spuear_stubs): Likewise.
751 (build_spuear_stubs): Likewise.
752 (mark_overlay_section): Likewise.
753 (spu_elf_auto_overlay): Likewise.
754 (spu_elf_output_symbol_hook): Likewise.
755 * elf32-tilepro.c (tilepro_elf_size_dynamic_sections): Likewise.
756 * elf32-xtensa.c (xtensa_property_section_name): Likewise.
757 * elf64-ppc.c (ppc64_elf_section_flags): Likewise.
758 (ppc64_elf_relocate_section): Likewise.
759 * elflink.c (resolve_section): Likewise.
760 (UNARY_OP): Likewise.
761 (BINARY_OP_HEAD): Likewise.
762 (elf_link_input_bfd): Likewise.
763 * elfnn-riscv.c (riscv_elf_size_dynamic_sections): Likewise.
764 * elfxx-riscv.c (riscv_parse_subset): Likewise.
765 * elfxx-tilegx.c (tilegx_elf_size_dynamic_sections): Likewise.
766 * opncls.c (get_build_id): Likewise.
767
65c5fbd4
AM
7682021-03-31 Alan Modra <amodra@gmail.com>
769
770 PR 27671
771 * bfd-in.h: Don't poison FALSE or TRUE.
772 * bfd-in2.h: Regenerate.
773
0a1b45a2
AM
7742021-03-31 Alan Modra <amodra@gmail.com>
775
776 * sysdep.h: POISON_BFD_BOOLEAN: Define.
777 * aix5ppc-core.c, * aout-cris.c, * aout-ns32k.c, * aout-target.h,
778 * aoutx.h, * arc-got.h, * archive.c, * archive64.c, * archures.c,
779 * bfd-in.h, * bfd.c, * bfdwin.c, * binary.c, * cache.c,
780 * coff-alpha.c, * coff-arm.c, * coff-arm.h, * coff-bfd.c,
781 * coff-bfd.h, * coff-go32.c, * coff-i386.c, * coff-ia64.c,
782 * coff-mcore.c, * coff-mips.c, * coff-rs6000.c, * coff-sh.c,
783 * coff-stgo32.c, * coff-tic30.c, * coff-tic4x.c, * coff-tic54x.c,
784 * coff-x86_64.c, * coff-z80.c, * coff-z8k.c, * coff64-rs6000.c,
785 * coffcode.h, * coffgen.c, * cofflink.c, * compress.c,
786 * corefile.c, * cpu-aarch64.c, * cpu-aarch64.h, * cpu-alpha.c,
787 * cpu-arc.c, * cpu-arm.c, * cpu-arm.h, * cpu-avr.c, * cpu-bfin.c,
788 * cpu-bpf.c, * cpu-cr16.c, * cpu-cris.c, * cpu-crx.c,
789 * cpu-csky.c, * cpu-d10v.c, * cpu-d30v.c, * cpu-dlx.c,
790 * cpu-epiphany.c, * cpu-fr30.c, * cpu-frv.c, * cpu-ft32.c,
791 * cpu-h8300.c, * cpu-hppa.c, * cpu-i386.c, * cpu-ia64.c,
792 * cpu-iamcu.c, * cpu-ip2k.c, * cpu-iq2000.c, * cpu-k1om.c,
793 * cpu-l1om.c, * cpu-lm32.c, * cpu-m10200.c, * cpu-m10300.c,
794 * cpu-m32c.c, * cpu-m32r.c, * cpu-m68hc11.c, * cpu-m68hc12.c,
795 * cpu-m68k.c, * cpu-m9s12x.c, * cpu-m9s12xg.c, * cpu-mcore.c,
796 * cpu-mep.c, * cpu-metag.c, * cpu-microblaze.c, * cpu-mips.c,
797 * cpu-mmix.c, * cpu-moxie.c, * cpu-msp430.c, * cpu-mt.c,
798 * cpu-nds32.c, * cpu-nfp.c, * cpu-nios2.c, * cpu-ns32k.c,
799 * cpu-or1k.c, * cpu-pdp11.c, * cpu-pj.c, * cpu-powerpc.c,
800 * cpu-pru.c, * cpu-riscv.c, * cpu-rl78.c, * cpu-rs6000.c,
801 * cpu-rx.c, * cpu-s12z.c, * cpu-s390.c, * cpu-score.c,
802 * cpu-sh.c, * cpu-sparc.c, * cpu-spu.c, * cpu-tic30.c,
803 * cpu-tic4x.c, * cpu-tic54x.c, * cpu-tic6x.c, * cpu-tilegx.c,
804 * cpu-tilepro.c, * cpu-v850.c, * cpu-v850_rh850.c, * cpu-vax.c,
805 * cpu-visium.c, * cpu-wasm32.c, * cpu-xc16x.c, * cpu-xgate.c,
806 * cpu-xstormy16.c, * cpu-xtensa.c, * cpu-z80.c, * cpu-z8k.c,
807 * dwarf1.c, * dwarf2.c, * ecoff-bfd.h, * ecoff.c, * ecofflink.c,
808 * elf-attrs.c, * elf-bfd.h, * elf-eh-frame.c, * elf-hppa.h,
809 * elf-ifunc.c, * elf-m10200.c, * elf-m10300.c, * elf-nacl.c,
810 * elf-nacl.h, * elf-properties.c, * elf-s390-common.c,
811 * elf-s390.h, * elf-strtab.c, * elf-vxworks.c, * elf-vxworks.h,
812 * elf.c, * elf32-am33lin.c, * elf32-arc.c, * elf32-arm.c,
813 * elf32-arm.h, * elf32-avr.c, * elf32-avr.h, * elf32-bfin.c,
814 * elf32-bfin.h, * elf32-cr16.c, * elf32-cr16.h, * elf32-cris.c,
815 * elf32-crx.c, * elf32-csky.c, * elf32-csky.h, * elf32-d10v.c,
816 * elf32-d30v.c, * elf32-dlx.c, * elf32-epiphany.c,
817 * elf32-fr30.c, * elf32-frv.c, * elf32-ft32.c, * elf32-gen.c,
818 * elf32-h8300.c, * elf32-hppa.c, * elf32-hppa.h, * elf32-i386.c,
819 * elf32-ip2k.c, * elf32-iq2000.c, * elf32-lm32.c, * elf32-m32c.c,
820 * elf32-m32r.c, * elf32-m68hc11.c, * elf32-m68hc12.c,
821 * elf32-m68hc1x.c, * elf32-m68hc1x.h, * elf32-m68k.c,
822 * elf32-m68k.h, * elf32-mcore.c, * elf32-mep.c, * elf32-metag.c,
823 * elf32-metag.h, * elf32-microblaze.c, * elf32-mips.c,
824 * elf32-moxie.c, * elf32-msp430.c, * elf32-mt.c, * elf32-nds32.c,
825 * elf32-nios2.c, * elf32-nios2.h, * elf32-or1k.c, * elf32-pj.c,
826 * elf32-ppc.c, * elf32-ppc.h, * elf32-pru.c, * elf32-rl78.c,
827 * elf32-rx.c, * elf32-s12z.c, * elf32-s390.c, * elf32-score.c,
828 * elf32-score.h, * elf32-score7.c, * elf32-sh-relocs.h,
829 * elf32-sh.c, * elf32-sparc.c, * elf32-spu.c, * elf32-spu.h,
830 * elf32-tic6x.c, * elf32-tic6x.h, * elf32-tilegx.c,
831 * elf32-tilepro.c, * elf32-v850.c, * elf32-v850.h,
832 * elf32-vax.c, * elf32-visium.c, * elf32-wasm32.c,
833 * elf32-xc16x.c, * elf32-xgate.c, * elf32-xstormy16.c,
834 * elf32-xtensa.c, * elf32-z80.c, * elf64-alpha.c, * elf64-bpf.c,
835 * elf64-gen.c, * elf64-hppa.c, * elf64-ia64-vms.c,
836 * elf64-mips.c, * elf64-mmix.c, * elf64-nfp.c, * elf64-ppc.c,
837 * elf64-ppc.h, * elf64-s390.c, * elf64-sparc.c,
838 * elf64-tilegx.c, * elf64-x86-64.c, * elfcode.h,
839 * elfcore.h, * elflink.c, * elfn32-mips.c, * elfnn-aarch64.c,
840 * elfnn-ia64.c, * elfnn-riscv.c, * elfxx-aarch64.c,
841 * elfxx-aarch64.h, * elfxx-ia64.c, * elfxx-ia64.h,
842 * elfxx-mips.c, * elfxx-mips.h, * elfxx-riscv.c, * elfxx-riscv.h,
843 * elfxx-sparc.c, * elfxx-sparc.h, * elfxx-target.h,
844 * elfxx-tilegx.c, * elfxx-tilegx.h, * elfxx-x86.c, * elfxx-x86.h,
845 * format.c, * genlink.h, * hash.c, * i386aout.c, * i386lynx.c,
846 * i386msdos.c, * ihex.c, * libaout.h, * libbfd-in.h,
847 * libbfd.c, * libcoff-in.h, * libecoff.h, * libpei.h,
848 * libxcoff.h, * linker.c, * mach-o-aarch64.c, * mach-o-arm.c,
849 * mach-o-i386.c, * mach-o-x86-64.c, * mach-o.c, * mach-o.h,
850 * merge.c, * mmo.c, * netbsd.h, * opncls.c, * pc532-mach.c,
851 * pdp11.c, * pe-arm.c, * pe-i386.c, * pe-mcore.c, * pe-sh.c,
852 * pe-x86_64.c, * peXXigen.c, * pef.c, * pei-arm.c, * pei-i386.c,
853 * pei-ia64.c, * pei-mcore.c, * pei-sh.c, * pei-x86_64.c,
854 * peicode.h, * plugin.c, * plugin.h, * ppcboot.c, * reloc.c,
855 * reloc16.c, * rs6000-core.c, * section.c, * simple.c, * som.c,
856 * som.h, * srec.c, * stabs.c, * syms.c, * targets.c, * tekhex.c,
857 * verilog.c, * vms-alpha.c, * vms-lib.c, * vms-misc.c, * vms.h,
858 * wasm-module.c, * xcofflink.c, * xcofflink.h, * xsym.c,
859 * xsym.h: Replace bfd_boolean with bool, FALSE with false, and
860 TRUE with true throughout.
861 * bfd-in2.h: Regenerate.
862 * libbfd.h: Regenerate.
863 * libcoff.h: Regenerate.
864
ad9e24ad
AM
8652021-03-31 Alan Modra <amodra@gmail.com>
866
867 * bfd-in.h: Include stdbool.h.
868 (bfd_boolean): Define as bool
869 * bfd-in2.h: Regenerate.
870
3dfb1b6d
AM
8712021-03-31 Alan Modra <amodra@gmail.com>
872
873 * .gitignore: Delete bfd_stdint.h entry.
874 * Makefile.am (bfdinclude_HEADERS): Delete bfd_stdint.h.
875 (BUILD_HFILES, LOCAL_H_DEPS): Likewise.
876 * bfd-in.h: Include stdint.h in place of bfd_stdint.h.
877 * configure.ac: Don't invoke GCC_HEADER_STDINT.
878 * configure.com: Don't create bfd_stdint.h.
879 * Makefile.in: Regenerate.
880 * aclocal.m4: Regenerate.
881 * bfd-in2.h: Regenerate.
882 * config.in: Regenerate.
883 * configure: Regenerate.
884 * doc/Makefile.in: Regenerate.
885 * po/BLD-POTFILES.in: Regenerate.
886
57ae980e
AM
8872021-03-31 Alan Modra <amodra@gmail.com>
888
889 * bfd-in.h: Include string.h.
890 (LITMEMCPY, LITSTRCPY): Delete.
891 * bfd-in2.h: Regenerate.
892
d1cbe007
AM
8932021-03-30 Alan Modra <amodra@gmail.com>
894
895 * elflink.c (elf_link_add_object_symbols): Don't set h->indx
896 unless is_elf_hash_table.
897
63b4cc53
AM
8982021-03-29 Alan Modra <amodra@gmail.com>
899
900 * aoutx.h (aout_link_write_symbols): Don't cast boolean expression
901 to bfd_boolean.
902 * elf32-or1k.c (or1k_set_got_and_rela_sizes): Dont compare booleans
903 against FALSE.
904 * elf32-arc.c (name_for_global_symbol): Don't compare boolean to TRUE.
905 (is_reloc_PC_relative): Don't use "boolean_condition ? TRUE : FALSE".
906 (is_reloc_SDA_relative, is_reloc_for_GOT): Likewise.
907 (is_reloc_for_PLT, is_reloc_for_TLS): Likewise.
908 * elf32-arm.c (stm32l4xx_need_create_replacing_stub): Likewise.
909 * elf32-nds32.c (insert_nds32_elf_blank): Likewise.
910 * elf32-rx.c (rx_set_section_contents): Likewise.
911 * elfnn-aarch64.c (elfNN_aarch64_final_link_relocate): Likewise.
912 * elfxx-mips.c (_bfd_mips_elf_ignore_undef_symbol): Likewise.
913 * mach-o.c (bfd_mach_o_read_command): Likewise.
914 * targets.c (bfd_get_target_info): Likewise.
915
f4f9ede0
AM
9162021-03-29 Alan Modra <amodra@gmail.com>
917
918 * coff-z80.c (z80_is_local_label_name): Return bfd_boolean.
919 * elf32-z80.c (z80_is_local_label_name): Likewise.
920 * elf32-spu.c (spu_elf_modify_headers): Likewise.
921 * elf32-nds32.h (struct elf_nds32_link_hash_table <hyper_relax>):
922 Change type to int.
923 * vms-lib.c (_bfd_vms_lib_write_archive_contents): Correct test
924 for error return from vms_write_data_block.
925
1201fda6
AM
9262021-03-29 Alan Modra <amodra@gmail.com>
927
928 * elf32-i386.c (elf_i386_finish_local_dynamic_symbol): Return int.
929 * elf64-ia64-vms.c (elf64_ia64_local_dyn_info_free): Likewise.
930 (elf64_ia64_local_dyn_sym_thunk): Likewise.
931 * elf64-x86-64.c (elf_x86_64_finish_local_dynamic_symbol): Likewise.
932 * elfnn-aarch64.c (elfNN_aarch64_allocate_local_ifunc_dynrelocs),
933 (elfNN_aarch64_finish_local_dynamic_symbol): Likewise.
934 * elfnn-ia64.c (elfNN_ia64_local_dyn_info_free): Likewise.
935 (elfNN_ia64_local_dyn_sym_thunk): Likewise.
936 * elfnn-riscv.c (allocate_local_ifunc_dynrelocs): Likewise.
937 (riscv_pcrel_reloc_eq): Likewise.
938 (riscv_elf_finish_local_dynamic_symbol): Likewise.
939 * elfxx-sparc.c (allocate_local_dynrelocs): Likewise.
940 (finish_local_dynamic_symbol): Likewise.
941 * elfxx-x86.c (elf_x86_allocate_local_dynreloc): Likewise.
942 * elfxx-mips.c (mips_elf_resolve_got_page_ref): Likewise.
943 (mips_elf_count_got_symbols): Change return type to bfd_boolean.
944
37bb890f
AM
9452021-03-29 Alan Modra <amodra@gmail.com>
946
947 * elflink.c (elf_link_output_symstrtab): Make flinfo parameter
948 a void pointer.
949 (bfd_elf_final_link): Delete out_sym_func typedef and don't cast
950 elf_link_output_symstrtab when calling output_arch_syms and
951 output_arch_local_syms.
952 * elf-bfd.h (struct elf_backend_data <elf_backend_output_arch_syms,
953 elf_backend_output_arch_local_syms>): Change return type of func
954 arg to match elf_link_output_symstrtab.
955 * elf-vxworks.h (elf_vxworks_link_output_symbol_hook): Correct
956 return type.
957 * elf32-nds32.c (nds32_elf_output_symbol_hook): Correct return type.
958 (nds32_elf_output_arch_syms): Correct func return type.
959
0f684201
AM
9602021-03-29 Alan Modra <amodra@gmail.com>
961
962 * elf-m10200.c (mn10200_elf_relocate_section): Return int.
963 * elf-m10300.c (mn10300_elf_relocate_section): Likewise.
964 * elf32-arc.c (elf_arc_relocate_section): Likewise.
965 * elf32-arm.c (elf32_arm_relocate_section): Likewise.
966 * elf32-avr.c (elf32_avr_relocate_section): Likewise.
967 * elf32-bfin.c (bfin_relocate_section): Likewise.
968 (bfinfdpic_relocate_section): Likewise.
969 * elf32-cr16.c (elf32_cr16_relocate_section): Likewise.
970 * elf32-cris.c (cris_elf_relocate_section): Likewise.
971 * elf32-crx.c (elf32_crx_relocate_section): Likewise.
972 * elf32-csky.c (csky_elf_relocate_section): Likewise.
973 * elf32-d10v.c (elf32_d10v_relocate_section): Likewise.
974 * elf32-epiphany.c (epiphany_elf_relocate_section): Likewise.
975 * elf32-fr30.c (fr30_elf_relocate_section): Likewise.
976 * elf32-frv.c (elf32_frv_relocate_section): Likewise.
977 * elf32-ft32.c (ft32_elf_relocate_section): Likewise.
978 * elf32-h8300.c (elf32_h8_relocate_section): Likewise.
979 * elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
980 * elf32-i386.c (elf_i386_relocate_section): Likewise.
981 * elf32-ip2k.c (ip2k_elf_relocate_section): Likewise.
982 * elf32-iq2000.c (iq2000_elf_relocate_section): Likewise.
983 * elf32-lm32.c (lm32_elf_relocate_section): Likewise.
984 * elf32-m32c.c (m32c_elf_relocate_section): Likewise.
985 * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
986 * elf32-m68hc1x.c (elf32_m68hc11_relocate_section): Likewise.
987 * elf32-m68hc1x.h (elf32_m68hc11_relocate_section): Likewise.
988 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
989 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
990 * elf32-mep.c (mep_elf_relocate_section): Likewise.
991 * elf32-metag.c (elf_metag_relocate_section): Likewise.
992 * elf32-microblaze.c (microblaze_elf_relocate_section): Likewise.
993 * elf32-moxie.c (moxie_elf_relocate_section): Likewise.
994 * elf32-msp430.c (elf32_msp430_relocate_section): Likewise.
995 * elf32-mt.c (mt_elf_relocate_section): Likewise.
996 * elf32-nds32.c (nds32_elf_relocate_section): Likewise.
997 * elf32-nios2.c (nios2_elf32_relocate_section): Likewise.
998 * elf32-or1k.c (or1k_elf_relocate_section): Likewise.
999 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
1000 * elf32-pru.c (pru_elf32_relocate_section): Likewise.
1001 * elf32-rl78.c (rl78_elf_relocate_section): Likewise.
1002 * elf32-rx.c (rx_elf_relocate_section): Likewise.
1003 * elf32-s390.c (elf_s390_relocate_section): Likewise.
1004 * elf32-score.c (s3_bfd_score_elf_relocate_section): Likewise.
1005 (_bfd_score_elf_relocate_section): Likewise.
1006 * elf32-score.h (s7_bfd_score_elf_relocate_section): Likewise.
1007 * elf32-score7.c (s7_bfd_score_elf_relocate_section): Likewise.
1008 * elf32-sh.c (sh_elf_relocate_section): Likewise.
1009 * elf32-tic6x.c (elf32_tic6x_relocate_section): Likewise.
1010 * elf32-tilepro.c (tilepro_elf_relocate_section): Likewise.
1011 * elf32-v850.c (v850_elf_relocate_section): Likewise.
1012 * elf32-vax.c (elf_vax_relocate_section): Likewise.
1013 * elf32-visium.c (visium_elf_relocate_section): Likewise.
1014 * elf32-xc16x.c (elf32_xc16x_relocate_section): Likewise.
1015 * elf32-xstormy16.c (xstormy16_elf_relocate_section): Likewise.
1016 * elf32-xtensa.c (elf_xtensa_relocate_section): Likewise.
1017 * elf32-z80.c (z80_elf_relocate_section): Likewise.
1018 * elf64-alpha.c (elf64_alpha_relocate_section_r): Likewise.
1019 (elf64_alpha_relocate_section): Likewise.
1020 * elf64-bpf.c (bpf_elf_relocate_section): Likewise.
1021 * elf64-hppa.c (elf64_hppa_relocate_section): Likewise.
1022 * elf64-ia64-vms.c (elf64_ia64_relocate_section): Likewise.
1023 * elf64-mmix.c (mmix_elf_relocate_section): Likewise.
1024 * elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
1025 * elf64-s390.c (elf_s390_relocate_section): Likewise.
1026 * elf64-x86-64.c (elf_x86_64_relocate_section): Likewise.
1027 * elfnn-aarch64.c (elfNN_aarch64_relocate_section): Likewise.
1028 * elfnn-ia64.c (elfNN_ia64_relocate_section): Likewise.
1029 * elfnn-riscv.c (riscv_elf_relocate_section): Likewise.
1030 * elfxx-mips.c (_bfd_mips_elf_relocate_section): Likewise.
1031 * elfxx-mips.h (_bfd_mips_elf_relocate_section): Likewise.
1032 * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Likewise.
1033 * elfxx-sparc.h (_bfd_sparc_elf_relocate_section): Likewise.
1034 * elfxx-tilegx.c (tilegx_elf_relocate_section): Likewise.
1035 * elfxx-tilegx.h (tilegx_elf_relocate_section): Likewise.
1036
ff5b3e14
KS
10372021-03-26 Keith Seitz <keiths@redhat.com>
1038
1039 * elfcore.h (_bfd_elf_core_find_build_id): Seek file
1040 offset of program headers after calling elf_read_notes.
1041
f596b03f
JB
10422021-03-23 Jan Beulich <jbeulich@suse.com>
1043
1044 * dwarf2.c (read_indexed_string): Rename index to idx.
1045
08dedd66
ML
10462021-03-22 Martin Liska <mliska@suse.cz>
1047
1048 * bfd-in.h (startswith): Add startswith function.
1049 (CONST_STRNEQ): Remove.
1050 * bfd-in2.h (startswith): Regenerate with make headers.
1051 * archive.c (bfd_slurp_armap): Replace usage of CONST_STRNEQ with startswith.
1052 (_bfd_slurp_extended_name_table): Likewise.
1053 * archive64.c (_bfd_archive_64_bit_slurp_armap): Likewise.
1054 * bfd.c (bfd_get_sign_extend_vma): Likewise.
1055 (bfd_convert_section_size): Likewise.
1056 (bfd_convert_section_contents): Likewise.
1057 * coff-stgo32.c (go32exe_create_stub): Likewise.
1058 (go32exe_check_format): Likewise.
1059 * coffcode.h (styp_to_sec_flags): Likewise.
1060 (GNU_DEBUGALTLINK): Likewise.
1061 * coffgen.c (_bfd_coff_section_already_linked): Likewise.
1062 (coff_gc_sweep): Likewise.
1063 (bfd_coff_gc_sections): Likewise.
1064 * cofflink.c (coff_link_add_symbols): Likewise.
1065 (process_embedded_commands): Likewise.
1066 * compress.c (bfd_is_section_compressed_with_header): Likewise.
1067 (bfd_init_section_decompress_status): Likewise.
1068 * dwarf2.c (find_debug_info): Likewise.
1069 (place_sections): Likewise.
1070 * ecoff.c (_bfd_ecoff_slurp_armap): Likewise.
1071 * elf-m10300.c (_bfd_mn10300_elf_size_dynamic_sections): Likewise.
1072 * elf.c (_bfd_elf_make_section_from_shdr): Likewise.
1073 (assign_section_numbers): Likewise.
1074 (elfcore_grok_win32pstatus): Likewise.
1075 * elf32-arm.c (cmse_scan): Likewise.
1076 (elf32_arm_gc_mark_extra_sections): Likewise.
1077 (elf32_arm_size_dynamic_sections): Likewise.
1078 (is_arm_elf_unwind_section_name): Likewise.
1079 * elf32-bfin.c (bfin_size_dynamic_sections): Likewise.
1080 * elf32-cr16.c (_bfd_cr16_elf_size_dynamic_sections): Likewise.
1081 * elf32-cris.c (elf_cris_size_dynamic_sections): Likewise.
1082 * elf32-csky.c (csky_elf_size_dynamic_sections): Likewise.
1083 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Likewise.
1084 * elf32-iq2000.c (iq2000_elf_check_relocs): Likewise.
1085 * elf32-lm32.c (lm32_elf_size_dynamic_sections): Likewise.
1086 * elf32-m32r.c (m32r_elf_size_dynamic_sections): Likewise.
1087 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
1088 * elf32-metag.c (elf_metag_size_dynamic_sections): Likewise.
1089 * elf32-msp430.c (msp430_elf_relax_delete_bytes): Likewise.
1090 * elf32-nios2.c (nios2_elf32_size_dynamic_sections): Likewise.
1091 * elf32-or1k.c (or1k_elf_size_dynamic_sections): Likewise.
1092 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Likewise.
1093 * elf32-s390.c (elf_s390_size_dynamic_sections): Likewise.
1094 * elf32-score.c (s3_bfd_score_elf_size_dynamic_sections): Likewise.
1095 * elf32-score7.c (s7_bfd_score_elf_size_dynamic_sections): Likewise.
1096 * elf32-sh.c (sh_elf_size_dynamic_sections): Likewise.
1097 * elf32-tic6x.c (is_tic6x_elf_unwind_section_name): Likewise.
1098 (elf32_tic6x_size_dynamic_sections): Likewise.
1099 * elf32-vax.c (elf_vax_size_dynamic_sections): Likewise.
1100 * elf32-xtensa.c (elf_xtensa_size_dynamic_sections): Likewise.
1101 (xtensa_is_insntable_section): Likewise.
1102 (xtensa_is_littable_section): Likewise.
1103 (xtensa_is_proptable_section): Likewise.
1104 (xtensa_property_section_name): Likewise.
1105 (xtensa_callback_required_dependence): Likewise.
1106 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Likewise.
1107 * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise.
1108 * elf64-ia64-vms.c (is_unwind_section_name): Likewise.
1109 (get_reloc_section): Likewise.
1110 (elf64_ia64_size_dynamic_sections): Likewise.
1111 (elf64_ia64_object_p): Likewise.
1112 * elf64-mmix.c (mmix_elf_add_symbol_hook): Likewise.
1113 * elf64-ppc.c (ppc64_elf_size_dynamic_sections): Likewise.
1114 * elf64-s390.c (elf_s390_size_dynamic_sections): Likewise.
1115 * elflink.c (elf_link_add_object_symbols): Likewise.
1116 (_bfd_elf_gc_mark_extra_sections): Likewise.
1117 (bfd_elf_parse_eh_frame_entries): Likewise.
1118 (_bfd_elf_section_already_linked): Likewise.
1119 * elfnn-aarch64.c (elfNN_aarch64_size_dynamic_sections): Likewise.
1120 * elfnn-ia64.c (is_unwind_section_name): Likewise.
1121 (elfNN_ia64_size_dynamic_sections): Likewise.
1122 (elfNN_ia64_object_p): Likewise.
1123 * elfxx-mips.c (FN_STUB_P): Likewise.
1124 (CALL_STUB_P): Likewise.
1125 (CALL_FP_STUB_P): Likewise.
1126 (_bfd_mips_elf_section_from_shdr): Likewise.
1127 (_bfd_mips_elf_fake_sections): Likewise.
1128 (_bfd_mips_elf_size_dynamic_sections): Likewise.
1129 (_bfd_mips_final_write_processing): Likewise.
1130 (_bfd_mips_elf_final_link): Likewise.
1131 * elfxx-sparc.c (_bfd_sparc_elf_size_dynamic_sections): Likewise.
1132 * elfxx-x86.c (elf_i386_is_reloc_section): Likewise.
1133 (elf_x86_64_is_reloc_section): Likewise.
1134 * hpux-core.c (thread_section_p): Likewise.
1135 * libcoff.h (bfd_pei_p): Likewise.
1136 * linker.c (REAL): Likewise.
1137 (unwrap_hash_lookup): Likewise.
1138 (_bfd_generic_link_add_one_symbol): Likewise.
1139 * mmo.c (mmo_internal_write_section): Likewise.
1140 * osf-core.c (osf_core_core_file_p): Likewise.
1141 * pef.c (bfd_pef_print_symbol): Likewise.
1142 * pei-x86_64.c (pex64_print_all_pdata_sections): Likewise.
1143 * som.c (som_slurp_symbol_table): Likewise.
1144 (som_slurp_armap): Likewise.
1145 * wasm-module.c (wasm_compute_custom_section_file_position): Likewise.
1146
2aaf2ce8
JB
11472021-03-22 Jan Beulich <jbeulich@suse.com>
1148
1149 * peXXigen.c (_bfd_XXi_swap_scnhdr_out): Add missing
1150 language translation wrapping to _bfd_error_handler()
1151 invocations.
1152
e9338841
AM
11532021-03-21 Alan Modra <amodra@gmail.com>
1154
1155 * bfd-in.h (startswith): New inline.
1156 (CONST_STRNEQ): Use startswith.
1157 * bfd-in2.h: Regenerate.
1158
15407e7e
AM
11592021-03-20 Alan Modra <amodra@gmail.com>
1160
1161 PR 27590
1162 * elf.c (_bfd_elf_make_section_from_shdr): Remove SHF_EXCLUDE
1163 test for .gnu.debuglto*.
1164
3818d4ab
L
11652021-03-18 H.J. Lu <hongjiu.lu@intel.com>
1166
1167 PR ld/27590
15407e7e 1168 * elf.c (_bfd_elf_make_section_from_shdr): Treat
3818d4ab
L
1169 .gnu.debuglto_.debug_ section as debugging section unless it is
1170 marked with SHF_EXCLUDE.
1171 * elflink.c (elf_create_symbuf): Revert commit 994b2513281.
1172 (bfd_elf_match_symbols_in_sections): Ignore section symbols when
1173 matching non-debugging sections or linkonce section with comdat
1174 section.
1175
51f6e7a9
L
11762021-03-18 H.J. Lu <hongjiu.lu@intel.com>
1177
1178 PR ld/27587
1179 * dwarf2.c (read_attribute_value): Check version >= 3 for
1180 DW_FORM_ref_addr.
1181
012d4426
NC
11822021-03-16 Nick Clifton <nickc@redhat.com>
1183
1184 * peXXigen.c (_bfd_XXi_swap_aux_out): Avoid potential buffer
1185 overrun by using sizeof of the destination x_fname field as the
1186 limit for a memcpy.
1187
80d49d6a
KLC
11882021-03-16 Kuan-Lin Chen <kuanlinchentw@gmail.com>
1189
1190 * elfxx-riscv.c (riscv_std_z_ext_strtab): Add zba, zbb and zbc.
1191
1b2cb8e2
CC
11922021-03-12 Clément Chigot <clement.chigot@atos.net>
1193
1194 * reloc.c (BFD_RELOC_PPC_TLS_LE, BFD_RELOC_PPC_TLS_IE,
1195 BFD_RELOC_PPC_TLS_M, BFD_RELOC_PPC_TLS_ML, BFD_RELOC_PPC64_TLS_GD,
1196 BFD_RELOC_PPC64_TLS_LD, BFD_RELOC_PPC64_TLS_LE,
1197 BFD_RELOC_PPC64_TLS_IE, BFD_RELOC_PPC64_TLS_M,
1198 BFD_RELOC_PPC64_TLS_ML): New relocations.
1199 * bfd-in2.h: Regenerate.
1200 * libbfd.h: Regenerate.
1201 * coff-rs6000.c (xcoff_calculate_relocation): Call
1202 xcoff_reloc_type_tls for TLS relocations.
1203 (xcoff_howto_table): Implement TLS relocations.
1204 (_bfd_xcoff_reloc_type_lookup): Add cases TLS relocations.
1205 (xcoff_reloc_type_tls): New function.
1206 * coff64-rs6000.c (xcoff_calculate_relocation): Likewise.
1207 (xcoff_howto_table): Likewise.
1208 (_bfd_xcoff_reloc_type_lookup): Likewise.
1209 * coffcode.h (sec_to_styp_flags): Handle TLS sections.
1210 (styp_to_sec_flags): Likewise.
1211 (coff_compute_section_file_positions): Avoid file offset
1212 optimisation for .data when the previous section is .tdata.
1213 (coff_write_object_contents): Handle TLS sections.
1214 * coffswap.h (coff_swap_aouthdr_out): Add support for
1215 new fields in aouthdr.
1216 * libxcoff.h (xcoff_reloc_type_tls): Add prototype.
1217 * xcofflink.c (xcoff_link_add_symbols): Handle XMC_UL.
1218 (xcoff_need_ldrel_p): Add cases for TLS relocations.
1219 (xcoff_create_ldrel): Add l_symndx for TLS sections.
1220
4a403be0
CC
12212021-03-12 Clément Chigot <clement.chigot@atos.net>
1222
1223 * reloc.c (BFD_RELOC_PPC_TOC16_HI, BFD_RELOC_PPC_TOC16_LO):
1224 New relocations.
1225 * bfd-in2.h: Regenerate.
1226 * libbfd.h: Regenerate.
1227 * coff-rs6000.c (xcoff_calculate_relocation): Call
1228 xcoff_reloc_type_toc for R_TOCU and R_TOCL.
1229 (xcoff_howto_table): Remove src_mask for TOC relocations.
1230 Add R_TOCU and R_TOCL howtos.
1231 (_bfd_xcoff_reloc_type_lookup): Add cases for
1232 BFD_RELOC_PPC_TOC16_HI and BFD_RELOC_PPC_TOC16_LO.
1233 (xcoff_reloc_type_toc): Compute the whole offset.
1234 Implement R_TOCU and R_TOCL.
1235 * coff64-rs6000.c (xcoff64_calculate_relocation):
1236 Likewise.
1237 (xcoff64_howto_table): Likewise.
1238 (xcoff64_reloc_type_lookup): Likewise.
1239
2c1bef53
CC
12402021-03-12 Clément Chigot <clement.chigot@atos.net>
1241
1242 * coff-rs6000.c (xcoff_calculate_relocation): Correct and
1243 add new relocations.
1244 (xcoff_howto_table): Likewise.
1245 (xcoff_rtype2howto): Increase r_type maximum value.
1246 (xcoff_ppc_relocate_section): Reuse predefined HOWTOs instead
1247 of create a new one from scratch. Enable only some relocations
1248 to have a changing r_size.
1249 * coff64-rs6000.c (xcoff64_calculate_relocation): Likewise.
1250 (xcoff64_howto_table): Likewise.
1251 (xcoff64_rtype2howto): Likewise.
1252 (xcoff64_ppc_relocate_section): Likewise.
1253 * libxcoff.h (XCOFF_MAX_CALCULATE_RELOCATION): Fix value.
1254
0c929e83
CC
12552021-03-12 Clément Chigot <clement.chigot@atos.net>
1256
1257 * coff64-rs6000.c (xcoff64_ppc_relocate_section): Move.
1258
6d4d9328
CC
12592021-03-12 Clément Chigot <clement.chigot@atos.net>
1260
1261 * coff64-rs6000.c (xcoff64_write_object_contents): Remove.
1262 * coffcode.h (coff_write_object_contents): Add bfd_mach_ppc_620
1263 support for o_cputype field. Avoid creating an empty a.out header
1264 for XCOFF64.
1265
8aa2d023
CC
12662021-03-12 Clément Chigot <clement.chigot@atos.net>
1267
1268 * coff64-rs6000.c (xcoff64_create_csect_from_smclas): Add
1269 missing smclass.
1270
ebdcad3f
NC
12712021-03-11 Nelson Chu <nelson.chu@sifive.com>
1272
1273 * elfnn-riscv.c (riscv_elf_link_hash_table): New boolean
1274 restart_relax, used to check if we need to run the whole
1275 relaxations from relax pass 0 to 2 again.
1276 (riscv_elf_link_hash_table_create): Init restart_relax to FALSE.
1277 (_bfd_riscv_relax_align): Remove obsolete sec_flg0 set.
1278 (_bfd_riscv_relax_delete): Set again to TRUE if we do delete the code.
1279 (bfd_elfNN_riscv_restart_relax_sections): New function. Called by
1280 after_allocation to check if we need to run the whole relaxations again.
1281 (_bfd_riscv_relax_section): We will only enter into the relax pass 3
1282 when the restart_relax is FALSE; At last set restart_relax to TRUE if
1283 again is TRUE, too.
1284 * elfxx-riscv.h (bfd_elf32_riscv_restart_relax_sections): Declaration.
1285 (bfd_elf64_riscv_restart_relax_sections): Likewise.
1286
67b0f684
JB
12872021-03-10 Jan Beulich <jbeulich@suse.com>
1288
1289 * cofflink.c (_bfd_coff_write_global_sym): Range-check symbol
1290 offset.
1291
2dfa8341
AM
12922021-03-10 Alan Modra <amodra@gmail.com>
1293 Jan Beulich <jbeulich@suse.com>
1294
1295 * elf.c (bfd_elf_generic_reloc): Make references between debug
1296 sections use section relative values.
1297
87fa7d56
JB
12982021-03-09 Jan Beulich <jbeulich@suse.com>
1299
1300 * peXXigen.c (_bfd_XXi_swap_scnhdr_out): Diagnose out of range RVA.
1301
8c0546e9
L
13022021-03-05 H.J. Lu <hongjiu.lu@intel.com>
1303
1304 PR ld/27425
1305 PR ld/27432
1306 * bfd.c (_bfd_get_link_info): New function.
1307 * elf-bfd.h (output_elf_obj_tdata): Add link_info.
1308 (elf_link_info): New.
1309 * libbfd-in.h (_bfd_get_link_info): New prototype.
1310 * coff-x86_64.c (coff_amd64_reloc): Also subtract __ImageBase for
1311 R_AMD64_IMAGEBASE when generating x86-64 ELF executable.
1312 * pe-x86_64.c: Include "coff/internal.h" and "libcoff.h".
1313 (pex64_link_add_symbols): New function.
1314 (coff_bfd_link_add_symbols): New macro.
1315 * libbfd.h: Regenerated.
1316
db6092f3
AB
13172021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
1318 Andrew Burgess <andrew.burgess@embecosm.com>
1319
1320 * elf-bfd.h (elfcore_write_riscv_csr): Declare.
1321 * elf.c (elfcore_grok_riscv_csr): New function.
1322 (elfcore_grok_note): Handle NT_RISCV_CSR.
1323 (elfcore_write_riscv_csr): New function.
1324 (elfcore_write_register_note): Handle '.reg-riscv-csr'.
1325
0897bb7d
AB
13262021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
1327 Andrew Burgess <andrew.burgess@embecosm.com>
1328
1329 * elfnn-riscv.c (PRPSINFO_PR_FNAME_LENGTH): Define.
1330 (PRPSINFO_PR_PSARGS_LENGTH): Define.
1331 (riscv_write_core_note): New function.
1332 (riscv_elf_grok_psinfo): Make use of two new length defines.
1333 (elf_backend_write_core_note): Define.
1334
b63a5e38
AB
13352021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
1336 Andrew Burgess <andrew.burgess@embecosm.com>
1337
1338 * elf-bfd.h (elfcore_write_gdb_tdesc): Declare new function.
1339 * elf.c (elfcore_grok_gdb_tdesc): New function.
1340 (elfcore_grok_note): Handle NT_GDB_TDESC.
1341 (elfcore_write_gdb_tdesc): New function.
1342 (elfcore_write_register_note): Handle NT_GDB_TDESC.
1343
2017f387
NC
13442021-03-05 Nick Clifton <nickc@redhat.com>
1345
1346 PR 27521
1347 * dwarf2.c (is_str_attr): Add DW_FORM_strx* forms.
1348 (read_indexed_string): Placeholder function.
1349 (read_attribute_value): Handle DW_FORM_strx* and DW_FORM_addrx*
1350 forms.
1351
b01b5d9a
AM
13522021-03-05 Alan Modra <amodra@gmail.com>
1353
1354 * reloc.c (bfd_perform_relocation): Revert 2021-01-12 and
1355 2020-09-16 changes.
1356 * coff-x86_64.c (coff_amd64_reloc): Do more or less the same
1357 adjustments here instead. Separate pc-relative adjustments
1358 from symbol related adjustments. Tidy comments and formatting.
1359
6b5465b9
JB
13602021-03-04 Jan Beulich <jbeulich@suse.com>
1361
1362 * coffcode.h (sec_to_styp_flags): Don't set IMAGE_SCN_LNK_* in
1363 final PE images.
1364
0b7733b6
AM
13652021-03-04 Alan Modra <amodra@gmail.com>
1366
1367 * rs6000-core.c (rs6000coff_core_p): Correct prototype.
1368
5789f845
AM
13692021-03-03 Alan Modra <amodra@gmail.com>
1370
1371 PR 27500
1372 * elflink.c (_bfd_elf_gc_mark_rsec): Do special start/stop
1373 processing not when start/stop symbol section is unmarked but
1374 on first time a start/stop symbol is processed.
1375
dc83f2d2
AM
13762021-03-03 Alan Modra <amodra@gmail.com>
1377
1378 * reloc.c: Include x86_64.h rather than internal.h.
1379
ca8f6bc6
NC
13802021-03-02 Nick Clifton <nickc@redhat.com>
1381
1382 PR 27484
1383 * dwarf2.c (scan_unit_for_symbols): Scan twice, once to accumulate
1384 function and variable tags and a second time to resolve their
1385 attributes.
1386
211bcd01
NA
13872021-03-02 Nick Alcock <nick.alcock@oracle.com>
1388
1389 * elf-strtab.c (_bfd_elf_strtab_str): Skip strings with zero refcount.
1390
b80e421f
AM
13912021-03-02 Alan Modra <amodra@gmail.com>
1392
1393 PR 27451
1394 * elf64-ppc.c (ppc64_elf_gc_mark_dynamic_ref): Ignore synthesized
1395 linker defined start/stop symbols when start_stop_gc.
1396
f5b9c288
AM
13972021-03-02 Alan Modra <amodra@gmail.com>
1398
1399 * elf64-ppc.c (ppc64_elf_relocate_section): Don't optimise got
1400 indirect to pc-relative or toc-relative for undefined symbols.
1401
8ee10e86
AM
14022021-03-01 Alan Modra <amodra@gmail.com>
1403 Fangrui Song <maskray@google.com>
1404
1405 * elflink.c (_bfd_elf_gc_mark_rsec): Ignore synthesized linker
1406 defined start/stop symbols when start_stop_gc.
1407 (bfd_elf_gc_mark_dynamic_ref_symbol): Likewise.
1408 (bfd_elf_define_start_stop): Don't modify ldscript_def syms.
1409 * linker.c (bfd_generic_define_start_stop): Likewise.
1410
bbaddd4b
AM
14112021-02-25 Alan Modra <amodra@gmail.com>
1412
1413 PR 27441
1414 * elf-bfd.h (struct elf_link_hash_entry): Add ref_ir_nonweak.
1415 * elflink.c (elf_link_add_object_symbols): Set ref_ir_nonweak and
1416 use when deciding an as-needed library should be loaded instead
1417 of using the binding of the library definition.
1418
93af1b04
AM
14192021-02-24 Alan Modra <amodra@gmail.com>
1420
1421 PR 27459
1422 * coff-stgo32.c (go32exe_check_format): Sanity check size of
1423 header to avoid a buffer overflow.
1424
e9d18e06
AM
14252021-02-22 Alan Modra <amodra@gmail.com>
1426
1427 * coff-rs6000.c (_bfd_xcoff_reloc_type_lookup): Remove BFD_RELOC_16.
1428 * coff64-rs6000.c (xcoff64_reloc_type_lookup): Likewise.
1429
5a9f5403
NC
14302021-02-19 Nelson Chu <nelson.chu@sifive.com>
1431
1432 PR 27158
1433 * elfnn-riscv.c (perform_relocation): Updated encoding macros.
1434 (_bfd_riscv_relax_call): Likewise.
1435 (_bfd_riscv_relax_lui): Likewise.
1436 * elfxx-riscv.c (howto_table): Likewise.
1437
3d73d29e
NC
14382021-02-18 Nelson Chu <nelson.chu@sifive.com>
1439
1440 * Makefile.am: Added cpu-riscv.h.
1441 * Makefile.in: Regenerated.
1442 * po/SRC-POTFILES.in: Regenerated.
1443 * cpu-riscv.h: Added to support spec versions controlling.
1444 Also added extern arrays and functions for cpu-riscv.c.
1445 (enum riscv_spec_class): Define all spec classes here uniformly.
1446 (struct riscv_spec): Added for all specs.
1447 (RISCV_GET_SPEC_CLASS): Added to reduce repeated code.
1448 (RISCV_GET_SPEC_NAME): Likewise.
1449 (RISCV_GET_ISA_SPEC_CLASS): Added to get ISA spec class.
1450 (RISCV_GET_PRIV_SPEC_CLASS): Added to get privileged spec class.
1451 (RISCV_GET_PRIV_SPEC_NAME): Added to get privileged spec name.
1452 * cpu-riscv.c (struct priv_spec_t): Replaced with struct riscv_spec.
1453 (riscv_get_priv_spec_class): Replaced with RISCV_GET_PRIV_SPEC_CLASS.
1454 (riscv_get_priv_spec_name): Replaced with RISCV_GET_PRIV_SPEC_NAME.
1455 (riscv_priv_specs): Moved below.
1456 (riscv_get_priv_spec_class_from_numbers): Likewise, updated.
1457 (riscv_isa_specs): Moved from include/opcode/riscv.h.
1458 * elfnn-riscv.c: Included cpu-riscv.h.
1459 (riscv_merge_attributes): Initialize in_priv_spec and out_priv_spec.
1460 * elfxx-riscv.c: Included cpu-riscv.h and opcode/riscv.h.
1461 (RISCV_UNKNOWN_VERSION): Moved from include/opcode/riscv.h.
1462 * elfxx-riscv.h: Removed extern functions to cpu-riscv.h.
1463
b9b204b3
AM
14642021-02-17 Alan Modra <amodra@gmail.com>
1465
1466 * wasm-module.c: Guard include of limits.h.
1467 (CHAR_BIT): Provide backup define.
1468 (wasm_read_leb128): Use CHAR_BIT to size "result" in bits.
1469 Correct signed overflow checking.
1470
0d6aab77
NC
14712021-02-17 Nelson Chu <nelson.chu@sifive.com>
1472
1473 PR 27200
1474 * elfnn-riscv.c (_bfd_riscv_elf_merge_private_bfd_data): Delay
1475 copying the elf flags from input BFD to output BFD, until we have
1476 checked if the input BFD has no code section or not. Also fix the
1477 problem that we only check the first section rather than the entire
1478 sections for input BFD.
1479
7b54cadd
AM
14802021-02-16 Alan Modra <amodra@gmail.com>
1481
1482 * libbfd.c (_bfd_read_unsigned_leb128): Avoid excessive shift.
1483 (_bfd_safe_read_leb128, _bfd_read_signed_leb128): Likewise.
1484
8c674061
JB
14852021-02-15 Jan Beulich <jbeulich@suse.com>
1486
1487 * doc/Makefile.am: Replace "cp -p" by "$(LN_S)".
1488 * doc/Makefile.in: Re-generate.
1489
1781a9d0
AM
14902021-02-15 Alan Modra <amodra@gmail.com>
1491
1492 * elf32-nds32.c (nds32_get_section_contents): Replace
1493 bfd_malloc_and_get_section with bfd_get_full_section_contents.
1494 (nds32_elf_relax_delete_blanks): Init contents.
1495 (nds32_elf_relax_section, nds32_relax_fp_as_gp): Likewise.
1496
8b78cbec
AM
14972021-02-15 Alan Modra <amodra@gmail.com>
1498
1499 * coff-alpha.c (alpha_ecoff_get_relocated_section_contents): Use
1500 bfd_get_full_section_contents.
1501
d7a7af8f
AM
15022021-02-14 Alan Modra <amodra@gmail.com>
1503
1504 * elfxx-mips.c (_bfd_elf_mips_get_relocated_section_contents): Apply
1505 all fixes to bfd_generic_get_relocated_section_contents since this
1506 function was split out.
1507
234b98ce
AM
15082021-02-11 Alan Modra <amodra@gmail.com>
1509
1510 * config.bfd: Remove ia64 from obsolete list.
1511
769c253f
AM
15122021-02-11 Alan Modra <amodra@gmail.com>
1513
1514 PR ld/22269
1515 * elfnn-ia64.c: Revert 2017-10-14 git commit db41f6eb5234.
1516
31c711a2
AM
15172021-02-11 Alan Modra <amodra@gmail.com>
1518
1519 PR 27294
1520 * elf32-avr.c (avr_elf32_load_records_from_section): Use
1521 bfd_malloc_and_get_section. Use bfd_byte* vars and remove then
1522 unnecessary casts.
1523
6db658c5
AM
15242021-02-11 Alan Modra <amodra@gmail.com>
1525
1526 PR 27291
1527 * section.c (bfd_get_section_contents): Avoid possible overflow
1528 when range checking offset and count.
1529 (bfd_set_section_contents): Likewise.
1530
95148614
NA
15312021-02-03 Nick Alcock <nick.alcock@oracle.com>
1532
1533 * configure.ac (SHARED_LIBADD): Remove explicit -lintl population in
1534 favour of LIBINTL.
1535 * configure: Regenerated.
1536
a57d1773
AM
15372021-02-09 Alan Modra <amodra@gmail.com>
1538
1539 * config.bfd (arm*-*-symbianelf*): Move from obsolete to removed.
1540 * configure.ac: Delete symbian entries.
1541 * elf-bfd.h (enum elf_target_os): Delete is_symbian.
1542 * elf32-arm.c: Remove symbian support. Formatting.
1543 * targets.c: Delete symbian entries.
1544 * configure: Regenerate.
1545
1a2f1b54
L
15462021-02-04 H.J. Lu <hongjiu.lu@intel.com>
1547
1548 PR ld/19609
1549 * elf64-x86-64.c (elf_x86_64_relocate_section): Provide more
1550 info when failed to convert GOTPCREL relocation.
1551
24075dcc
NC
15522021-02-04 Nelson Chu <nelson.chu@sifive.com>
1553
1554 * elfxx-riscv.c (riscv_parse_prefixed_ext): Removed zb*.
1555
7d409ac0
AM
15562021-02-04 Alan Modra <amodra@gmail.com>
1557
1558 PR 27311
1559 * elflink.c (elf_link_add_object_symbols): Don't pull in as-needed
1560 libraries for IR references on pass over libraries after LTO
1561 recompilation.
1562
f01fb44c
AM
15632021-02-03 Alan Modra <amodra@gmail.com>
1564
1565 PR 27311
1566 * elflink.c (_bfd_elf_add_default_symbol): Revert last two changes.
1567 (elf_link_add_object_symbols): Here too. Don't pull in as-needed
1568 libraries when H is an indirect symbol after calling
1569 _bfd_elf_add_default_symbol.
1570
69551367
AM
15712021-02-03 Alan Modra <amodra@gmail.com>
1572
1573 PR 27311
1574 * elflink.c (_bfd_elf_add_default_symbol): Clear override when
1575 undecorated symbol will have a different version.
1576
9918bff7
AM
15772021-02-02 Alan Modra <amodra@gmail.com>
1578
1579 PR 27311
1580 * elflink.c (_bfd_elf_add_default_symbol): Add override parameter.
1581 Use when handling default versioned symbol. Rename existing
1582 override variable to nondef_override and use for non-default
1583 versioned symbol.
1584 (elf_link_add_object_symbols): Adjust call to suit. Don't
1585 pull in as-needed libraries when override is set.
1586
1f568f9a
EH
15872021-02-01 Emery Hemingway <ehmry@posteo.net>
1588
1589 * config.bfd: Add *-*-genode* as a target for AArch64 and x86.
1590
34c10233
EV
15912021-02-01 Egor Vishnyakov <lenvampir@yandex.ru>
1592
1593 PR 27254
1594 * elf32-rl78.c (rl78_elf_relocate_section): Fix calculation of
1595 offset for the R_RL78_RH_SADDR relocation.
1596
c4566785
AM
15972021-01-29 Alan Modra <amodra@gmail.com>
1598
1599 PR 27271
1600 * elflink.c (bfd_elf_link_record_dynamic_symbol): Don't segfault
1601 on symbols defined in absolute or other special sections.
1602
def97fb9
AM
16032021-01-28 Alan Modra <amodra@gmail.com>
1604
1605 PR 27259
1606 * elflink.c (_bfd_elf_gc_mark_extra_sections): Use linker_mark to
1607 prevent endless looping of linked-to sections.
1608
4cb1265b
MS
16092020-12-17 Mihails Strasuns <mihails.strasuns@intel.com>
1610
1611 * bfd-elf.h (elfcore_write_file_note): New function.
1612 * elf.c (elfcore_write_file_note): New function.
1613
4287950e
AM
16142021-01-26 Alan Modra <amodra@gmail.com>
1615
1616 * elf32-ft32.c (ft32_reloc_type_lookup): Don't miss ft32_reloc_map[0].
1617
940d0202
L
16182021-01-24 H.J. Lu <hongjiu.lu@intel.com>
1619
1620 PR binutils/27231
1621 * dwarf2.c (read_rnglists): Ignore empty range when parsing line
1622 number tables.
1623
18454c15
L
16242021-01-23 H.J. Lu <hongjiu.lu@intel.com>
1625
1626 PR binutils/27231
1627 * dwarf2.c (read_rnglists): Advance rngs_ptr after
1628 _bfd_safe_read_leb128 when parsing DW_RLE_offset_pair.
1629
4bd7c902
AM
16302021-01-20 Alan Modra <amodra@gmail.com>
1631
1632 * elf32-ppc.c: Delete outdated comment.
1633 (TARGET_KEEP_UNUSED_SECTION_SYMBOLS): Define.
1634 * elf64-ppc.c (TARGET_KEEP_UNUSED_SECTION_SYMBOLS): Define.
1635
8bd10d6b
AM
16362021-01-20 Alan Modra <amodra@gmail.com>
1637
1638 * elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Don't assume
1639 section symbols are present.
1640
30845f11
AM
16412021-01-19 Alan Modra <amodra@gmail.com>
1642
1643 * elf64-ppc.c (elf_hash_entry): New inline function. Use
1644 throughout to replace casts.
1645 (branch_reloc_hash_match): Remove const from params.
1646 (use_local_plt): New function.
1647 (allocate_dynrelocs, ppc_build_one_stub, ppc_size_one_stub),
1648 (build_global_entry_stubs_and_plt, ppc64_elf_relocate_section):
1649 Use use_local_plt.
1650 * elf32-ppc.c (use_local_plt): New function.
1651 (allocate_dynrelocs, ppc_elf_relocate_section),
1652 (write_global_sym_plt): Use use_local_plt.
1653
994b2513
L
16542021-01-17 H.J. Lu <hongjiu.lu@intel.com>
1655
1656 PR ld/27193
1657 * elflink.c (elf_create_symbuf): Also ignore section symbols.
1658
75a933f3
L
16592021-01-16 H.J. Lu <hongjiu.lu@intel.com>
1660
1661 PR ld/23169
1662 * elfxx-x86.c (_bfd_x86_elf_link_fixup_ifunc_symbol): Don't
1663 check pointer_equality_needed.
1664
68b00778
L
16652021-01-15 H.J. Lu <hongjiu.lu@intel.com>
1666
1667 * elf-linker-x86.h (elf_linker_x86_params): Add
1668 report_relative_reloc.
1669 * elf32-i386.c (elf_i386_relocate_section): Call
1670 _bfd_x86_elf_link_report_relative_reloc to report relative
1671 relocations for -z report-relative-reloc.
1672 (elf_i386_finish_dynamic_symbol): Likewse.
1673 * elf64-x86-64.c (elf_x86_64_relocate_section): Likewse.
1674 (elf_x86_64_finish_dynamic_symbol): Likewse.
1675 * elfxx-x86.c (_bfd_x86_elf_link_report_relative_reloc): New
1676 function.
1677 * elfxx-x86.h (_bfd_x86_elf_link_report_relative_reloc): New
1678 prototype.
1679
ad92f33d
AM
16802021-01-16 Alan Modra <amodra@gmail.com>
1681
1682 * compress.c (decompress_contents): Tidy inflateEnd result test.
1683
eb6e6af8
AM
16842021-01-16 Alan Modra <amodra@gmail.com>
1685
1686 PR 26002
1687 * elflink.c (elf_link_output_extsym): Use version 1 in
1688 .gnu.version for undefined unversioned symbols.
1689
4bb5732e
NC
16902021-01-15 Nelson Chu <nelson.chu@sifive.com>
1691
1692 * elfnn-riscv.c (riscv_relax_delete_bytes): Fixed the indent that
1693 caused the by previous commit accidentally.
1694
1942a048
NC
16952021-01-15 Nelson Chu <nelson.chu@sifive.com>
1696
1697 * elfnn-riscv.c: Indent, labels and GNU coding standards tidy,
1698 also aligned the code.
1699
b800637e
NC
17002021-01-15 Nelson Chu <nelson.chu@sifive.com>
1701
1702 * elfnn-riscv.c (riscv_merge_attributes): Fix typos of messages.
1703
dcd709e0
NC
17042021-01-15 Nelson Chu <nelson.chu@sifive.com>
1705
1706 * elfnn-riscv.c: Comments tidy and improvement.
1707 * elfxx-riscv.c: Likewise.
1708 * elfxx-riscv.h: Likewise.
1709
8ca9c7eb
L
17102021-01-14 H.J. Lu <hongjiu.lu@intel.com>
1711
1712 PR ld/26688
1713 * elf32-bfin.c (bfinfdpic_relocate_section): Skip non SEC_ALLOC
1714 section for R_BFIN_FUNCDESC.
1715
7e0d77ef
NC
17162021-01-14 Nick Clifton <nickc@redhat.com>
1717
1718 * elf.c (elfcore_grok_win32pstatus): Check for a note type of 0.
1719
5347ed60
AM
17202021-01-13 Alan Modra <amodra@gmail.com>
1721
1722 * Makefile.in: Regenerate.
1723 * doc/Makefile.in: Regenerate.
1724
b209b5a6
AM
17252021-01-13 Alan Modra <amodra@gmail.com>
1726
1727 PR 27160
1728 * section.c (struct bfd_section): Remove pattern field.
1729 (BFD_FAKE_SECTION): Adjust to suit.
1730 * bfd-in2.h: Regenerate.
1731 * elflink.c (compare_link_order, elf_fixup_link_order): Delete.
1732 (bfd_elf_final_link): Don't call elf_fixup_link_order.
1733
d546b610
L
17342021-01-12 H.J. Lu <hongjiu.lu@intel.com>
1735
1736 PR binutils/26792
1737 * configure.ac: Use GNU_MAKE_JOBSERVER.
1738 * aclocal.m4: Regenerated.
1739 * configure: Likewise.
1740
c2e9a4a3
L
17412021-01-12 H.J. Lu <hongjiu.lu@intel.com>
1742
1743 PR ld/27171
1744 * reloc.c (bfd_perform_relocation): Adjust R_AMD64_DIR64 and
1745 R_AMD64_DIR32 relocations for PE/x86-64 inputs.
1746
83b33c6c
L
17472021-01-11 H.J. Lu <hongjiu.lu@intel.com>
1748
1749 PR ld/27173
1750 * configure: Regenerated.
1751
a8aa72b9
NC
17522021-01-11 Nick Clifton <nickc@redhat.com>
1753
1754 * po/fr.po: Updated French translation.
1755 * po/pt.po: Updated Portuguese translation.
1756 * po/sr.po: Updated Serbian translation.
1757 * po/uk.po: Updated Ukranian translation.
1758
a4966cd9
L
17592021-01-09 H.J. Lu <hongjiu.lu@intel.com>
1760
1761 * configure: Regenerated.
1762
0a94990b
L
17632021-01-09 H.J. Lu <hongjiu.lu@intel.com>
1764
1765 PR ld/27166
1766 * elfxx-x86.c (_bfd_x86_elf_merge_gnu_properties): Handle
1767 -z lam-u48 and -z lam-u57.
1768
573fe3fb
NC
17692021-01-09 Nick Clifton <nickc@redhat.com>
1770
1771 * version.m4: Change to 2.36.50.
1772 * configure: Regenerate.
1773 * po/bfd.pot: Regenerate.
1774
055bc77a
NC
17752021-01-09 Nick Clifton <nickc@redhat.com>
1776
1777 * 2.36 release branch crated.
1778
ba9e922f
L
17792021-01-08 H.J. Lu <hongjiu.lu@intel.com>
1780
1781 * elfxx-x86.c (_bfd_x86_elf_link_setup_gnu_properties): Also set
1782 LAM_U57 when setting LAM_U48.
1783
b1b29aa5
L
17842021-01-08 H.J. Lu <hongjiu.lu@intel.com>
1785
1786 PR ld/26256
1787 PR ld/27160
1788 * elflink.c (elf_fixup_link_order): Verify that fixing up
1789 SHF_LINK_ORDER doesn't increase the output section size.
1790
64307045
AM
17912021-01-09 Alan Modra <amodra@gmail.com>
1792
1793 * configure: Regenerate.
1794
f4782128
ST
17952021-01-07 Samuel Thibault <samuel.thibault@gnu.org>
1796
1797 * configure: Regenerate.
1798
d1bcae83
L
17992021-01-07 H.J. Lu <hongjiu.lu@intel.com>
1800
1801 PR 27109
1802 * aix386-core.c (core_aix386_vec): Initialize
1803 keep_unused_section_symbol to TARGET_KEEP_UNUSED_SECTION_SYMBOLS.
1804 * aout-target.h (MY (vec)): Likewise.
1805 * binary.c (binary_vec): Likewise.
1806 * cisco-core.c (core_cisco_be_vec): Likewise.
1807 (core_cisco_le_vec): Likewise.
1808 * coff-alpha.c (alpha_ecoff_le_vec): Likewise.
1809 * coff-i386.c (TARGET_SYM): Likewise.
1810 (TARGET_SYM_BIG): Likewise.
1811 * coff-ia64.c (TARGET_SYM): Likewise.
1812 * coff-mips.c (mips_ecoff_le_vec): Likewise.
1813 (mips_ecoff_be_vec): Likewise.
1814 (mips_ecoff_bele_vec): Likewise.
1815 * coff-rs6000.c (rs6000_xcoff_vec): Likewise.
1816 (powerpc_xcoff_vec): Likewise.
1817 * coff-sh.c (sh_coff_small_vec): Likewise.
1818 (sh_coff_small_le_vec): Likewise.
1819 * coff-tic30.c (tic30_coff_vec): Likewise.
1820 * coff-tic54x.c (tic54x_coff0_vec): Likewise.
1821 (tic54x_coff0_beh_vec): Likewise.
1822 (tic54x_coff1_vec): Likewise.
1823 (tic54x_coff1_beh_vec): Likewise.
1824 (tic54x_coff2_vec): Likewise.
1825 (tic54x_coff2_beh_vec): Likewise.
1826 * coff-x86_64.c (TARGET_SYM): Likewise.
1827 (TARGET_SYM_BIG): Likewise.
1828 * coff64-rs6000.c (rs6000_xcoff64_vec): Likewise.
1829 (rs6000_xcoff64_aix_vec): Likewise.
1830 * coffcode.h (CREATE_BIG_COFF_TARGET_VEC): Likewise.
1831 (CREATE_BIGHDR_COFF_TARGET_VEC): Likewise.
1832 (CREATE_LITTLE_COFF_TARGET_VEC): Likewise.
1833 * elfxx-target.h (TARGET_BIG_SYM): Likewise.
1834 (TARGET_LITTLE_SYM): Likewise.
1835 * hppabsd-core.c (core_hppabsd_vec): Likewise.
1836 * hpux-core.c (core_hpux_vec): Likewise.
1837 * i386msdos.c (i386_msdos_vec): Likewise.
1838 * ihex.c (ihex_vec): Likewise.
1839 * irix-core.c (core_irix_vec): Likewise.
1840 * mach-o-target.c (TARGET_NAME): Likewise.
1841 * mmo.c (mmix_mmo_vec): Likewise.
1842 * netbsd-core.c (core_netbsd_vec): Likewise.
1843 * osf-core.c (core_osf_vec): Likewise.
1844 * pdp11.c (MY (vec)): Likewise.
1845 * pef.c (pef_vec): Likewise.
1846 (pef_xlib_vec): Likewise.
1847 * plugin.c (plugin_vec): Likewise.
1848 * ppcboot.c (powerpc_boot_vec): Likewise.
1849 * ptrace-core.c (core_ptrace_vec): Likewise.
1850 * sco5-core.c (core_sco5_vec): Likewise.
1851 * som.c (hppa_som_vec): Likewise.
1852 * srec.c (srec_vec): Likewise.
1853 (symbolsrec_vec): Likewise.
1854 * tekhex.c (tekhex_vec): Likewise.
1855 * trad-core.c (core_trad_vec): Likewise.
1856 * verilog.c (verilog_vec): Likewise.
1857 * vms-alpha.c (alpha_vms_vec): Likewise.
1858 * vms-lib.c (alpha_vms_lib_txt_vec): Likewise.
1859 * wasm-module.c (wasm_vec): Likewise.
1860 * xsym.c (sym_vec): Likewise.
1861 * elf.c (ignore_section_sym): Return TRUE if BSF_SECTION_SYM_USED
1862 isn't set.
1863 (elf_map_symbols): Don't include ignored section symbols.
1864 * elfcode.h (elf_slurp_symbol_table): Also set
1865 BSF_SECTION_SYM_USED on STT_SECTION symbols.
1866 * elflink.c (bfd_elf_final_link): Generated section symbols only
1867 when emitting relocations or reqired.
1868 * elfxx-x86.h (TARGET_KEEP_UNUSED_SECTION_SYMBOLS): New.
1869 * syms.c (BSF_SECTION_SYM_USED): New.
1870 * targets.c (TARGET_KEEP_UNUSED_SECTION_SYMBOLS): New.
1871 (bfd_target): Add keep_unused_section_symbols.
1872 (bfd_keep_unused_section_symbols): New.
1873 * bfd-in2.h: Regenerated.
1874
17d60030
NC
18752021-01-07 Nick Clifton <nickc@redhat.com>
1876
1877 PR 25713
1878 * bfdio.c (_bfd_real_fopen): For Win32 convert relative paths to
1879 absolute paths and check to see if they are longer than MAX_PATH.
1880
aa881ecd
PT
18812021-01-07 Philipp Tomsich <prt@gnu.org>
1882
1883 * elfxx-riscv.c (riscv_std_z_ext_strtab): Added zihintpause.
1884
2652cfad
CXW
18852021-01-07 Claire Xenia Wolf <claire@symbioticeda.com>
1886 Jim Wilson <jimw@sifive.com>
1887 Andrew Waterman <andrew@sifive.com>
1888 Maxim Blinov <maxim.blinov@embecosm.com>
1889 Kito Cheng <kito.cheng@sifive.com>
1890 Nelson Chu <nelson.chu@sifive.com>
1891
1892 * elfxx-riscv.c (riscv_std_z_ext_strtab): Added zba, zbb and zbc.
1893
d4e57b87
L
18942021-01-06 H.J. Lu <hongjiu.lu@intel.com>
1895
1896 * elf32-bfin.c (bfin_check_relocs): Check bfd_link_hash_indirect.
1897 (bfinfdpic_check_relocs): Likewise.
1898
599c86c4
AM
18992021-01-06 Alan Modra <amodra@gmail.com>
1900
1901 * elf32-score.c (s3_bfd_score_info_to_howto): Report an error
1902 on unknown r_type.
1903 * elf32-score7.c (s7_bfd_score_info_to_howto): Likewise.
1904
3677b729
AM
19052021-01-06 Alan Modra <amodra@gmail.com>
1906
1907 * config.bfd (sparc-*-solaris2*): Add sparc_elf32_vec.
1908 (sparc64-*-solaris2*): Add sparc_elf64_vec and
1909 sparc_elf32_vec.
1910
fbc09e7a
MC
19112021-01-06 Marcus Comstedt <marcus@mc.pp.se>
1912
1913 * config.bfd: Added targets riscv64be*-*-*, riscv32be*-*-* and
1914 riscvbe*-*-*. Also added riscv_elf[32|64]_be_vec.
1915 * configure.ac: Handle riscv_elf[32|64]_be_vec.
1916 * configure: Regenerate.
1917 * elfnn-riscv.c: Include <limits.h> and define CHAR_BIT for
1918 riscv_is_insn_reloc.
1919 (riscv_get_insn): RISC-V instructions are always little endian, but
1920 bfd_get may be used for big-endian, so add new riscv_get_insn to handle
1921 the insturctions.
1922 (riscv_put_insn): Likewsie.
1923 (riscv_is_insn_reloc): Check if we are relocaing an instruction.
1924 (perform_relocation): Call riscv_is_insn_reloc to decide if we should
1925 use riscv_[get|put]_insn or bfd_[get|put].
1926 (riscv_zero_pcrel_hi_reloc): Use riscv_[get|put]_insn, bfd_[get|put]l32
1927 or bfd_[get|put]l16 for code.
1928 (riscv_elf_relocate_section): Likewise.
1929 (riscv_elf_finish_dynamic_symbol): Likewise.
1930 (riscv_elf_finish_dynamic_sections): Likewise.
1931 (_bfd_riscv_relax_call): Likewise.
1932 (_bfd_riscv_relax_lui): Likewise.
1933 (_bfd_riscv_relax_align): Likewise.
1934 (_bfd_riscv_relax_pc): Likewise.
1935 (riscv_elf_object_p): Handled for big endian.
1936 (TARGET_BIG_SYM, TARGET_BIG_NAME): Defined.
1937 * targets.c: Add riscv_elf[32|64]_be_vec.
1938 (_bfd_target_vector): Likewise.
1939
c8bad65e
AM
19402021-01-05 Alan Modra <amodra@gmail.com>
1941
1942 * elflink.c (bfd_elf_link_record_dynamic_symbol): Handle no_export
1943 for relocatable executable.
1944
de6a7ee4
AM
19452021-01-05 Alan Modra <amodra@gmail.com>
1946
1947 * vms-alpha.c (_bfd_vms_slurp_egsd): Read flags after size check.
1948
18b98722
NC
19492021-01-05 Nelson Chu <nelson.chu@sifive.com>
1950
1951 * elfnn-riscv.c (allocate_dynrelocs): When we are generating pde,
1952 make sure gp symbol is output as a dynamic symbol.
1953
cd6d537c
L
19542021-01-04 H.J. Lu <hongjiu.lu@intel.com>
1955
1956 PR ld/26256
1957 * elflink.c (compare_link_order): Place unordered sections before
1958 ordered sections.
1959 (elf_fixup_link_order): Add a link info argument. Allow mixed
1960 ordered and unordered input sections for non-relocatable link.
1961 Sort the consecutive bfd_indirect_link_order sections with the
1962 same pattern. Change the offsets of the bfd_indirect_link_order
1963 sections only.
1964 (bfd_elf_final_link): Pass info to elf_fixup_link_order.
1965 * section.c (bfd_section): Add pattern.
1966 (BFD_FAKE_SECTION): Initialize pattern to NULL.
1967 * bfd-in2.h: Regenerated.
1968
dbb078f6
AF
19692021-01-04 Alexander Fedotov <alfedotov@gmail.com>
1970
1971 * elf32-arm.c (elf32_arm_print_private_bfd_data): Prefix hex value
1972 of private flags with 0x.
1973 * elfnn-aarch64.c (elfNN_aarch64_print_private_bfd_data): Likewise.
1974
5b4293ba
AM
19752021-01-04 Alan Modra <amodra@gmail.com>
1976
1977 PR 26822
1978 * elflink.c (elf_link_input_bfd): Use the file base name in
1979 linker generated STT_FILE symbols.
1980
4c0e540e
NC
19812021-01-04 Nelson Chu <nelson.chu@sifive.com>
1982
1983 * elfxx-riscv.c (riscv_compare_subsets): Removed static.
1984 * elfxx-riscv.h: Add declaration.
1985 * elfnn-riscv.c (riscv_merge_multi_letter_ext): Use
1986 riscv_compare_subsets to check the orders.
1987 (riscv_skip_prefix): Removed.
1988 (riscv_prefix_cmp): Removed.
1989
e9cf3691
AM
19902021-01-04 Alan Modra <amodra@gmail.com>
1991
1992 PR 26741
1993 * elfxx-riscv.c (riscv_parse_prefixed_ext): Free subset after
1994 calculating subset version length.
1995
f9a6a8f0
AM
19962021-01-01 Nicolas Boulenguez <nicolas@debian.org>
1997
1998 * xcofflink.c: Correct spelling in comments.
1999
250d07de
AM
20002021-01-01 Alan Modra <amodra@gmail.com>
2001
2002 Update year range in copyright notice of all files.
2003
c2795844 2004For older changes see ChangeLog-2020
3499769a 2005\f
c2795844 2006Copyright (C) 2021 Free Software Foundation, Inc.
3499769a
AM
2007
2008Copying and distribution of this file, with or without modification,
2009are permitted in any medium without royalty provided the copyright
2010notice and this notice are preserved.
2011
2012Local Variables:
2013mode: change-log
2014left-margin: 8
2015fill-column: 74
2016version-control: never
2017End: