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