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