]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - bfd/ChangeLog
ELF output symbol hooks int vs. bfd_boolean
[thirdparty/binutils-gdb.git] / bfd / ChangeLog
CommitLineData
37bb890f
AM
12021-03-29 Alan Modra <amodra@gmail.com>
2
3 * elflink.c (elf_link_output_symstrtab): Make flinfo parameter
4 a void pointer.
5 (bfd_elf_final_link): Delete out_sym_func typedef and don't cast
6 elf_link_output_symstrtab when calling output_arch_syms and
7 output_arch_local_syms.
8 * elf-bfd.h (struct elf_backend_data <elf_backend_output_arch_syms,
9 elf_backend_output_arch_local_syms>): Change return type of func
10 arg to match elf_link_output_symstrtab.
11 * elf-vxworks.h (elf_vxworks_link_output_symbol_hook): Correct
12 return type.
13 * elf32-nds32.c (nds32_elf_output_symbol_hook): Correct return type.
14 (nds32_elf_output_arch_syms): Correct func return type.
15
0f684201
AM
162021-03-29 Alan Modra <amodra@gmail.com>
17
18 * elf-m10200.c (mn10200_elf_relocate_section): Return int.
19 * elf-m10300.c (mn10300_elf_relocate_section): Likewise.
20 * elf32-arc.c (elf_arc_relocate_section): Likewise.
21 * elf32-arm.c (elf32_arm_relocate_section): Likewise.
22 * elf32-avr.c (elf32_avr_relocate_section): Likewise.
23 * elf32-bfin.c (bfin_relocate_section): Likewise.
24 (bfinfdpic_relocate_section): Likewise.
25 * elf32-cr16.c (elf32_cr16_relocate_section): Likewise.
26 * elf32-cris.c (cris_elf_relocate_section): Likewise.
27 * elf32-crx.c (elf32_crx_relocate_section): Likewise.
28 * elf32-csky.c (csky_elf_relocate_section): Likewise.
29 * elf32-d10v.c (elf32_d10v_relocate_section): Likewise.
30 * elf32-epiphany.c (epiphany_elf_relocate_section): Likewise.
31 * elf32-fr30.c (fr30_elf_relocate_section): Likewise.
32 * elf32-frv.c (elf32_frv_relocate_section): Likewise.
33 * elf32-ft32.c (ft32_elf_relocate_section): Likewise.
34 * elf32-h8300.c (elf32_h8_relocate_section): Likewise.
35 * elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
36 * elf32-i386.c (elf_i386_relocate_section): Likewise.
37 * elf32-ip2k.c (ip2k_elf_relocate_section): Likewise.
38 * elf32-iq2000.c (iq2000_elf_relocate_section): Likewise.
39 * elf32-lm32.c (lm32_elf_relocate_section): Likewise.
40 * elf32-m32c.c (m32c_elf_relocate_section): Likewise.
41 * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
42 * elf32-m68hc1x.c (elf32_m68hc11_relocate_section): Likewise.
43 * elf32-m68hc1x.h (elf32_m68hc11_relocate_section): Likewise.
44 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
45 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
46 * elf32-mep.c (mep_elf_relocate_section): Likewise.
47 * elf32-metag.c (elf_metag_relocate_section): Likewise.
48 * elf32-microblaze.c (microblaze_elf_relocate_section): Likewise.
49 * elf32-moxie.c (moxie_elf_relocate_section): Likewise.
50 * elf32-msp430.c (elf32_msp430_relocate_section): Likewise.
51 * elf32-mt.c (mt_elf_relocate_section): Likewise.
52 * elf32-nds32.c (nds32_elf_relocate_section): Likewise.
53 * elf32-nios2.c (nios2_elf32_relocate_section): Likewise.
54 * elf32-or1k.c (or1k_elf_relocate_section): Likewise.
55 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
56 * elf32-pru.c (pru_elf32_relocate_section): Likewise.
57 * elf32-rl78.c (rl78_elf_relocate_section): Likewise.
58 * elf32-rx.c (rx_elf_relocate_section): Likewise.
59 * elf32-s390.c (elf_s390_relocate_section): Likewise.
60 * elf32-score.c (s3_bfd_score_elf_relocate_section): Likewise.
61 (_bfd_score_elf_relocate_section): Likewise.
62 * elf32-score.h (s7_bfd_score_elf_relocate_section): Likewise.
63 * elf32-score7.c (s7_bfd_score_elf_relocate_section): Likewise.
64 * elf32-sh.c (sh_elf_relocate_section): Likewise.
65 * elf32-tic6x.c (elf32_tic6x_relocate_section): Likewise.
66 * elf32-tilepro.c (tilepro_elf_relocate_section): Likewise.
67 * elf32-v850.c (v850_elf_relocate_section): Likewise.
68 * elf32-vax.c (elf_vax_relocate_section): Likewise.
69 * elf32-visium.c (visium_elf_relocate_section): Likewise.
70 * elf32-xc16x.c (elf32_xc16x_relocate_section): Likewise.
71 * elf32-xstormy16.c (xstormy16_elf_relocate_section): Likewise.
72 * elf32-xtensa.c (elf_xtensa_relocate_section): Likewise.
73 * elf32-z80.c (z80_elf_relocate_section): Likewise.
74 * elf64-alpha.c (elf64_alpha_relocate_section_r): Likewise.
75 (elf64_alpha_relocate_section): Likewise.
76 * elf64-bpf.c (bpf_elf_relocate_section): Likewise.
77 * elf64-hppa.c (elf64_hppa_relocate_section): Likewise.
78 * elf64-ia64-vms.c (elf64_ia64_relocate_section): Likewise.
79 * elf64-mmix.c (mmix_elf_relocate_section): Likewise.
80 * elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
81 * elf64-s390.c (elf_s390_relocate_section): Likewise.
82 * elf64-x86-64.c (elf_x86_64_relocate_section): Likewise.
83 * elfnn-aarch64.c (elfNN_aarch64_relocate_section): Likewise.
84 * elfnn-ia64.c (elfNN_ia64_relocate_section): Likewise.
85 * elfnn-riscv.c (riscv_elf_relocate_section): Likewise.
86 * elfxx-mips.c (_bfd_mips_elf_relocate_section): Likewise.
87 * elfxx-mips.h (_bfd_mips_elf_relocate_section): Likewise.
88 * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Likewise.
89 * elfxx-sparc.h (_bfd_sparc_elf_relocate_section): Likewise.
90 * elfxx-tilegx.c (tilegx_elf_relocate_section): Likewise.
91 * elfxx-tilegx.h (tilegx_elf_relocate_section): Likewise.
92
ff5b3e14
KS
932021-03-26 Keith Seitz <keiths@redhat.com>
94
95 * elfcore.h (_bfd_elf_core_find_build_id): Seek file
96 offset of program headers after calling elf_read_notes.
97
f596b03f
JB
982021-03-23 Jan Beulich <jbeulich@suse.com>
99
100 * dwarf2.c (read_indexed_string): Rename index to idx.
101
08dedd66
ML
1022021-03-22 Martin Liska <mliska@suse.cz>
103
104 * bfd-in.h (startswith): Add startswith function.
105 (CONST_STRNEQ): Remove.
106 * bfd-in2.h (startswith): Regenerate with make headers.
107 * archive.c (bfd_slurp_armap): Replace usage of CONST_STRNEQ with startswith.
108 (_bfd_slurp_extended_name_table): Likewise.
109 * archive64.c (_bfd_archive_64_bit_slurp_armap): Likewise.
110 * bfd.c (bfd_get_sign_extend_vma): Likewise.
111 (bfd_convert_section_size): Likewise.
112 (bfd_convert_section_contents): Likewise.
113 * coff-stgo32.c (go32exe_create_stub): Likewise.
114 (go32exe_check_format): Likewise.
115 * coffcode.h (styp_to_sec_flags): Likewise.
116 (GNU_DEBUGALTLINK): Likewise.
117 * coffgen.c (_bfd_coff_section_already_linked): Likewise.
118 (coff_gc_sweep): Likewise.
119 (bfd_coff_gc_sections): Likewise.
120 * cofflink.c (coff_link_add_symbols): Likewise.
121 (process_embedded_commands): Likewise.
122 * compress.c (bfd_is_section_compressed_with_header): Likewise.
123 (bfd_init_section_decompress_status): Likewise.
124 * dwarf2.c (find_debug_info): Likewise.
125 (place_sections): Likewise.
126 * ecoff.c (_bfd_ecoff_slurp_armap): Likewise.
127 * elf-m10300.c (_bfd_mn10300_elf_size_dynamic_sections): Likewise.
128 * elf.c (_bfd_elf_make_section_from_shdr): Likewise.
129 (assign_section_numbers): Likewise.
130 (elfcore_grok_win32pstatus): Likewise.
131 * elf32-arm.c (cmse_scan): Likewise.
132 (elf32_arm_gc_mark_extra_sections): Likewise.
133 (elf32_arm_size_dynamic_sections): Likewise.
134 (is_arm_elf_unwind_section_name): Likewise.
135 * elf32-bfin.c (bfin_size_dynamic_sections): Likewise.
136 * elf32-cr16.c (_bfd_cr16_elf_size_dynamic_sections): Likewise.
137 * elf32-cris.c (elf_cris_size_dynamic_sections): Likewise.
138 * elf32-csky.c (csky_elf_size_dynamic_sections): Likewise.
139 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Likewise.
140 * elf32-iq2000.c (iq2000_elf_check_relocs): Likewise.
141 * elf32-lm32.c (lm32_elf_size_dynamic_sections): Likewise.
142 * elf32-m32r.c (m32r_elf_size_dynamic_sections): Likewise.
143 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
144 * elf32-metag.c (elf_metag_size_dynamic_sections): Likewise.
145 * elf32-msp430.c (msp430_elf_relax_delete_bytes): Likewise.
146 * elf32-nios2.c (nios2_elf32_size_dynamic_sections): Likewise.
147 * elf32-or1k.c (or1k_elf_size_dynamic_sections): Likewise.
148 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Likewise.
149 * elf32-s390.c (elf_s390_size_dynamic_sections): Likewise.
150 * elf32-score.c (s3_bfd_score_elf_size_dynamic_sections): Likewise.
151 * elf32-score7.c (s7_bfd_score_elf_size_dynamic_sections): Likewise.
152 * elf32-sh.c (sh_elf_size_dynamic_sections): Likewise.
153 * elf32-tic6x.c (is_tic6x_elf_unwind_section_name): Likewise.
154 (elf32_tic6x_size_dynamic_sections): Likewise.
155 * elf32-vax.c (elf_vax_size_dynamic_sections): Likewise.
156 * elf32-xtensa.c (elf_xtensa_size_dynamic_sections): Likewise.
157 (xtensa_is_insntable_section): Likewise.
158 (xtensa_is_littable_section): Likewise.
159 (xtensa_is_proptable_section): Likewise.
160 (xtensa_property_section_name): Likewise.
161 (xtensa_callback_required_dependence): Likewise.
162 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Likewise.
163 * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise.
164 * elf64-ia64-vms.c (is_unwind_section_name): Likewise.
165 (get_reloc_section): Likewise.
166 (elf64_ia64_size_dynamic_sections): Likewise.
167 (elf64_ia64_object_p): Likewise.
168 * elf64-mmix.c (mmix_elf_add_symbol_hook): Likewise.
169 * elf64-ppc.c (ppc64_elf_size_dynamic_sections): Likewise.
170 * elf64-s390.c (elf_s390_size_dynamic_sections): Likewise.
171 * elflink.c (elf_link_add_object_symbols): Likewise.
172 (_bfd_elf_gc_mark_extra_sections): Likewise.
173 (bfd_elf_parse_eh_frame_entries): Likewise.
174 (_bfd_elf_section_already_linked): Likewise.
175 * elfnn-aarch64.c (elfNN_aarch64_size_dynamic_sections): Likewise.
176 * elfnn-ia64.c (is_unwind_section_name): Likewise.
177 (elfNN_ia64_size_dynamic_sections): Likewise.
178 (elfNN_ia64_object_p): Likewise.
179 * elfxx-mips.c (FN_STUB_P): Likewise.
180 (CALL_STUB_P): Likewise.
181 (CALL_FP_STUB_P): Likewise.
182 (_bfd_mips_elf_section_from_shdr): Likewise.
183 (_bfd_mips_elf_fake_sections): Likewise.
184 (_bfd_mips_elf_size_dynamic_sections): Likewise.
185 (_bfd_mips_final_write_processing): Likewise.
186 (_bfd_mips_elf_final_link): Likewise.
187 * elfxx-sparc.c (_bfd_sparc_elf_size_dynamic_sections): Likewise.
188 * elfxx-x86.c (elf_i386_is_reloc_section): Likewise.
189 (elf_x86_64_is_reloc_section): Likewise.
190 * hpux-core.c (thread_section_p): Likewise.
191 * libcoff.h (bfd_pei_p): Likewise.
192 * linker.c (REAL): Likewise.
193 (unwrap_hash_lookup): Likewise.
194 (_bfd_generic_link_add_one_symbol): Likewise.
195 * mmo.c (mmo_internal_write_section): Likewise.
196 * osf-core.c (osf_core_core_file_p): Likewise.
197 * pef.c (bfd_pef_print_symbol): Likewise.
198 * pei-x86_64.c (pex64_print_all_pdata_sections): Likewise.
199 * som.c (som_slurp_symbol_table): Likewise.
200 (som_slurp_armap): Likewise.
201 * wasm-module.c (wasm_compute_custom_section_file_position): Likewise.
202
2aaf2ce8
JB
2032021-03-22 Jan Beulich <jbeulich@suse.com>
204
205 * peXXigen.c (_bfd_XXi_swap_scnhdr_out): Add missing
206 language translation wrapping to _bfd_error_handler()
207 invocations.
208
e9338841
AM
2092021-03-21 Alan Modra <amodra@gmail.com>
210
211 * bfd-in.h (startswith): New inline.
212 (CONST_STRNEQ): Use startswith.
213 * bfd-in2.h: Regenerate.
214
15407e7e
AM
2152021-03-20 Alan Modra <amodra@gmail.com>
216
217 PR 27590
218 * elf.c (_bfd_elf_make_section_from_shdr): Remove SHF_EXCLUDE
219 test for .gnu.debuglto*.
220
3818d4ab
L
2212021-03-18 H.J. Lu <hongjiu.lu@intel.com>
222
223 PR ld/27590
15407e7e 224 * elf.c (_bfd_elf_make_section_from_shdr): Treat
3818d4ab
L
225 .gnu.debuglto_.debug_ section as debugging section unless it is
226 marked with SHF_EXCLUDE.
227 * elflink.c (elf_create_symbuf): Revert commit 994b2513281.
228 (bfd_elf_match_symbols_in_sections): Ignore section symbols when
229 matching non-debugging sections or linkonce section with comdat
230 section.
231
51f6e7a9
L
2322021-03-18 H.J. Lu <hongjiu.lu@intel.com>
233
234 PR ld/27587
235 * dwarf2.c (read_attribute_value): Check version >= 3 for
236 DW_FORM_ref_addr.
237
012d4426
NC
2382021-03-16 Nick Clifton <nickc@redhat.com>
239
240 * peXXigen.c (_bfd_XXi_swap_aux_out): Avoid potential buffer
241 overrun by using sizeof of the destination x_fname field as the
242 limit for a memcpy.
243
80d49d6a
KLC
2442021-03-16 Kuan-Lin Chen <kuanlinchentw@gmail.com>
245
246 * elfxx-riscv.c (riscv_std_z_ext_strtab): Add zba, zbb and zbc.
247
1b2cb8e2
CC
2482021-03-12 Clément Chigot <clement.chigot@atos.net>
249
250 * reloc.c (BFD_RELOC_PPC_TLS_LE, BFD_RELOC_PPC_TLS_IE,
251 BFD_RELOC_PPC_TLS_M, BFD_RELOC_PPC_TLS_ML, BFD_RELOC_PPC64_TLS_GD,
252 BFD_RELOC_PPC64_TLS_LD, BFD_RELOC_PPC64_TLS_LE,
253 BFD_RELOC_PPC64_TLS_IE, BFD_RELOC_PPC64_TLS_M,
254 BFD_RELOC_PPC64_TLS_ML): New relocations.
255 * bfd-in2.h: Regenerate.
256 * libbfd.h: Regenerate.
257 * coff-rs6000.c (xcoff_calculate_relocation): Call
258 xcoff_reloc_type_tls for TLS relocations.
259 (xcoff_howto_table): Implement TLS relocations.
260 (_bfd_xcoff_reloc_type_lookup): Add cases TLS relocations.
261 (xcoff_reloc_type_tls): New function.
262 * coff64-rs6000.c (xcoff_calculate_relocation): Likewise.
263 (xcoff_howto_table): Likewise.
264 (_bfd_xcoff_reloc_type_lookup): Likewise.
265 * coffcode.h (sec_to_styp_flags): Handle TLS sections.
266 (styp_to_sec_flags): Likewise.
267 (coff_compute_section_file_positions): Avoid file offset
268 optimisation for .data when the previous section is .tdata.
269 (coff_write_object_contents): Handle TLS sections.
270 * coffswap.h (coff_swap_aouthdr_out): Add support for
271 new fields in aouthdr.
272 * libxcoff.h (xcoff_reloc_type_tls): Add prototype.
273 * xcofflink.c (xcoff_link_add_symbols): Handle XMC_UL.
274 (xcoff_need_ldrel_p): Add cases for TLS relocations.
275 (xcoff_create_ldrel): Add l_symndx for TLS sections.
276
4a403be0
CC
2772021-03-12 Clément Chigot <clement.chigot@atos.net>
278
279 * reloc.c (BFD_RELOC_PPC_TOC16_HI, BFD_RELOC_PPC_TOC16_LO):
280 New relocations.
281 * bfd-in2.h: Regenerate.
282 * libbfd.h: Regenerate.
283 * coff-rs6000.c (xcoff_calculate_relocation): Call
284 xcoff_reloc_type_toc for R_TOCU and R_TOCL.
285 (xcoff_howto_table): Remove src_mask for TOC relocations.
286 Add R_TOCU and R_TOCL howtos.
287 (_bfd_xcoff_reloc_type_lookup): Add cases for
288 BFD_RELOC_PPC_TOC16_HI and BFD_RELOC_PPC_TOC16_LO.
289 (xcoff_reloc_type_toc): Compute the whole offset.
290 Implement R_TOCU and R_TOCL.
291 * coff64-rs6000.c (xcoff64_calculate_relocation):
292 Likewise.
293 (xcoff64_howto_table): Likewise.
294 (xcoff64_reloc_type_lookup): Likewise.
295
2c1bef53
CC
2962021-03-12 Clément Chigot <clement.chigot@atos.net>
297
298 * coff-rs6000.c (xcoff_calculate_relocation): Correct and
299 add new relocations.
300 (xcoff_howto_table): Likewise.
301 (xcoff_rtype2howto): Increase r_type maximum value.
302 (xcoff_ppc_relocate_section): Reuse predefined HOWTOs instead
303 of create a new one from scratch. Enable only some relocations
304 to have a changing r_size.
305 * coff64-rs6000.c (xcoff64_calculate_relocation): Likewise.
306 (xcoff64_howto_table): Likewise.
307 (xcoff64_rtype2howto): Likewise.
308 (xcoff64_ppc_relocate_section): Likewise.
309 * libxcoff.h (XCOFF_MAX_CALCULATE_RELOCATION): Fix value.
310
0c929e83
CC
3112021-03-12 Clément Chigot <clement.chigot@atos.net>
312
313 * coff64-rs6000.c (xcoff64_ppc_relocate_section): Move.
314
6d4d9328
CC
3152021-03-12 Clément Chigot <clement.chigot@atos.net>
316
317 * coff64-rs6000.c (xcoff64_write_object_contents): Remove.
318 * coffcode.h (coff_write_object_contents): Add bfd_mach_ppc_620
319 support for o_cputype field. Avoid creating an empty a.out header
320 for XCOFF64.
321
8aa2d023
CC
3222021-03-12 Clément Chigot <clement.chigot@atos.net>
323
324 * coff64-rs6000.c (xcoff64_create_csect_from_smclas): Add
325 missing smclass.
326
ebdcad3f
NC
3272021-03-11 Nelson Chu <nelson.chu@sifive.com>
328
329 * elfnn-riscv.c (riscv_elf_link_hash_table): New boolean
330 restart_relax, used to check if we need to run the whole
331 relaxations from relax pass 0 to 2 again.
332 (riscv_elf_link_hash_table_create): Init restart_relax to FALSE.
333 (_bfd_riscv_relax_align): Remove obsolete sec_flg0 set.
334 (_bfd_riscv_relax_delete): Set again to TRUE if we do delete the code.
335 (bfd_elfNN_riscv_restart_relax_sections): New function. Called by
336 after_allocation to check if we need to run the whole relaxations again.
337 (_bfd_riscv_relax_section): We will only enter into the relax pass 3
338 when the restart_relax is FALSE; At last set restart_relax to TRUE if
339 again is TRUE, too.
340 * elfxx-riscv.h (bfd_elf32_riscv_restart_relax_sections): Declaration.
341 (bfd_elf64_riscv_restart_relax_sections): Likewise.
342
67b0f684
JB
3432021-03-10 Jan Beulich <jbeulich@suse.com>
344
345 * cofflink.c (_bfd_coff_write_global_sym): Range-check symbol
346 offset.
347
2dfa8341
AM
3482021-03-10 Alan Modra <amodra@gmail.com>
349 Jan Beulich <jbeulich@suse.com>
350
351 * elf.c (bfd_elf_generic_reloc): Make references between debug
352 sections use section relative values.
353
87fa7d56
JB
3542021-03-09 Jan Beulich <jbeulich@suse.com>
355
356 * peXXigen.c (_bfd_XXi_swap_scnhdr_out): Diagnose out of range RVA.
357
8c0546e9
L
3582021-03-05 H.J. Lu <hongjiu.lu@intel.com>
359
360 PR ld/27425
361 PR ld/27432
362 * bfd.c (_bfd_get_link_info): New function.
363 * elf-bfd.h (output_elf_obj_tdata): Add link_info.
364 (elf_link_info): New.
365 * libbfd-in.h (_bfd_get_link_info): New prototype.
366 * coff-x86_64.c (coff_amd64_reloc): Also subtract __ImageBase for
367 R_AMD64_IMAGEBASE when generating x86-64 ELF executable.
368 * pe-x86_64.c: Include "coff/internal.h" and "libcoff.h".
369 (pex64_link_add_symbols): New function.
370 (coff_bfd_link_add_symbols): New macro.
371 * libbfd.h: Regenerated.
372
db6092f3
AB
3732021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
374 Andrew Burgess <andrew.burgess@embecosm.com>
375
376 * elf-bfd.h (elfcore_write_riscv_csr): Declare.
377 * elf.c (elfcore_grok_riscv_csr): New function.
378 (elfcore_grok_note): Handle NT_RISCV_CSR.
379 (elfcore_write_riscv_csr): New function.
380 (elfcore_write_register_note): Handle '.reg-riscv-csr'.
381
0897bb7d
AB
3822021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
383 Andrew Burgess <andrew.burgess@embecosm.com>
384
385 * elfnn-riscv.c (PRPSINFO_PR_FNAME_LENGTH): Define.
386 (PRPSINFO_PR_PSARGS_LENGTH): Define.
387 (riscv_write_core_note): New function.
388 (riscv_elf_grok_psinfo): Make use of two new length defines.
389 (elf_backend_write_core_note): Define.
390
b63a5e38
AB
3912021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
392 Andrew Burgess <andrew.burgess@embecosm.com>
393
394 * elf-bfd.h (elfcore_write_gdb_tdesc): Declare new function.
395 * elf.c (elfcore_grok_gdb_tdesc): New function.
396 (elfcore_grok_note): Handle NT_GDB_TDESC.
397 (elfcore_write_gdb_tdesc): New function.
398 (elfcore_write_register_note): Handle NT_GDB_TDESC.
399
2017f387
NC
4002021-03-05 Nick Clifton <nickc@redhat.com>
401
402 PR 27521
403 * dwarf2.c (is_str_attr): Add DW_FORM_strx* forms.
404 (read_indexed_string): Placeholder function.
405 (read_attribute_value): Handle DW_FORM_strx* and DW_FORM_addrx*
406 forms.
407
b01b5d9a
AM
4082021-03-05 Alan Modra <amodra@gmail.com>
409
410 * reloc.c (bfd_perform_relocation): Revert 2021-01-12 and
411 2020-09-16 changes.
412 * coff-x86_64.c (coff_amd64_reloc): Do more or less the same
413 adjustments here instead. Separate pc-relative adjustments
414 from symbol related adjustments. Tidy comments and formatting.
415
6b5465b9
JB
4162021-03-04 Jan Beulich <jbeulich@suse.com>
417
418 * coffcode.h (sec_to_styp_flags): Don't set IMAGE_SCN_LNK_* in
419 final PE images.
420
0b7733b6
AM
4212021-03-04 Alan Modra <amodra@gmail.com>
422
423 * rs6000-core.c (rs6000coff_core_p): Correct prototype.
424
5789f845
AM
4252021-03-03 Alan Modra <amodra@gmail.com>
426
427 PR 27500
428 * elflink.c (_bfd_elf_gc_mark_rsec): Do special start/stop
429 processing not when start/stop symbol section is unmarked but
430 on first time a start/stop symbol is processed.
431
dc83f2d2
AM
4322021-03-03 Alan Modra <amodra@gmail.com>
433
434 * reloc.c: Include x86_64.h rather than internal.h.
435
ca8f6bc6
NC
4362021-03-02 Nick Clifton <nickc@redhat.com>
437
438 PR 27484
439 * dwarf2.c (scan_unit_for_symbols): Scan twice, once to accumulate
440 function and variable tags and a second time to resolve their
441 attributes.
442
211bcd01
NA
4432021-03-02 Nick Alcock <nick.alcock@oracle.com>
444
445 * elf-strtab.c (_bfd_elf_strtab_str): Skip strings with zero refcount.
446
b80e421f
AM
4472021-03-02 Alan Modra <amodra@gmail.com>
448
449 PR 27451
450 * elf64-ppc.c (ppc64_elf_gc_mark_dynamic_ref): Ignore synthesized
451 linker defined start/stop symbols when start_stop_gc.
452
f5b9c288
AM
4532021-03-02 Alan Modra <amodra@gmail.com>
454
455 * elf64-ppc.c (ppc64_elf_relocate_section): Don't optimise got
456 indirect to pc-relative or toc-relative for undefined symbols.
457
8ee10e86
AM
4582021-03-01 Alan Modra <amodra@gmail.com>
459 Fangrui Song <maskray@google.com>
460
461 * elflink.c (_bfd_elf_gc_mark_rsec): Ignore synthesized linker
462 defined start/stop symbols when start_stop_gc.
463 (bfd_elf_gc_mark_dynamic_ref_symbol): Likewise.
464 (bfd_elf_define_start_stop): Don't modify ldscript_def syms.
465 * linker.c (bfd_generic_define_start_stop): Likewise.
466
bbaddd4b
AM
4672021-02-25 Alan Modra <amodra@gmail.com>
468
469 PR 27441
470 * elf-bfd.h (struct elf_link_hash_entry): Add ref_ir_nonweak.
471 * elflink.c (elf_link_add_object_symbols): Set ref_ir_nonweak and
472 use when deciding an as-needed library should be loaded instead
473 of using the binding of the library definition.
474
93af1b04
AM
4752021-02-24 Alan Modra <amodra@gmail.com>
476
477 PR 27459
478 * coff-stgo32.c (go32exe_check_format): Sanity check size of
479 header to avoid a buffer overflow.
480
e9d18e06
AM
4812021-02-22 Alan Modra <amodra@gmail.com>
482
483 * coff-rs6000.c (_bfd_xcoff_reloc_type_lookup): Remove BFD_RELOC_16.
484 * coff64-rs6000.c (xcoff64_reloc_type_lookup): Likewise.
485
5a9f5403
NC
4862021-02-19 Nelson Chu <nelson.chu@sifive.com>
487
488 PR 27158
489 * elfnn-riscv.c (perform_relocation): Updated encoding macros.
490 (_bfd_riscv_relax_call): Likewise.
491 (_bfd_riscv_relax_lui): Likewise.
492 * elfxx-riscv.c (howto_table): Likewise.
493
3d73d29e
NC
4942021-02-18 Nelson Chu <nelson.chu@sifive.com>
495
496 * Makefile.am: Added cpu-riscv.h.
497 * Makefile.in: Regenerated.
498 * po/SRC-POTFILES.in: Regenerated.
499 * cpu-riscv.h: Added to support spec versions controlling.
500 Also added extern arrays and functions for cpu-riscv.c.
501 (enum riscv_spec_class): Define all spec classes here uniformly.
502 (struct riscv_spec): Added for all specs.
503 (RISCV_GET_SPEC_CLASS): Added to reduce repeated code.
504 (RISCV_GET_SPEC_NAME): Likewise.
505 (RISCV_GET_ISA_SPEC_CLASS): Added to get ISA spec class.
506 (RISCV_GET_PRIV_SPEC_CLASS): Added to get privileged spec class.
507 (RISCV_GET_PRIV_SPEC_NAME): Added to get privileged spec name.
508 * cpu-riscv.c (struct priv_spec_t): Replaced with struct riscv_spec.
509 (riscv_get_priv_spec_class): Replaced with RISCV_GET_PRIV_SPEC_CLASS.
510 (riscv_get_priv_spec_name): Replaced with RISCV_GET_PRIV_SPEC_NAME.
511 (riscv_priv_specs): Moved below.
512 (riscv_get_priv_spec_class_from_numbers): Likewise, updated.
513 (riscv_isa_specs): Moved from include/opcode/riscv.h.
514 * elfnn-riscv.c: Included cpu-riscv.h.
515 (riscv_merge_attributes): Initialize in_priv_spec and out_priv_spec.
516 * elfxx-riscv.c: Included cpu-riscv.h and opcode/riscv.h.
517 (RISCV_UNKNOWN_VERSION): Moved from include/opcode/riscv.h.
518 * elfxx-riscv.h: Removed extern functions to cpu-riscv.h.
519
b9b204b3
AM
5202021-02-17 Alan Modra <amodra@gmail.com>
521
522 * wasm-module.c: Guard include of limits.h.
523 (CHAR_BIT): Provide backup define.
524 (wasm_read_leb128): Use CHAR_BIT to size "result" in bits.
525 Correct signed overflow checking.
526
0d6aab77
NC
5272021-02-17 Nelson Chu <nelson.chu@sifive.com>
528
529 PR 27200
530 * elfnn-riscv.c (_bfd_riscv_elf_merge_private_bfd_data): Delay
531 copying the elf flags from input BFD to output BFD, until we have
532 checked if the input BFD has no code section or not. Also fix the
533 problem that we only check the first section rather than the entire
534 sections for input BFD.
535
7b54cadd
AM
5362021-02-16 Alan Modra <amodra@gmail.com>
537
538 * libbfd.c (_bfd_read_unsigned_leb128): Avoid excessive shift.
539 (_bfd_safe_read_leb128, _bfd_read_signed_leb128): Likewise.
540
8c674061
JB
5412021-02-15 Jan Beulich <jbeulich@suse.com>
542
543 * doc/Makefile.am: Replace "cp -p" by "$(LN_S)".
544 * doc/Makefile.in: Re-generate.
545
1781a9d0
AM
5462021-02-15 Alan Modra <amodra@gmail.com>
547
548 * elf32-nds32.c (nds32_get_section_contents): Replace
549 bfd_malloc_and_get_section with bfd_get_full_section_contents.
550 (nds32_elf_relax_delete_blanks): Init contents.
551 (nds32_elf_relax_section, nds32_relax_fp_as_gp): Likewise.
552
8b78cbec
AM
5532021-02-15 Alan Modra <amodra@gmail.com>
554
555 * coff-alpha.c (alpha_ecoff_get_relocated_section_contents): Use
556 bfd_get_full_section_contents.
557
d7a7af8f
AM
5582021-02-14 Alan Modra <amodra@gmail.com>
559
560 * elfxx-mips.c (_bfd_elf_mips_get_relocated_section_contents): Apply
561 all fixes to bfd_generic_get_relocated_section_contents since this
562 function was split out.
563
234b98ce
AM
5642021-02-11 Alan Modra <amodra@gmail.com>
565
566 * config.bfd: Remove ia64 from obsolete list.
567
769c253f
AM
5682021-02-11 Alan Modra <amodra@gmail.com>
569
570 PR ld/22269
571 * elfnn-ia64.c: Revert 2017-10-14 git commit db41f6eb5234.
572
31c711a2
AM
5732021-02-11 Alan Modra <amodra@gmail.com>
574
575 PR 27294
576 * elf32-avr.c (avr_elf32_load_records_from_section): Use
577 bfd_malloc_and_get_section. Use bfd_byte* vars and remove then
578 unnecessary casts.
579
6db658c5
AM
5802021-02-11 Alan Modra <amodra@gmail.com>
581
582 PR 27291
583 * section.c (bfd_get_section_contents): Avoid possible overflow
584 when range checking offset and count.
585 (bfd_set_section_contents): Likewise.
586
95148614
NA
5872021-02-03 Nick Alcock <nick.alcock@oracle.com>
588
589 * configure.ac (SHARED_LIBADD): Remove explicit -lintl population in
590 favour of LIBINTL.
591 * configure: Regenerated.
592
a57d1773
AM
5932021-02-09 Alan Modra <amodra@gmail.com>
594
595 * config.bfd (arm*-*-symbianelf*): Move from obsolete to removed.
596 * configure.ac: Delete symbian entries.
597 * elf-bfd.h (enum elf_target_os): Delete is_symbian.
598 * elf32-arm.c: Remove symbian support. Formatting.
599 * targets.c: Delete symbian entries.
600 * configure: Regenerate.
601
1a2f1b54
L
6022021-02-04 H.J. Lu <hongjiu.lu@intel.com>
603
604 PR ld/19609
605 * elf64-x86-64.c (elf_x86_64_relocate_section): Provide more
606 info when failed to convert GOTPCREL relocation.
607
24075dcc
NC
6082021-02-04 Nelson Chu <nelson.chu@sifive.com>
609
610 * elfxx-riscv.c (riscv_parse_prefixed_ext): Removed zb*.
611
7d409ac0
AM
6122021-02-04 Alan Modra <amodra@gmail.com>
613
614 PR 27311
615 * elflink.c (elf_link_add_object_symbols): Don't pull in as-needed
616 libraries for IR references on pass over libraries after LTO
617 recompilation.
618
f01fb44c
AM
6192021-02-03 Alan Modra <amodra@gmail.com>
620
621 PR 27311
622 * elflink.c (_bfd_elf_add_default_symbol): Revert last two changes.
623 (elf_link_add_object_symbols): Here too. Don't pull in as-needed
624 libraries when H is an indirect symbol after calling
625 _bfd_elf_add_default_symbol.
626
69551367
AM
6272021-02-03 Alan Modra <amodra@gmail.com>
628
629 PR 27311
630 * elflink.c (_bfd_elf_add_default_symbol): Clear override when
631 undecorated symbol will have a different version.
632
9918bff7
AM
6332021-02-02 Alan Modra <amodra@gmail.com>
634
635 PR 27311
636 * elflink.c (_bfd_elf_add_default_symbol): Add override parameter.
637 Use when handling default versioned symbol. Rename existing
638 override variable to nondef_override and use for non-default
639 versioned symbol.
640 (elf_link_add_object_symbols): Adjust call to suit. Don't
641 pull in as-needed libraries when override is set.
642
1f568f9a
EH
6432021-02-01 Emery Hemingway <ehmry@posteo.net>
644
645 * config.bfd: Add *-*-genode* as a target for AArch64 and x86.
646
34c10233
EV
6472021-02-01 Egor Vishnyakov <lenvampir@yandex.ru>
648
649 PR 27254
650 * elf32-rl78.c (rl78_elf_relocate_section): Fix calculation of
651 offset for the R_RL78_RH_SADDR relocation.
652
c4566785
AM
6532021-01-29 Alan Modra <amodra@gmail.com>
654
655 PR 27271
656 * elflink.c (bfd_elf_link_record_dynamic_symbol): Don't segfault
657 on symbols defined in absolute or other special sections.
658
def97fb9
AM
6592021-01-28 Alan Modra <amodra@gmail.com>
660
661 PR 27259
662 * elflink.c (_bfd_elf_gc_mark_extra_sections): Use linker_mark to
663 prevent endless looping of linked-to sections.
664
4cb1265b
MS
6652020-12-17 Mihails Strasuns <mihails.strasuns@intel.com>
666
667 * bfd-elf.h (elfcore_write_file_note): New function.
668 * elf.c (elfcore_write_file_note): New function.
669
4287950e
AM
6702021-01-26 Alan Modra <amodra@gmail.com>
671
672 * elf32-ft32.c (ft32_reloc_type_lookup): Don't miss ft32_reloc_map[0].
673
940d0202
L
6742021-01-24 H.J. Lu <hongjiu.lu@intel.com>
675
676 PR binutils/27231
677 * dwarf2.c (read_rnglists): Ignore empty range when parsing line
678 number tables.
679
18454c15
L
6802021-01-23 H.J. Lu <hongjiu.lu@intel.com>
681
682 PR binutils/27231
683 * dwarf2.c (read_rnglists): Advance rngs_ptr after
684 _bfd_safe_read_leb128 when parsing DW_RLE_offset_pair.
685
4bd7c902
AM
6862021-01-20 Alan Modra <amodra@gmail.com>
687
688 * elf32-ppc.c: Delete outdated comment.
689 (TARGET_KEEP_UNUSED_SECTION_SYMBOLS): Define.
690 * elf64-ppc.c (TARGET_KEEP_UNUSED_SECTION_SYMBOLS): Define.
691
8bd10d6b
AM
6922021-01-20 Alan Modra <amodra@gmail.com>
693
694 * elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Don't assume
695 section symbols are present.
696
30845f11
AM
6972021-01-19 Alan Modra <amodra@gmail.com>
698
699 * elf64-ppc.c (elf_hash_entry): New inline function. Use
700 throughout to replace casts.
701 (branch_reloc_hash_match): Remove const from params.
702 (use_local_plt): New function.
703 (allocate_dynrelocs, ppc_build_one_stub, ppc_size_one_stub),
704 (build_global_entry_stubs_and_plt, ppc64_elf_relocate_section):
705 Use use_local_plt.
706 * elf32-ppc.c (use_local_plt): New function.
707 (allocate_dynrelocs, ppc_elf_relocate_section),
708 (write_global_sym_plt): Use use_local_plt.
709
994b2513
L
7102021-01-17 H.J. Lu <hongjiu.lu@intel.com>
711
712 PR ld/27193
713 * elflink.c (elf_create_symbuf): Also ignore section symbols.
714
75a933f3
L
7152021-01-16 H.J. Lu <hongjiu.lu@intel.com>
716
717 PR ld/23169
718 * elfxx-x86.c (_bfd_x86_elf_link_fixup_ifunc_symbol): Don't
719 check pointer_equality_needed.
720
68b00778
L
7212021-01-15 H.J. Lu <hongjiu.lu@intel.com>
722
723 * elf-linker-x86.h (elf_linker_x86_params): Add
724 report_relative_reloc.
725 * elf32-i386.c (elf_i386_relocate_section): Call
726 _bfd_x86_elf_link_report_relative_reloc to report relative
727 relocations for -z report-relative-reloc.
728 (elf_i386_finish_dynamic_symbol): Likewse.
729 * elf64-x86-64.c (elf_x86_64_relocate_section): Likewse.
730 (elf_x86_64_finish_dynamic_symbol): Likewse.
731 * elfxx-x86.c (_bfd_x86_elf_link_report_relative_reloc): New
732 function.
733 * elfxx-x86.h (_bfd_x86_elf_link_report_relative_reloc): New
734 prototype.
735
ad92f33d
AM
7362021-01-16 Alan Modra <amodra@gmail.com>
737
738 * compress.c (decompress_contents): Tidy inflateEnd result test.
739
eb6e6af8
AM
7402021-01-16 Alan Modra <amodra@gmail.com>
741
742 PR 26002
743 * elflink.c (elf_link_output_extsym): Use version 1 in
744 .gnu.version for undefined unversioned symbols.
745
4bb5732e
NC
7462021-01-15 Nelson Chu <nelson.chu@sifive.com>
747
748 * elfnn-riscv.c (riscv_relax_delete_bytes): Fixed the indent that
749 caused the by previous commit accidentally.
750
1942a048
NC
7512021-01-15 Nelson Chu <nelson.chu@sifive.com>
752
753 * elfnn-riscv.c: Indent, labels and GNU coding standards tidy,
754 also aligned the code.
755
b800637e
NC
7562021-01-15 Nelson Chu <nelson.chu@sifive.com>
757
758 * elfnn-riscv.c (riscv_merge_attributes): Fix typos of messages.
759
dcd709e0
NC
7602021-01-15 Nelson Chu <nelson.chu@sifive.com>
761
762 * elfnn-riscv.c: Comments tidy and improvement.
763 * elfxx-riscv.c: Likewise.
764 * elfxx-riscv.h: Likewise.
765
8ca9c7eb
L
7662021-01-14 H.J. Lu <hongjiu.lu@intel.com>
767
768 PR ld/26688
769 * elf32-bfin.c (bfinfdpic_relocate_section): Skip non SEC_ALLOC
770 section for R_BFIN_FUNCDESC.
771
7e0d77ef
NC
7722021-01-14 Nick Clifton <nickc@redhat.com>
773
774 * elf.c (elfcore_grok_win32pstatus): Check for a note type of 0.
775
5347ed60
AM
7762021-01-13 Alan Modra <amodra@gmail.com>
777
778 * Makefile.in: Regenerate.
779 * doc/Makefile.in: Regenerate.
780
b209b5a6
AM
7812021-01-13 Alan Modra <amodra@gmail.com>
782
783 PR 27160
784 * section.c (struct bfd_section): Remove pattern field.
785 (BFD_FAKE_SECTION): Adjust to suit.
786 * bfd-in2.h: Regenerate.
787 * elflink.c (compare_link_order, elf_fixup_link_order): Delete.
788 (bfd_elf_final_link): Don't call elf_fixup_link_order.
789
d546b610
L
7902021-01-12 H.J. Lu <hongjiu.lu@intel.com>
791
792 PR binutils/26792
793 * configure.ac: Use GNU_MAKE_JOBSERVER.
794 * aclocal.m4: Regenerated.
795 * configure: Likewise.
796
c2e9a4a3
L
7972021-01-12 H.J. Lu <hongjiu.lu@intel.com>
798
799 PR ld/27171
800 * reloc.c (bfd_perform_relocation): Adjust R_AMD64_DIR64 and
801 R_AMD64_DIR32 relocations for PE/x86-64 inputs.
802
83b33c6c
L
8032021-01-11 H.J. Lu <hongjiu.lu@intel.com>
804
805 PR ld/27173
806 * configure: Regenerated.
807
a8aa72b9
NC
8082021-01-11 Nick Clifton <nickc@redhat.com>
809
810 * po/fr.po: Updated French translation.
811 * po/pt.po: Updated Portuguese translation.
812 * po/sr.po: Updated Serbian translation.
813 * po/uk.po: Updated Ukranian translation.
814
a4966cd9
L
8152021-01-09 H.J. Lu <hongjiu.lu@intel.com>
816
817 * configure: Regenerated.
818
0a94990b
L
8192021-01-09 H.J. Lu <hongjiu.lu@intel.com>
820
821 PR ld/27166
822 * elfxx-x86.c (_bfd_x86_elf_merge_gnu_properties): Handle
823 -z lam-u48 and -z lam-u57.
824
573fe3fb
NC
8252021-01-09 Nick Clifton <nickc@redhat.com>
826
827 * version.m4: Change to 2.36.50.
828 * configure: Regenerate.
829 * po/bfd.pot: Regenerate.
830
055bc77a
NC
8312021-01-09 Nick Clifton <nickc@redhat.com>
832
833 * 2.36 release branch crated.
834
ba9e922f
L
8352021-01-08 H.J. Lu <hongjiu.lu@intel.com>
836
837 * elfxx-x86.c (_bfd_x86_elf_link_setup_gnu_properties): Also set
838 LAM_U57 when setting LAM_U48.
839
b1b29aa5
L
8402021-01-08 H.J. Lu <hongjiu.lu@intel.com>
841
842 PR ld/26256
843 PR ld/27160
844 * elflink.c (elf_fixup_link_order): Verify that fixing up
845 SHF_LINK_ORDER doesn't increase the output section size.
846
64307045
AM
8472021-01-09 Alan Modra <amodra@gmail.com>
848
849 * configure: Regenerate.
850
f4782128
ST
8512021-01-07 Samuel Thibault <samuel.thibault@gnu.org>
852
853 * configure: Regenerate.
854
d1bcae83
L
8552021-01-07 H.J. Lu <hongjiu.lu@intel.com>
856
857 PR 27109
858 * aix386-core.c (core_aix386_vec): Initialize
859 keep_unused_section_symbol to TARGET_KEEP_UNUSED_SECTION_SYMBOLS.
860 * aout-target.h (MY (vec)): Likewise.
861 * binary.c (binary_vec): Likewise.
862 * cisco-core.c (core_cisco_be_vec): Likewise.
863 (core_cisco_le_vec): Likewise.
864 * coff-alpha.c (alpha_ecoff_le_vec): Likewise.
865 * coff-i386.c (TARGET_SYM): Likewise.
866 (TARGET_SYM_BIG): Likewise.
867 * coff-ia64.c (TARGET_SYM): Likewise.
868 * coff-mips.c (mips_ecoff_le_vec): Likewise.
869 (mips_ecoff_be_vec): Likewise.
870 (mips_ecoff_bele_vec): Likewise.
871 * coff-rs6000.c (rs6000_xcoff_vec): Likewise.
872 (powerpc_xcoff_vec): Likewise.
873 * coff-sh.c (sh_coff_small_vec): Likewise.
874 (sh_coff_small_le_vec): Likewise.
875 * coff-tic30.c (tic30_coff_vec): Likewise.
876 * coff-tic54x.c (tic54x_coff0_vec): Likewise.
877 (tic54x_coff0_beh_vec): Likewise.
878 (tic54x_coff1_vec): Likewise.
879 (tic54x_coff1_beh_vec): Likewise.
880 (tic54x_coff2_vec): Likewise.
881 (tic54x_coff2_beh_vec): Likewise.
882 * coff-x86_64.c (TARGET_SYM): Likewise.
883 (TARGET_SYM_BIG): Likewise.
884 * coff64-rs6000.c (rs6000_xcoff64_vec): Likewise.
885 (rs6000_xcoff64_aix_vec): Likewise.
886 * coffcode.h (CREATE_BIG_COFF_TARGET_VEC): Likewise.
887 (CREATE_BIGHDR_COFF_TARGET_VEC): Likewise.
888 (CREATE_LITTLE_COFF_TARGET_VEC): Likewise.
889 * elfxx-target.h (TARGET_BIG_SYM): Likewise.
890 (TARGET_LITTLE_SYM): Likewise.
891 * hppabsd-core.c (core_hppabsd_vec): Likewise.
892 * hpux-core.c (core_hpux_vec): Likewise.
893 * i386msdos.c (i386_msdos_vec): Likewise.
894 * ihex.c (ihex_vec): Likewise.
895 * irix-core.c (core_irix_vec): Likewise.
896 * mach-o-target.c (TARGET_NAME): Likewise.
897 * mmo.c (mmix_mmo_vec): Likewise.
898 * netbsd-core.c (core_netbsd_vec): Likewise.
899 * osf-core.c (core_osf_vec): Likewise.
900 * pdp11.c (MY (vec)): Likewise.
901 * pef.c (pef_vec): Likewise.
902 (pef_xlib_vec): Likewise.
903 * plugin.c (plugin_vec): Likewise.
904 * ppcboot.c (powerpc_boot_vec): Likewise.
905 * ptrace-core.c (core_ptrace_vec): Likewise.
906 * sco5-core.c (core_sco5_vec): Likewise.
907 * som.c (hppa_som_vec): Likewise.
908 * srec.c (srec_vec): Likewise.
909 (symbolsrec_vec): Likewise.
910 * tekhex.c (tekhex_vec): Likewise.
911 * trad-core.c (core_trad_vec): Likewise.
912 * verilog.c (verilog_vec): Likewise.
913 * vms-alpha.c (alpha_vms_vec): Likewise.
914 * vms-lib.c (alpha_vms_lib_txt_vec): Likewise.
915 * wasm-module.c (wasm_vec): Likewise.
916 * xsym.c (sym_vec): Likewise.
917 * elf.c (ignore_section_sym): Return TRUE if BSF_SECTION_SYM_USED
918 isn't set.
919 (elf_map_symbols): Don't include ignored section symbols.
920 * elfcode.h (elf_slurp_symbol_table): Also set
921 BSF_SECTION_SYM_USED on STT_SECTION symbols.
922 * elflink.c (bfd_elf_final_link): Generated section symbols only
923 when emitting relocations or reqired.
924 * elfxx-x86.h (TARGET_KEEP_UNUSED_SECTION_SYMBOLS): New.
925 * syms.c (BSF_SECTION_SYM_USED): New.
926 * targets.c (TARGET_KEEP_UNUSED_SECTION_SYMBOLS): New.
927 (bfd_target): Add keep_unused_section_symbols.
928 (bfd_keep_unused_section_symbols): New.
929 * bfd-in2.h: Regenerated.
930
17d60030
NC
9312021-01-07 Nick Clifton <nickc@redhat.com>
932
933 PR 25713
934 * bfdio.c (_bfd_real_fopen): For Win32 convert relative paths to
935 absolute paths and check to see if they are longer than MAX_PATH.
936
aa881ecd
PT
9372021-01-07 Philipp Tomsich <prt@gnu.org>
938
939 * elfxx-riscv.c (riscv_std_z_ext_strtab): Added zihintpause.
940
2652cfad
CXW
9412021-01-07 Claire Xenia Wolf <claire@symbioticeda.com>
942 Jim Wilson <jimw@sifive.com>
943 Andrew Waterman <andrew@sifive.com>
944 Maxim Blinov <maxim.blinov@embecosm.com>
945 Kito Cheng <kito.cheng@sifive.com>
946 Nelson Chu <nelson.chu@sifive.com>
947
948 * elfxx-riscv.c (riscv_std_z_ext_strtab): Added zba, zbb and zbc.
949
d4e57b87
L
9502021-01-06 H.J. Lu <hongjiu.lu@intel.com>
951
952 * elf32-bfin.c (bfin_check_relocs): Check bfd_link_hash_indirect.
953 (bfinfdpic_check_relocs): Likewise.
954
599c86c4
AM
9552021-01-06 Alan Modra <amodra@gmail.com>
956
957 * elf32-score.c (s3_bfd_score_info_to_howto): Report an error
958 on unknown r_type.
959 * elf32-score7.c (s7_bfd_score_info_to_howto): Likewise.
960
3677b729
AM
9612021-01-06 Alan Modra <amodra@gmail.com>
962
963 * config.bfd (sparc-*-solaris2*): Add sparc_elf32_vec.
964 (sparc64-*-solaris2*): Add sparc_elf64_vec and
965 sparc_elf32_vec.
966
fbc09e7a
MC
9672021-01-06 Marcus Comstedt <marcus@mc.pp.se>
968
969 * config.bfd: Added targets riscv64be*-*-*, riscv32be*-*-* and
970 riscvbe*-*-*. Also added riscv_elf[32|64]_be_vec.
971 * configure.ac: Handle riscv_elf[32|64]_be_vec.
972 * configure: Regenerate.
973 * elfnn-riscv.c: Include <limits.h> and define CHAR_BIT for
974 riscv_is_insn_reloc.
975 (riscv_get_insn): RISC-V instructions are always little endian, but
976 bfd_get may be used for big-endian, so add new riscv_get_insn to handle
977 the insturctions.
978 (riscv_put_insn): Likewsie.
979 (riscv_is_insn_reloc): Check if we are relocaing an instruction.
980 (perform_relocation): Call riscv_is_insn_reloc to decide if we should
981 use riscv_[get|put]_insn or bfd_[get|put].
982 (riscv_zero_pcrel_hi_reloc): Use riscv_[get|put]_insn, bfd_[get|put]l32
983 or bfd_[get|put]l16 for code.
984 (riscv_elf_relocate_section): Likewise.
985 (riscv_elf_finish_dynamic_symbol): Likewise.
986 (riscv_elf_finish_dynamic_sections): Likewise.
987 (_bfd_riscv_relax_call): Likewise.
988 (_bfd_riscv_relax_lui): Likewise.
989 (_bfd_riscv_relax_align): Likewise.
990 (_bfd_riscv_relax_pc): Likewise.
991 (riscv_elf_object_p): Handled for big endian.
992 (TARGET_BIG_SYM, TARGET_BIG_NAME): Defined.
993 * targets.c: Add riscv_elf[32|64]_be_vec.
994 (_bfd_target_vector): Likewise.
995
c8bad65e
AM
9962021-01-05 Alan Modra <amodra@gmail.com>
997
998 * elflink.c (bfd_elf_link_record_dynamic_symbol): Handle no_export
999 for relocatable executable.
1000
de6a7ee4
AM
10012021-01-05 Alan Modra <amodra@gmail.com>
1002
1003 * vms-alpha.c (_bfd_vms_slurp_egsd): Read flags after size check.
1004
18b98722
NC
10052021-01-05 Nelson Chu <nelson.chu@sifive.com>
1006
1007 * elfnn-riscv.c (allocate_dynrelocs): When we are generating pde,
1008 make sure gp symbol is output as a dynamic symbol.
1009
cd6d537c
L
10102021-01-04 H.J. Lu <hongjiu.lu@intel.com>
1011
1012 PR ld/26256
1013 * elflink.c (compare_link_order): Place unordered sections before
1014 ordered sections.
1015 (elf_fixup_link_order): Add a link info argument. Allow mixed
1016 ordered and unordered input sections for non-relocatable link.
1017 Sort the consecutive bfd_indirect_link_order sections with the
1018 same pattern. Change the offsets of the bfd_indirect_link_order
1019 sections only.
1020 (bfd_elf_final_link): Pass info to elf_fixup_link_order.
1021 * section.c (bfd_section): Add pattern.
1022 (BFD_FAKE_SECTION): Initialize pattern to NULL.
1023 * bfd-in2.h: Regenerated.
1024
dbb078f6
AF
10252021-01-04 Alexander Fedotov <alfedotov@gmail.com>
1026
1027 * elf32-arm.c (elf32_arm_print_private_bfd_data): Prefix hex value
1028 of private flags with 0x.
1029 * elfnn-aarch64.c (elfNN_aarch64_print_private_bfd_data): Likewise.
1030
5b4293ba
AM
10312021-01-04 Alan Modra <amodra@gmail.com>
1032
1033 PR 26822
1034 * elflink.c (elf_link_input_bfd): Use the file base name in
1035 linker generated STT_FILE symbols.
1036
4c0e540e
NC
10372021-01-04 Nelson Chu <nelson.chu@sifive.com>
1038
1039 * elfxx-riscv.c (riscv_compare_subsets): Removed static.
1040 * elfxx-riscv.h: Add declaration.
1041 * elfnn-riscv.c (riscv_merge_multi_letter_ext): Use
1042 riscv_compare_subsets to check the orders.
1043 (riscv_skip_prefix): Removed.
1044 (riscv_prefix_cmp): Removed.
1045
e9cf3691
AM
10462021-01-04 Alan Modra <amodra@gmail.com>
1047
1048 PR 26741
1049 * elfxx-riscv.c (riscv_parse_prefixed_ext): Free subset after
1050 calculating subset version length.
1051
f9a6a8f0
AM
10522021-01-01 Nicolas Boulenguez <nicolas@debian.org>
1053
1054 * xcofflink.c: Correct spelling in comments.
1055
250d07de
AM
10562021-01-01 Alan Modra <amodra@gmail.com>
1057
1058 Update year range in copyright notice of all files.
1059
c2795844 1060For older changes see ChangeLog-2020
3499769a 1061\f
c2795844 1062Copyright (C) 2021 Free Software Foundation, Inc.
3499769a
AM
1063
1064Copying and distribution of this file, with or without modification,
1065are permitted in any medium without royalty provided the copyright
1066notice and this notice are preserved.
1067
1068Local Variables:
1069mode: change-log
1070left-margin: 8
1071fill-column: 74
1072version-control: never
1073End: