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