1 2021-03-29 Alan Modra <amodra@gmail.com>
3 * aoutx.h (aout_link_write_symbols): Don't cast boolean expression
5 * elf32-or1k.c (or1k_set_got_and_rela_sizes): Dont compare booleans
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.
19 2021-03-29 Alan Modra <amodra@gmail.com>
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>):
26 * vms-lib.c (_bfd_vms_lib_write_archive_contents): Correct test
27 for error return from vms_write_data_block.
29 2021-03-29 Alan Modra <amodra@gmail.com>
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.
48 2021-03-29 Alan Modra <amodra@gmail.com>
50 * elflink.c (elf_link_output_symstrtab): Make flinfo parameter
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
60 * elf32-nds32.c (nds32_elf_output_symbol_hook): Correct return type.
61 (nds32_elf_output_arch_syms): Correct func return type.
63 2021-03-29 Alan Modra <amodra@gmail.com>
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.
140 2021-03-26 Keith Seitz <keiths@redhat.com>
142 * elfcore.h (_bfd_elf_core_find_build_id): Seek file
143 offset of program headers after calling elf_read_notes.
145 2021-03-23 Jan Beulich <jbeulich@suse.com>
147 * dwarf2.c (read_indexed_string): Rename index to idx.
149 2021-03-22 Martin Liska <mliska@suse.cz>
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.
250 2021-03-22 Jan Beulich <jbeulich@suse.com>
252 * peXXigen.c (_bfd_XXi_swap_scnhdr_out): Add missing
253 language translation wrapping to _bfd_error_handler()
256 2021-03-21 Alan Modra <amodra@gmail.com>
258 * bfd-in.h (startswith): New inline.
259 (CONST_STRNEQ): Use startswith.
260 * bfd-in2.h: Regenerate.
262 2021-03-20 Alan Modra <amodra@gmail.com>
265 * elf.c (_bfd_elf_make_section_from_shdr): Remove SHF_EXCLUDE
266 test for .gnu.debuglto*.
268 2021-03-18 H.J. Lu <hongjiu.lu@intel.com>
271 * elf.c (_bfd_elf_make_section_from_shdr): Treat
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
279 2021-03-18 H.J. Lu <hongjiu.lu@intel.com>
282 * dwarf2.c (read_attribute_value): Check version >= 3 for
285 2021-03-16 Nick Clifton <nickc@redhat.com>
287 * peXXigen.c (_bfd_XXi_swap_aux_out): Avoid potential buffer
288 overrun by using sizeof of the destination x_fname field as the
291 2021-03-16 Kuan-Lin Chen <kuanlinchentw@gmail.com>
293 * elfxx-riscv.c (riscv_std_z_ext_strtab): Add zba, zbb and zbc.
295 2021-03-12 Clément Chigot <clement.chigot@atos.net>
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.
324 2021-03-12 Clément Chigot <clement.chigot@atos.net>
326 * reloc.c (BFD_RELOC_PPC_TOC16_HI, BFD_RELOC_PPC_TOC16_LO):
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):
340 (xcoff64_howto_table): Likewise.
341 (xcoff64_reloc_type_lookup): Likewise.
343 2021-03-12 Clément Chigot <clement.chigot@atos.net>
345 * coff-rs6000.c (xcoff_calculate_relocation): Correct and
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.
358 2021-03-12 Clément Chigot <clement.chigot@atos.net>
360 * coff64-rs6000.c (xcoff64_ppc_relocate_section): Move.
362 2021-03-12 Clément Chigot <clement.chigot@atos.net>
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
369 2021-03-12 Clément Chigot <clement.chigot@atos.net>
371 * coff64-rs6000.c (xcoff64_create_csect_from_smclas): Add
374 2021-03-11 Nelson Chu <nelson.chu@sifive.com>
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
387 * elfxx-riscv.h (bfd_elf32_riscv_restart_relax_sections): Declaration.
388 (bfd_elf64_riscv_restart_relax_sections): Likewise.
390 2021-03-10 Jan Beulich <jbeulich@suse.com>
392 * cofflink.c (_bfd_coff_write_global_sym): Range-check symbol
395 2021-03-10 Alan Modra <amodra@gmail.com>
396 Jan Beulich <jbeulich@suse.com>
398 * elf.c (bfd_elf_generic_reloc): Make references between debug
399 sections use section relative values.
401 2021-03-09 Jan Beulich <jbeulich@suse.com>
403 * peXXigen.c (_bfd_XXi_swap_scnhdr_out): Diagnose out of range RVA.
405 2021-03-05 H.J. Lu <hongjiu.lu@intel.com>
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.
420 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
421 Andrew Burgess <andrew.burgess@embecosm.com>
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'.
429 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
430 Andrew Burgess <andrew.burgess@embecosm.com>
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.
438 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
439 Andrew Burgess <andrew.burgess@embecosm.com>
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.
447 2021-03-05 Nick Clifton <nickc@redhat.com>
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*
455 2021-03-05 Alan Modra <amodra@gmail.com>
457 * reloc.c (bfd_perform_relocation): Revert 2021-01-12 and
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.
463 2021-03-04 Jan Beulich <jbeulich@suse.com>
465 * coffcode.h (sec_to_styp_flags): Don't set IMAGE_SCN_LNK_* in
468 2021-03-04 Alan Modra <amodra@gmail.com>
470 * rs6000-core.c (rs6000coff_core_p): Correct prototype.
472 2021-03-03 Alan Modra <amodra@gmail.com>
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.
479 2021-03-03 Alan Modra <amodra@gmail.com>
481 * reloc.c: Include x86_64.h rather than internal.h.
483 2021-03-02 Nick Clifton <nickc@redhat.com>
486 * dwarf2.c (scan_unit_for_symbols): Scan twice, once to accumulate
487 function and variable tags and a second time to resolve their
490 2021-03-02 Nick Alcock <nick.alcock@oracle.com>
492 * elf-strtab.c (_bfd_elf_strtab_str): Skip strings with zero refcount.
494 2021-03-02 Alan Modra <amodra@gmail.com>
497 * elf64-ppc.c (ppc64_elf_gc_mark_dynamic_ref): Ignore synthesized
498 linker defined start/stop symbols when start_stop_gc.
500 2021-03-02 Alan Modra <amodra@gmail.com>
502 * elf64-ppc.c (ppc64_elf_relocate_section): Don't optimise got
503 indirect to pc-relative or toc-relative for undefined symbols.
505 2021-03-01 Alan Modra <amodra@gmail.com>
506 Fangrui Song <maskray@google.com>
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.
514 2021-02-25 Alan Modra <amodra@gmail.com>
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.
522 2021-02-24 Alan Modra <amodra@gmail.com>
525 * coff-stgo32.c (go32exe_check_format): Sanity check size of
526 header to avoid a buffer overflow.
528 2021-02-22 Alan Modra <amodra@gmail.com>
530 * coff-rs6000.c (_bfd_xcoff_reloc_type_lookup): Remove BFD_RELOC_16.
531 * coff64-rs6000.c (xcoff64_reloc_type_lookup): Likewise.
533 2021-02-19 Nelson Chu <nelson.chu@sifive.com>
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.
541 2021-02-18 Nelson Chu <nelson.chu@sifive.com>
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.
567 2021-02-17 Alan Modra <amodra@gmail.com>
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.
574 2021-02-17 Nelson Chu <nelson.chu@sifive.com>
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.
583 2021-02-16 Alan Modra <amodra@gmail.com>
585 * libbfd.c (_bfd_read_unsigned_leb128): Avoid excessive shift.
586 (_bfd_safe_read_leb128, _bfd_read_signed_leb128): Likewise.
588 2021-02-15 Jan Beulich <jbeulich@suse.com>
590 * doc/Makefile.am: Replace "cp -p" by "$(LN_S)".
591 * doc/Makefile.in: Re-generate.
593 2021-02-15 Alan Modra <amodra@gmail.com>
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.
600 2021-02-15 Alan Modra <amodra@gmail.com>
602 * coff-alpha.c (alpha_ecoff_get_relocated_section_contents): Use
603 bfd_get_full_section_contents.
605 2021-02-14 Alan Modra <amodra@gmail.com>
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.
611 2021-02-11 Alan Modra <amodra@gmail.com>
613 * config.bfd: Remove ia64 from obsolete list.
615 2021-02-11 Alan Modra <amodra@gmail.com>
618 * elfnn-ia64.c: Revert 2017-10-14 git commit db41f6eb5234.
620 2021-02-11 Alan Modra <amodra@gmail.com>
623 * elf32-avr.c (avr_elf32_load_records_from_section): Use
624 bfd_malloc_and_get_section. Use bfd_byte* vars and remove then
627 2021-02-11 Alan Modra <amodra@gmail.com>
630 * section.c (bfd_get_section_contents): Avoid possible overflow
631 when range checking offset and count.
632 (bfd_set_section_contents): Likewise.
634 2021-02-03 Nick Alcock <nick.alcock@oracle.com>
636 * configure.ac (SHARED_LIBADD): Remove explicit -lintl population in
638 * configure: Regenerated.
640 2021-02-09 Alan Modra <amodra@gmail.com>
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.
649 2021-02-04 H.J. Lu <hongjiu.lu@intel.com>
652 * elf64-x86-64.c (elf_x86_64_relocate_section): Provide more
653 info when failed to convert GOTPCREL relocation.
655 2021-02-04 Nelson Chu <nelson.chu@sifive.com>
657 * elfxx-riscv.c (riscv_parse_prefixed_ext): Removed zb*.
659 2021-02-04 Alan Modra <amodra@gmail.com>
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
666 2021-02-03 Alan Modra <amodra@gmail.com>
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.
674 2021-02-03 Alan Modra <amodra@gmail.com>
677 * elflink.c (_bfd_elf_add_default_symbol): Clear override when
678 undecorated symbol will have a different version.
680 2021-02-02 Alan Modra <amodra@gmail.com>
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
687 (elf_link_add_object_symbols): Adjust call to suit. Don't
688 pull in as-needed libraries when override is set.
690 2021-02-01 Emery Hemingway <ehmry@posteo.net>
692 * config.bfd: Add *-*-genode* as a target for AArch64 and x86.
694 2021-02-01 Egor Vishnyakov <lenvampir@yandex.ru>
697 * elf32-rl78.c (rl78_elf_relocate_section): Fix calculation of
698 offset for the R_RL78_RH_SADDR relocation.
700 2021-01-29 Alan Modra <amodra@gmail.com>
703 * elflink.c (bfd_elf_link_record_dynamic_symbol): Don't segfault
704 on symbols defined in absolute or other special sections.
706 2021-01-28 Alan Modra <amodra@gmail.com>
709 * elflink.c (_bfd_elf_gc_mark_extra_sections): Use linker_mark to
710 prevent endless looping of linked-to sections.
712 2020-12-17 Mihails Strasuns <mihails.strasuns@intel.com>
714 * bfd-elf.h (elfcore_write_file_note): New function.
715 * elf.c (elfcore_write_file_note): New function.
717 2021-01-26 Alan Modra <amodra@gmail.com>
719 * elf32-ft32.c (ft32_reloc_type_lookup): Don't miss ft32_reloc_map[0].
721 2021-01-24 H.J. Lu <hongjiu.lu@intel.com>
724 * dwarf2.c (read_rnglists): Ignore empty range when parsing line
727 2021-01-23 H.J. Lu <hongjiu.lu@intel.com>
730 * dwarf2.c (read_rnglists): Advance rngs_ptr after
731 _bfd_safe_read_leb128 when parsing DW_RLE_offset_pair.
733 2021-01-20 Alan Modra <amodra@gmail.com>
735 * elf32-ppc.c: Delete outdated comment.
736 (TARGET_KEEP_UNUSED_SECTION_SYMBOLS): Define.
737 * elf64-ppc.c (TARGET_KEEP_UNUSED_SECTION_SYMBOLS): Define.
739 2021-01-20 Alan Modra <amodra@gmail.com>
741 * elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Don't assume
742 section symbols are present.
744 2021-01-19 Alan Modra <amodra@gmail.com>
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):
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.
757 2021-01-17 H.J. Lu <hongjiu.lu@intel.com>
760 * elflink.c (elf_create_symbuf): Also ignore section symbols.
762 2021-01-16 H.J. Lu <hongjiu.lu@intel.com>
765 * elfxx-x86.c (_bfd_x86_elf_link_fixup_ifunc_symbol): Don't
766 check pointer_equality_needed.
768 2021-01-15 H.J. Lu <hongjiu.lu@intel.com>
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
780 * elfxx-x86.h (_bfd_x86_elf_link_report_relative_reloc): New
783 2021-01-16 Alan Modra <amodra@gmail.com>
785 * compress.c (decompress_contents): Tidy inflateEnd result test.
787 2021-01-16 Alan Modra <amodra@gmail.com>
790 * elflink.c (elf_link_output_extsym): Use version 1 in
791 .gnu.version for undefined unversioned symbols.
793 2021-01-15 Nelson Chu <nelson.chu@sifive.com>
795 * elfnn-riscv.c (riscv_relax_delete_bytes): Fixed the indent that
796 caused the by previous commit accidentally.
798 2021-01-15 Nelson Chu <nelson.chu@sifive.com>
800 * elfnn-riscv.c: Indent, labels and GNU coding standards tidy,
801 also aligned the code.
803 2021-01-15 Nelson Chu <nelson.chu@sifive.com>
805 * elfnn-riscv.c (riscv_merge_attributes): Fix typos of messages.
807 2021-01-15 Nelson Chu <nelson.chu@sifive.com>
809 * elfnn-riscv.c: Comments tidy and improvement.
810 * elfxx-riscv.c: Likewise.
811 * elfxx-riscv.h: Likewise.
813 2021-01-14 H.J. Lu <hongjiu.lu@intel.com>
816 * elf32-bfin.c (bfinfdpic_relocate_section): Skip non SEC_ALLOC
817 section for R_BFIN_FUNCDESC.
819 2021-01-14 Nick Clifton <nickc@redhat.com>
821 * elf.c (elfcore_grok_win32pstatus): Check for a note type of 0.
823 2021-01-13 Alan Modra <amodra@gmail.com>
825 * Makefile.in: Regenerate.
826 * doc/Makefile.in: Regenerate.
828 2021-01-13 Alan Modra <amodra@gmail.com>
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.
837 2021-01-12 H.J. Lu <hongjiu.lu@intel.com>
840 * configure.ac: Use GNU_MAKE_JOBSERVER.
841 * aclocal.m4: Regenerated.
842 * configure: Likewise.
844 2021-01-12 H.J. Lu <hongjiu.lu@intel.com>
847 * reloc.c (bfd_perform_relocation): Adjust R_AMD64_DIR64 and
848 R_AMD64_DIR32 relocations for PE/x86-64 inputs.
850 2021-01-11 H.J. Lu <hongjiu.lu@intel.com>
853 * configure: Regenerated.
855 2021-01-11 Nick Clifton <nickc@redhat.com>
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.
862 2021-01-09 H.J. Lu <hongjiu.lu@intel.com>
864 * configure: Regenerated.
866 2021-01-09 H.J. Lu <hongjiu.lu@intel.com>
869 * elfxx-x86.c (_bfd_x86_elf_merge_gnu_properties): Handle
870 -z lam-u48 and -z lam-u57.
872 2021-01-09 Nick Clifton <nickc@redhat.com>
874 * version.m4: Change to 2.36.50.
875 * configure: Regenerate.
876 * po/bfd.pot: Regenerate.
878 2021-01-09 Nick Clifton <nickc@redhat.com>
880 * 2.36 release branch crated.
882 2021-01-08 H.J. Lu <hongjiu.lu@intel.com>
884 * elfxx-x86.c (_bfd_x86_elf_link_setup_gnu_properties): Also set
885 LAM_U57 when setting LAM_U48.
887 2021-01-08 H.J. Lu <hongjiu.lu@intel.com>
891 * elflink.c (elf_fixup_link_order): Verify that fixing up
892 SHF_LINK_ORDER doesn't increase the output section size.
894 2021-01-09 Alan Modra <amodra@gmail.com>
896 * configure: Regenerate.
898 2021-01-07 Samuel Thibault <samuel.thibault@gnu.org>
900 * configure: Regenerate.
902 2021-01-07 H.J. Lu <hongjiu.lu@intel.com>
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
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.
978 2021-01-07 Nick Clifton <nickc@redhat.com>
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.
984 2021-01-07 Philipp Tomsich <prt@gnu.org>
986 * elfxx-riscv.c (riscv_std_z_ext_strtab): Added zihintpause.
988 2021-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>
995 * elfxx-riscv.c (riscv_std_z_ext_strtab): Added zba, zbb and zbc.
997 2021-01-06 H.J. Lu <hongjiu.lu@intel.com>
999 * elf32-bfin.c (bfin_check_relocs): Check bfd_link_hash_indirect.
1000 (bfinfdpic_check_relocs): Likewise.
1002 2021-01-06 Alan Modra <amodra@gmail.com>
1004 * elf32-score.c (s3_bfd_score_info_to_howto): Report an error
1006 * elf32-score7.c (s7_bfd_score_info_to_howto): Likewise.
1008 2021-01-06 Alan Modra <amodra@gmail.com>
1010 * config.bfd (sparc-*-solaris2*): Add sparc_elf32_vec.
1011 (sparc64-*-solaris2*): Add sparc_elf64_vec and
1014 2021-01-06 Marcus Comstedt <marcus@mc.pp.se>
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
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.
1043 2021-01-05 Alan Modra <amodra@gmail.com>
1045 * elflink.c (bfd_elf_link_record_dynamic_symbol): Handle no_export
1046 for relocatable executable.
1048 2021-01-05 Alan Modra <amodra@gmail.com>
1050 * vms-alpha.c (_bfd_vms_slurp_egsd): Read flags after size check.
1052 2021-01-05 Nelson Chu <nelson.chu@sifive.com>
1054 * elfnn-riscv.c (allocate_dynrelocs): When we are generating pde,
1055 make sure gp symbol is output as a dynamic symbol.
1057 2021-01-04 H.J. Lu <hongjiu.lu@intel.com>
1060 * elflink.c (compare_link_order): Place unordered sections before
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
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.
1072 2021-01-04 Alexander Fedotov <alfedotov@gmail.com>
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.
1078 2021-01-04 Alan Modra <amodra@gmail.com>
1081 * elflink.c (elf_link_input_bfd): Use the file base name in
1082 linker generated STT_FILE symbols.
1084 2021-01-04 Nelson Chu <nelson.chu@sifive.com>
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.
1093 2021-01-04 Alan Modra <amodra@gmail.com>
1096 * elfxx-riscv.c (riscv_parse_prefixed_ext): Free subset after
1097 calculating subset version length.
1099 2021-01-01 Nicolas Boulenguez <nicolas@debian.org>
1101 * xcofflink.c: Correct spelling in comments.
1103 2021-01-01 Alan Modra <amodra@gmail.com>
1105 Update year range in copyright notice of all files.
1107 For older changes see ChangeLog-2020
1109 Copyright (C) 2021 Free Software Foundation, Inc.
1111 Copying and distribution of this file, with or without modification,
1112 are permitted in any medium without royalty provided the copyright
1113 notice and this notice are preserved.
1119 version-control: never