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