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