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