]>
Commit | Line | Data |
---|---|---|
41ba8b76 NC |
1 | 2022-02-02 Nick Clifton <[email protected]> |
2 | ||
3 | PR 28834 | |
4 | * dwarf2.c (read_section): Change the heuristic that checks for | |
5 | overlarge dwarf debug info sections. | |
6 | ||
c7c6e55b SH |
7 | 2022-02-02 Stafford Horne <[email protected]> |
8 | ||
9 | PR 28735 | |
10 | * elf32-or1k.c (or1k_elf_got16_no_overflow_howto): Define. | |
11 | (or1k_elf_relocate_section): Use new howto instead of trying to | |
12 | mask out relocation bits. | |
13 | ||
fdf55097 RM |
14 | 2022-01-24 Roland McGrath <[email protected]> |
15 | ||
16 | * doc/local.mk (%D%/bfdver.texi): Add mkdir command. | |
17 | ||
5fe73d46 NC |
18 | 2022-01-24 Nick Clifton <[email protected]> |
19 | ||
20 | * po/fr.po: Updated French translation. | |
21 | * po/ro.po: Updated Romanian translation. | |
22 | * po/uk.po: Updated Ukranian translation. | |
23 | ||
f908e960 NC |
24 | 2022-01-22 Nick Clifton <[email protected]> |
25 | ||
26 | * version.m4: Change to 2.38.50. | |
27 | * configure: Regenerate. | |
28 | * po/bfd.pot: Regenerate. | |
29 | ||
a74e1cb3 NC |
30 | 2022-01-22 Nick Clifton <[email protected]> |
31 | ||
32 | * 2.38 release branch created. | |
33 | ||
6c037fdb NC |
34 | 2022-01-17 Nick Clifton <[email protected]> |
35 | ||
36 | * Makefile.in: Regenerate. | |
37 | * configure: Regenerate. | |
38 | * doc/Makefile.in: Regenerate. | |
39 | * po/bfd.pot: Regenerate. | |
40 | ||
4d3605c8 NP |
41 | 2021-12-15 Nikita Popov <[email protected]> |
42 | ||
43 | PR 28687 | |
44 | * dwarf1.c (parse_die): Fix undefined behaviour in range tests. | |
45 | ||
ee9e412f NC |
46 | 2021-11-17 Nick Clifton <[email protected]> |
47 | ||
48 | PR 28452 | |
49 | * elf.c (assign_file_positions_for_non_load_sections): Replace | |
50 | assertion with a warning message. | |
51 | ||
cf487499 NC |
52 | 2021-10-19 Nick Clifton <[email protected]> |
53 | ||
54 | * linker.c (_bfd_generic_link_add_one_symbol): Test for a NULL | |
55 | name before checking to see if the symbol is __gnu_lto_slim. | |
56 | * archive.c (_bfd_compute_and_write_armap): Likewise. | |
57 | ||
b9004024 NA |
58 | 2021-09-27 Nick Alcock <[email protected]> |
59 | ||
60 | * configure: Regenerate. | |
61 | ||
b4745472 AB |
62 | 2021-09-15 Andrew Burgess <[email protected]> |
63 | ||
64 | * archures.c (bfd_arch_list): Use 'char *' instead of 'char **' | |
65 | when calculating space for a string list. | |
66 | ||
09a7e912 CZ |
67 | 2021-09-014 Cupertino Miranda <[email protected]> |
68 | Claudiu Zissulescu <[email protected]> | |
69 | ||
70 | * arc-got.h (arc_static_sym_data): New structure. | |
71 | (get_static_sym_data): New function. | |
72 | (relocate_fix_got_relocs_for_got_info): Move the computation fo | |
73 | symbol value and section to above introduced function, and use | |
74 | this new function. | |
75 | ||
64dbf74d LM |
76 | 2021-09-07 Luis Machado <[email protected]> |
77 | ||
78 | Revert: [AArch64] MTE corefile support | |
79 | ||
80 | 2021-05-21 Luis Machado <[email protected]> | |
81 | ||
82 | * elf.c (elfcore_make_memtag_note_section): New function. | |
83 | (elfcore_grok_note): Handle NT_MEMTAG note types. | |
84 | ||
3f1a2892 NC |
85 | 2021-09-07 Nick Clifton <[email protected]> |
86 | ||
9dc2f267 NC |
87 | PR 28305 |
88 | * elf32-xtensa.c (elf_xtensa_do_reloc): Add check for put of range | |
89 | reloc. | |
90 | ||
3f1a2892 NC |
91 | PR 28303 |
92 | * elfxx-riscv.c (riscv_elf_add_sub_reloc): Add check for out of | |
93 | range relocs. | |
94 | ||
3ee0cd9e NC |
95 | 2021-08-10 Nick Clifton <[email protected]> |
96 | ||
97 | * po/sr.po: Updated Serbian translation. | |
98 | ||
5c9cbf07 NC |
99 | 2021-07-18 Nick Clifton <[email protected]> |
100 | ||
101 | * config.bfd: Move pending obsoletion targets to obsolete list. | |
102 | ||
05a1dd47 GB |
103 | 2021-07-16 Giulio Benetti <[email protected]> |
104 | ||
105 | * elf32-or1k.c (or1k_elf_relocate_section): Use a separate entry | |
106 | in switch case R_OR1K_INSN_REL_26 where we need to check for | |
107 | !SYMBOL_CALLS_LOCAL() instead of !SYMBOL_REFERENCES_LOCAL(). | |
108 | ||
51d29b8c CC |
109 | 2021-07-14 Clément Chigot <[email protected]> |
110 | ||
111 | * libxcoff.h (struct xcoff_dwsect_name): Add DWARF name. | |
112 | * coff-rs6000.c (xcoff_dwsect_names): Update. | |
113 | * coffcode.h (sec_to_styp_flags): Likewise. | |
114 | (coff_new_section_hook): Likewise. | |
115 | ||
f8dd3646 AM |
116 | 2021-07-10 Alan Modra <[email protected]> |
117 | ||
118 | * dwarf2.c (read_address): Remove accidental commit. | |
119 | (read_ranges): Compare offset rather than pointers. | |
120 | ||
f1cee837 NC |
121 | 2021-07-08 Nick Clifton <[email protected]> |
122 | ||
123 | * po/pt.po: Updated Portuguese translation. | |
124 | ||
ca52626b NC |
125 | 2021-07-07 Nick Clifton <[email protected]> |
126 | ||
127 | * elfcode.h (elf_swap_symbol_out): Revert accidental change that | |
128 | removed an abort if the shndx pointer is NULL. | |
129 | ||
f07afc65 RO |
130 | 2021-07-07 Rainer Orth <[email protected]> |
131 | ||
132 | * sysdep.h [!ENABLE_NLS]: Prevent inclusion of <libintl.h> on | |
133 | Solaris. | |
134 | ||
b737d304 RO |
135 | 2021-07-07 Rainer Orth <[email protected]> |
136 | ||
137 | * configure.ac: Check for strnlen declaration. | |
138 | * configure, config.in: Regenerate. | |
139 | ||
ffa5352c NC |
140 | 2021-07-07 Nick Clifton <[email protected]> |
141 | ||
142 | PR 28051 | |
143 | * coff-rs6000.c (xcoff_reloc_type_tls): Reformat error messages in | |
144 | order to fix problems when translating. | |
145 | * cofflink.c (_bfd_coff_write_global_sym): Likewise. | |
146 | * elfnn-aarch64.c (_bfd_aarch64_erratum_843419_branch_to_stub): | |
147 | Likewise. | |
148 | * po/bfd.pot: Regenerate. | |
149 | ||
235f5ef4 MM |
150 | 2021-07-06 Michael Matz <[email protected]> |
151 | ||
152 | PR ld/28021 | |
153 | * elfnn-riscv.c (riscv_relax_delete_bytes): Check for any | |
154 | versioning. | |
155 | ||
07b2745f AM |
156 | 2021-07-06 Alan Modra <[email protected]> |
157 | ||
158 | PR 28055 | |
159 | * elf64-bpf.c (bpf_elf_generic_reloc): Add missing ATTRIBUTE_UNUSED. | |
160 | ||
b4c4b8aa AM |
161 | 2021-07-05 Alan Modra <[email protected]> |
162 | ||
163 | PR 28055 | |
164 | * elf64-bpf.c (bpf_elf_generic_reloc): Use correct bfd for bfd_put | |
165 | and bfd_put_32 calls. Correct section limit checks. | |
166 | ||
346d80ef NC |
167 | 2021-07-03 Nick Clifton <[email protected]> |
168 | ||
169 | * version.m4: Update version number. | |
170 | * configure: Regenerate. | |
171 | * po/opcodes.pot: Regenerate. | |
172 | ||
51419248 NC |
173 | 2021-07-03 Nick Clifton <[email protected]> |
174 | ||
175 | * 2.37 release branch created. | |
176 | ||
49910fd8 NC |
177 | 2021-07-02 Nick Clifton <[email protected]> |
178 | ||
179 | PR 28046 | |
180 | * dwarf2.c (read_ranges): Check that range_ptr does not exceed | |
181 | range_end. | |
182 | ||
9a39f738 YS |
183 | 2021-06-30 YunQiang Su <[email protected]> |
184 | ||
185 | PR mips/28009 | |
186 | * bfd/elfxx-mips.c (_bfd_mips_elf_section_from_shdr, | |
187 | _bfd_mips_elf_fake_sections): Mark LTO debug info as | |
188 | SHT_MIPS_DWARF. | |
189 | ||
c2ce8313 NC |
190 | 2021-06-29 Nick Clifton <[email protected]> |
191 | ||
192 | * config.bfd (obsolete configurations): Add netbsdpe. | |
193 | ||
50331d64 NC |
194 | 2021-06-22 Nelson Chu <[email protected]> |
195 | ||
196 | * elfnn-riscv.c (riscv_pcrel_hi_reloc): Added field to store | |
197 | the original relocation type, in case the type is converted to | |
198 | R_RISCV_HI20. | |
199 | (riscv_pcrel_lo_reloc): Removed unused name field. | |
200 | (riscv_pcrel_relocs): Added comments. | |
201 | (riscv_zero_pcrel_hi_reloc): Removed unused input_bfd. | |
202 | (riscv_record_pcrel_hi_reloc): Updated. | |
203 | (riscv_record_pcrel_lo_reloc): Likewise. | |
204 | (riscv_resolve_pcrel_lo_relocs): Likewise. Check the original | |
205 | type of auipc, to make sure the %pcrel_lo without any addends. | |
206 | Otherwise, report dangerous relocation error. | |
207 | (riscv_elf_relocate_section): Updated above functions are changed. | |
208 | For R_RISCV_GOT_HI20, report dangerous relocation error when addend | |
209 | isn't zero. | |
210 | ||
406b4ada L |
211 | 2021-06-19 H.J. Lu <[email protected]> |
212 | ||
213 | PR ld/27998 | |
214 | * elfxx-x86.c (elf_x86_allocate_dynrelocs): Count PLT for GOTOFF | |
215 | relocation against IFUNC symbols. | |
216 | (_bfd_x86_elf_adjust_dynamic_symbol): Likewise. | |
217 | ||
83b1d8f4 L |
218 | 2021-06-19 H.J. Lu <[email protected]> |
219 | ||
220 | * elflink.c (bfd_elf_final_link): Correct DT_TEXTREL warning in | |
221 | PDE. | |
222 | ||
5a767724 L |
223 | 2021-06-18 H.J. Lu <[email protected]> |
224 | ||
225 | * elf-properties.c (_bfd_elf_parse_gnu_properties): Handle | |
226 | GNU_PROPERTY_UINT32_AND_LO, GNU_PROPERTY_UINT32_AND_HI, | |
227 | GNU_PROPERTY_UINT32_OR_LO and GNU_PROPERTY_UINT32_OR_HI. | |
228 | (elf_merge_gnu_properties): Likewise. | |
229 | ||
f64b9b13 AM |
230 | 2021-06-11 Alan Modra <[email protected]> |
231 | ||
232 | PR 27952 | |
233 | * elf-bfd.h (struct elf_obj_tdata): Add is_pie. | |
234 | * elflink.c (elf_link_add_object_symbols): Set is_pie. | |
235 | ||
f75bcf7e NC |
236 | 2021-06-09 Nick Clifton <[email protected]> |
237 | ||
238 | PR 27666 | |
239 | * config.bfd: Do not add the sparc_elf32_vec or sparc_elf64_vec | |
240 | vectors to Sparc Solaris2 targets. | |
241 | ||
5804373d MM |
242 | 2021-06-08 Michael Matz <[email protected]> |
243 | ||
244 | * elf.c (bfd_section_from_shdr): Set has_secondary_relocs flag. | |
245 | (_bfd_elf_slurp_secondary_reloc_section): Use it for early-out. | |
246 | ||
6bee34a1 JB |
247 | 2021-06-07 Jan Beulich <[email protected]> |
248 | ||
249 | * dwarf2.c (read_ranges, read_rnglists): Add u suffix to constant. | |
250 | ||
45342c7c AM |
251 | 2021-06-02 Alan Modra <[email protected]> |
252 | ||
253 | * elf-attrs.c (_bfd_elf_parse_attributes): Break out of loop if | |
254 | subsection length is too small to cover tag and length field. | |
255 | ||
ef9d2565 NC |
256 | 2021-05-31 Nelson Chu <[email protected]> |
257 | Lifang Xia <[email protected]> | |
258 | ||
259 | PR 27566 | |
260 | * elfnn-riscv.c (struct riscv_elf_link_hash_table): New integer pointer | |
261 | to monitor the data segment phase. | |
262 | (bfd_elfNN_riscv_set_data_segment_info): New function called by | |
263 | after_allocation, to set the data_segment_phase from expld.dataseg. | |
264 | (_bfd_riscv_relax_section): Don't relax when data_segment_phase is | |
265 | exp_seg_relro_adjust (0x4). | |
266 | * elfxx-riscv.h (bfd_elf32_riscv_set_data_segment_info): New extern. | |
267 | (bfd_elf64_riscv_set_data_segment_info): Likewise | |
268 | ||
1273b2f8 L |
269 | 2021-05-28 H.J. Lu <[email protected]> |
270 | ||
271 | PR ld/27905 | |
272 | * elf32-i386.c: Don't include "libiberty.h". | |
273 | (elf_howto_table): Revert commits a7664973b24 and 50c95a739c9. | |
274 | (elf_i386_rtype_to_howto): Revert commit 50c95a739c9. | |
275 | (elf_i386_info_to_howto_rel): Likewise. | |
276 | (elf_i386_tls_transition): Likewise. | |
277 | (elf_i386_relocate_section): Likewise. | |
278 | * elf64-x86-64.c (x86_64_elf_howto_table): Revert commits | |
279 | a7664973b24 and 50c95a739c9. | |
280 | (elf_x86_64_rtype_to_howto): Revert commit 50c95a739c9. | |
281 | * elfxx-x86.c (_bfd_x86_elf_parse_gnu_properties): Likewise. | |
282 | * elfxx-x86.h (elf_x86_obj_tdata): Likewise. | |
283 | (elf_x86_has_code16): Likewise. | |
284 | ||
50c95a73 L |
285 | 2021-05-26 H.J. Lu <[email protected]> |
286 | ||
287 | PR ld/27905 | |
288 | * elf32-i386.c: Include "libiberty.h". | |
289 | (elf_howto_table): Add 16-bit R_386_PC16 entry. | |
290 | (elf_i386_rtype_to_howto): Add a BFD argument. Use 16-bit | |
291 | R_386_PC16 if input has 16-bit mode instructions. | |
292 | (elf_i386_info_to_howto_rel): Update elf_i386_rtype_to_howto | |
293 | call. | |
294 | (elf_i386_tls_transition): Likewise. | |
295 | (elf_i386_relocate_section): Likewise. | |
296 | * elf64-x86-64.c (x86_64_elf_howto_table): Add 16-bit | |
297 | R_X86_64_PC16 entry. | |
298 | (elf_x86_64_rtype_to_howto): Use 16-bit R_X86_64_PC16 if input | |
299 | has 16-bit mode instructions. | |
300 | * elfxx-x86.c (_bfd_x86_elf_parse_gnu_properties): Set | |
301 | elf_x86_has_code16 if relocatable input is marked with | |
302 | GNU_PROPERTY_X86_FEATURE_2_CODE16. | |
303 | * elfxx-x86.h (elf_x86_obj_tdata): Add has_code16. | |
304 | (elf_x86_has_code16): New. | |
305 | ||
fe1f847d NC |
306 | 2021-05-26 Nelson Chu <[email protected]> |
307 | ||
308 | * elfxx-riscv.h (check_unknown_prefixed_ext): New bool. | |
309 | * elfxx-riscv.c (riscv_parse_prefixed_ext): Do not check the | |
310 | prefixed extension name if check_unknown_prefixed_ext is false. | |
311 | * elfnn-riscv.c (riscv_merge_arch_attr_info): Set | |
312 | check_unknown_prefixed_ext to false for linker. | |
313 | ||
74fd118f NC |
314 | 2021-05-25 Nick Clifton <[email protected]> |
315 | ||
316 | * elf32-arn.c (struct elf_arm_obj_tdata): Add num_entries field. | |
317 | (elf32_arm_num_entries): New macro. | |
318 | (elf32_arm_allocate_local_sym_info): Initialise the new field. | |
319 | Allocate arrays individually so that buffer overruns can be | |
320 | detected by memory checkers. | |
321 | (elf32_arm_create_local_iplt): Check num_entries. | |
322 | (elf32_arm_get_plt_info): Likewise. | |
323 | (elf32_arm_final_link_relocate): Likewise. | |
324 | (elf32_arm_check_relocs): Likewise. | |
325 | (elf32_arm_size_dynamic_sections): Likewise. | |
326 | (elf32_arm_output_arch_local_syms): Likewise. | |
327 | ||
cc850f74 NC |
328 | 2021-05-25 Nick Clifton <[email protected]> |
329 | ||
330 | * elf32-arm.c: Fix formatting. | |
331 | ||
4be1e8db AM |
332 | 2021-05-25 Alan Modra <[email protected]> |
333 | ||
334 | * elf-attrs.c (elf_attr_strdup): New function. | |
335 | (_bfd_elf_attr_strdup): Use it here. | |
336 | (elf_add_obj_attr_string): New function, extracted from.. | |
337 | (bfd_elf_add_obj_attr_string): ..here. | |
338 | (elf_add_obj_attr_int_string): New function, extracted from.. | |
339 | (bfd_elf_add_obj_attr_int_string): ..here. | |
340 | (_bfd_elf_parse_attributes): Don't allocate an extra byte for a | |
341 | string terminator. Instead ensure parsing doesn't go past | |
342 | end of sub-section. Use size_t variables for lengths. | |
343 | ||
574ec108 AM |
344 | 2021-05-22 Alan Modra <[email protected]> |
345 | ||
346 | * libbfd.c (_bfd_safe_read_leb128): Remove length_return parameter. | |
347 | Replace data pointer with pointer to pointer. Increment pointer | |
348 | over bytes read. | |
349 | * libbfd-in.h (_bfd_safe_read_leb128): Update prototype. | |
350 | * elf-attrs.c (_bfd_elf_parse_attributes): Adjust to suit. Be | |
351 | careful not to increment data pointer past end. Remove now | |
352 | redundant pr17512 check. | |
353 | * wasm-module.c (READ_LEB128): Adjust to suit changes to | |
354 | _bfd_safe_read_leb128. | |
355 | * dwarf2.c (read_n_bytes): New inline function, old one renamed to.. | |
356 | (read_blk): ..this. Allocate and return block. Increment bfd_byte** | |
357 | arg. | |
358 | (read_3_bytes): New function. | |
359 | (read_1_byte, read_1_signed_byte, read_2_bytes, read_4_bytes), | |
360 | (read_8_bytes, read_string, read_indirect_string), | |
361 | (read_indirect_line_string, read_alt_indirect_string): Take a | |
362 | byte_byte** arg which is incremented over bytes read. Remove any | |
363 | bytes_read return. Rewrite limit checks to compare lengths | |
364 | rather than pointers. | |
365 | (read_abbrevs, read_attribute_value, read_formatted_entries), | |
366 | (decode_line_info, find_abstract_instance, read_ranges), | |
367 | (read_rnglists, scan_unit_for_symbols, parse_comp_unit), | |
368 | (stash_comp_unit): Adjust to suit. Rewrite limit checks to | |
369 | compare lengths rather than pointers. | |
370 | * libbfd.h: Regenerate. | |
371 | ||
894982bf LM |
372 | 2021-05-21 Luis Machado <[email protected]> |
373 | ||
374 | * elf.c (elfcore_make_memtag_note_section): New function. | |
375 | (elfcore_grok_note): Handle NT_MEMTAG note types. | |
376 | ||
427e4066 AB |
377 | 2021-05-20 Andrew Burgess <[email protected]> |
378 | ||
379 | * section.c (bfd_get_section_by_name): Return NULL if name is | |
380 | NULL. | |
381 | (bfd_get_section_by_name_if): Likewise. | |
382 | * dwarf2.c (read_section): Remove unneeded NULL check. | |
383 | (find_debug_info): Likewise. | |
384 | ||
83b0a686 NC |
385 | 2021-05-19 Nick Clifton <[email protected]> |
386 | ||
387 | * plugin.c (bfd_plugin_open_input): Inform the user if the limit | |
388 | on the number of open files is reached. If possible, try to | |
389 | increase this limit before failing. | |
390 | ||
75f03fa7 NC |
391 | 2021-05-14 Nelson Chu <[email protected]> |
392 | ||
393 | * elfnn-riscv.c (riscv_resolve_pcrel_lo_relocs): Check the values | |
394 | of %pcrel_hi, before and after adding the addend. Make sure the | |
395 | value won't be changed, otherwise, report dangerous error. | |
396 | ||
7671eff8 NC |
397 | 2021-05-13 Nelson Chu <[email protected]> |
398 | ||
399 | * elfxx-riscv.c (check_implicit_always): The check_func, always add | |
400 | the implicit subset without checking. | |
401 | (check_implicit_for_i): The check_func for i, only add zicsr and | |
402 | zifencei when the version of i less than 2.1. | |
403 | (struct riscv_implicit_subset): Record the subsets and their | |
404 | corresponding implicit subsets. | |
405 | (riscv_implicit_subsets): Table records all implicit informations. | |
406 | (riscv_parse_add_implicit_subsets): Updated and add implicit subsets | |
407 | according to riscv_implicit_subsets. Remove the redundant codes. | |
408 | ||
4863cddb AM |
409 | 2021-05-13 Alan Modra <[email protected]> |
410 | ||
411 | PR 27858 | |
412 | * elf32-sh.c (sh_elf_info_to_howto): Correct check for last valid | |
413 | reloc howto. | |
414 | ||
f0bbe8ba LM |
415 | 2021-05-12 Luis Machado <[email protected]> |
416 | ||
417 | * elf-bfd.h (elfcore_write_aarch_mte): New prototype. | |
418 | * elf.c (elfcore_grok_aarch_mte, elfcore_write_aarch_mte): New | |
419 | functions. | |
420 | (elfcore_grok_note): Handle notes of type NT_ARM_TAGGED_ADDR_CTRL. | |
421 | (elfcore_write_register_note): Handle MTE notes. | |
422 | ||
8ca5537b AM |
423 | 2021-05-11 Alan Modra <[email protected]> |
424 | ||
425 | PR 27844 | |
426 | * pdp11.c (aout_get_external_symbols): Clear first four bytes of | |
427 | strings array, not just the first byte. | |
428 | * aoutx.h (aout_get_external_symbols): Likewise. | |
429 | ||
b397aef4 L |
430 | 2021-05-10 H.J. Lu <[email protected]> |
431 | ||
432 | PR binutils/27839 | |
433 | * simple.c (bfd_simple_get_relocated_section_contents): Remove | |
434 | strayed fprintf. | |
435 | ||
23182ac0 NC |
436 | 2021-05-10 Nick Clifton <[email protected]> |
437 | ||
438 | PR 27839 | |
439 | * simple.c (simple_dummy_add_to_set): New function. | |
440 | (simple_dummy_constructor): New function. | |
441 | (simple_dummy_multiple_common): New function. | |
442 | (bfd_simple_get_relocated_section_contents): Zero out the | |
443 | callbacks structure, and then set the add_to_set, constructor and | |
444 | multiple_common fields. | |
445 | ||
5b45e89f DD |
446 | 2021-05-10 Dimitar Dimitrov <[email protected]> |
447 | ||
448 | * elf32-pru.c (elf_backend_can_gc_sections): Define as 1. | |
449 | ||
cf758b39 MF |
450 | 2021-05-08 Mike Frysinger <[email protected]> |
451 | ||
452 | * doc/Makefile.am (html-local, bfd/index.html): New targets. | |
453 | * doc/Makefile.in: Regenerate. | |
454 | ||
2faf902d MF |
455 | 2021-05-08 Mike Frysinger <[email protected]> |
456 | ||
457 | * doc/Makefile.am (AM_MAKEINFOFLAGS): Define. | |
458 | * doc/Makefile.in: Regenerate. | |
459 | ||
97834047 CC |
460 | 2021-05-07 Clément Chigot <[email protected]> |
461 | ||
462 | * coff-rs6000.c (xcoff_dwsect_names): Add new DWARF | |
463 | sections. | |
464 | * coffgen.c (coff_pointerize_aux): Handle C_DWARF. | |
465 | (coff_print_symbol): Likewise. | |
466 | * libxcoff.h (XCOFF_DWSECT_NBR_NAMES): Update. | |
467 | ||
17c6c3b9 JB |
468 | 2021-05-07 Jan Beulich <[email protected]> |
469 | ||
470 | * elf64-x86-64.c (x86_64_elf_howto_table): Set src_mask fields | |
471 | to zero. | |
472 | ||
a41513ef AM |
473 | 2021-05-07 Alan Modra <[email protected]> |
474 | ||
475 | * bfd-in2.h: Regenerate. | |
476 | * libbfd.h: Regenerate. | |
477 | ||
284a1309 SH |
478 | 2021-05-06 Stafford Horne <[email protected]> |
479 | ||
480 | PR 27746 | |
481 | * elf32-or1k.c (PLT_ENTRY_SIZE_LARGE, PLT_MAX_INSN_COUNT, | |
482 | OR1K_ADD, OR1K_ORI): New macros to help with plt creation. | |
483 | (elf_or1k_link_hash_table): New field plt_count. | |
484 | (elf_or1k_link_hash_entry): New field plt_index. | |
485 | (elf_or1k_plt_entry_size): New function. | |
486 | (or1k_write_plt_entry): Update to support variable size PLTs. | |
487 | (or1k_elf_finish_dynamic_sections): Use new or1k_write_plt_entry | |
488 | API. | |
489 | (or1k_elf_finish_dynamic_symbol): Update to write large PLTs | |
490 | when needed. | |
491 | (allocate_dynrelocs): Use elf_or1k_plt_entry_size to account for | |
492 | PLT size. | |
493 | ||
3c3de29b SH |
494 | 2021-05-06 Stafford Horne <[email protected]> |
495 | ||
496 | PR 21464 | |
497 | * elf32-or1k.c (or1k_elf_relocate_section): Relax R_OR1K_GOT16 | |
498 | overflow check if we have R_OR1K_GOT_AHI16 followed by | |
499 | R_OR1K_GOT16. | |
500 | ||
0b3e14c9 SH |
501 | 2021-05-06 Stafford Horne <[email protected]> |
502 | ||
503 | PR 21464 | |
504 | * bfd-in2.h: Add BFD_RELOC_OR1K_GOT_AHI16 relocation. | |
505 | * elf32-or1k.c (or1k_elf_howto_table, or1k_reloc_map): Likewise. | |
506 | (or1k_final_link_relocate, or1k_elf_relocate_section, | |
507 | or1k_elf_check_relocs): Likewise. | |
508 | * libbfd.h (bfd_reloc_code_real_names): Likewise. | |
509 | * reloc.c: Likewise. | |
510 | ||
a76ef689 SH |
511 | 2021-05-06 Stafford Horne <[email protected]> |
512 | ||
513 | PR 27624 | |
514 | * elf32-or1k.c (or1k_elf_adjust_dynamic_symbol): Change | |
515 | condition used to cleanup plt entries to cleanup forced local | |
516 | entries. | |
517 | ||
4467df35 L |
518 | 2021-05-05 H.J. Lu <[email protected]> |
519 | ||
520 | PR ld/27825 | |
521 | * elflink.c (elf_link_output_symstrtab): Always append ".COUNT" | |
522 | to local symbols. | |
523 | ||
c38c6234 AM |
524 | 2021-05-05 Alan Modra <[email protected]> |
525 | ||
526 | * vms-lib.c (vms_traverse_index): Account for vms_kbn size when | |
527 | sanity checking keylen. | |
528 | ||
bd6d8601 NC |
529 | 2021-05-04 Nick Clifton <[email protected]> |
530 | ||
531 | * libbfd.c (bfd_malloc): Provide some documenation. Treat a size | |
532 | of 0 as 1. | |
533 | (bfd_realloc): Likewise. | |
534 | (bfd_zmalloc): Likewise. | |
535 | (bfd_realloc_or_free): Provide some documentation. Treat a size | |
536 | of 0 as a request to free. | |
537 | * libbfd-in.h (bfd_realloc): Remove prototype. | |
538 | (bfd_realloc_or_free): Remove prototype. | |
539 | (bfd_zmalloc): Remove prototype. | |
540 | * libbfd.h: Regenerate. | |
541 | ||
4c398cc0 JB |
542 | 2021-05-03 Jan Beulich <[email protected]> |
543 | ||
544 | * elf32-i386.c (elf_howto_table): Switch all 32-bit relocs to | |
545 | complain_overflow_dont. | |
546 | * elf64-x86-64.c (x86_64_elf_howto_table): Switch all 64-bit | |
547 | relocs to complain_overflow_dont. | |
548 | ||
49160308 AM |
549 | 2021-05-03 Alan Modra <[email protected]> |
550 | ||
551 | * elf32-ppc.c (allocate_dynrelocs): Keep dyn_relocs for undefweak | |
552 | symbols when -z dynamic-undefined-weak or when there are no | |
553 | dynamic relocs in read-only sections and -z nodynamic-undefined-weak | |
554 | is not given. | |
555 | * elf64-ppc.c (allocate_dynrelocs): Likewise. | |
556 | ||
b2936612 AM |
557 | 2021-05-03 Alan Modra <[email protected]> |
558 | ||
559 | * elf32-ppc.c (allocate_dynrelocs): Call ensure_undef_dynamic for | |
560 | weak undefined symols that only appear on PLT relocs. | |
561 | * elf64-ppc.c (allocate_dynrelocs): Likewise. | |
562 | ||
337d0bf8 AM |
563 | 2021-05-03 Alan Modra <[email protected]> |
564 | ||
565 | PR 27755 | |
566 | * elf32-ppc.c (ppc_elf_inline_plt): Do increment rel in loop. | |
567 | ||
5072b52d AM |
568 | 2021-05-03 Alan Modra <[email protected]> |
569 | ||
570 | * elf32-csky.c (is_mapping_symbol_name): New function. | |
571 | (csky_elf_is_target_special_symbol): Likewise. | |
572 | (csky_elf_maybe_function_sym): Likewise. | |
573 | (bfd_elf32_bfd_is_target_special_symbol): Define. | |
574 | (elf_backend_maybe_function_sym): Define. | |
575 | ||
d1fbc3ba NC |
576 | 2021-04-30 Nick Clifton <[email protected]> |
577 | ||
578 | PR 27801 | |
579 | * mach-o.c (bfd_mach_o_core_fetch_environment): Use bfd_get_32 to | |
580 | read 32-bit value. | |
581 | ||
9f84cb38 NC |
582 | 2021-04-30 Nick Clifton <[email protected]> |
583 | ||
584 | PR 27799 | |
585 | * elf32-xtensa.c (elf_xtensa_grok_prstatus): Check for core notes | |
586 | that are too small. | |
587 | ||
6cb40a67 NC |
588 | 2021-04-30 Nick Clifton <[email protected]> |
589 | ||
590 | PR 27797 | |
591 | * libbfd.c (bfd_realloc_or_free): Do not free a pointer than has | |
592 | been realloc'ed to size 0. | |
593 | ||
bceb87ef NC |
594 | 2021-04-30 Nick Clifton <[email protected]> |
595 | ||
596 | PR 27795 | |
597 | * coff-rs6000.c (_bfd_xcoff_read_ar_hdr): Check for invalid name | |
598 | lengths. | |
599 | ||
09e40e44 NC |
600 | 2021-04-29 Nick Clifton <[email protected]> |
601 | ||
602 | PR 27793 | |
603 | * som.c (som_slurp_symbol_table): Assign symbols without any scope | |
604 | to the undefined section. | |
605 | (som_decode_symclass): Check for a missing symbol section. | |
606 | * syms.c (bfd_decode_symclass): Likewise. | |
607 | ||
063e75c9 NC |
608 | 2021-04-29 Nick Clifton <[email protected]> |
609 | ||
610 | PR 27792 | |
611 | * som.c (som_slurp_string_table): Place a terminating NUL byte at | |
612 | the end of the table. | |
613 | (som_slurp_symbol_table): Check for an over-large offset into the | |
614 | string string table. | |
615 | ||
24aebc79 NC |
616 | 2021-04-28 Nick Clifton <[email protected]> |
617 | ||
618 | * elf.c (_bfd_elf_maybe_function_sym): Do not accept annobin | |
619 | symbols as potential function symbols. | |
620 | * elfnn-aarch64.c (elfNN_aarch64_maybe_function_sym): Likewise. | |
621 | * elf64-ppc.c (ppc64_elf_maybe_function_sym): Likewise. | |
622 | * elf32-arm.c (elf32_arm_maybe_function_sym): Likewise. | |
623 | ||
3955e346 MF |
624 | 2021-04-26 Mike Frysinger <[email protected]> |
625 | ||
626 | * elf-bfd.h: Include stdlib.h. | |
627 | ||
a7664973 JB |
628 | 2021-04-26 Jan Beulich <[email protected]> |
629 | ||
630 | * elf32-i386.c (elf_howto_table): Switch R_386_PC16 to | |
631 | complain_overflow_signed. | |
632 | * elf64-x86-64.c (x86_64_elf_howto_table): Switch R_X86_64_PC16 | |
633 | to complain_overflow_signed. | |
634 | ||
f5e98b7d EB |
635 | 2021-04-23 Eric Botcazou <[email protected]> |
636 | ||
637 | * elf.c (special_sections_p): Add .persistent.bss. | |
638 | ||
c21346c5 JB |
639 | 2021-04-23 Jan Beulich <[email protected]> |
640 | ||
641 | * elf32-i386.c (elf_howto_table): R_386_TLS_DESC_CALL has zero | |
642 | size field. | |
643 | * elf64-x86-64.c (x86_64_elf_howto_table): R_X86_64_TLSDESC_CALL | |
644 | has zero size field. | |
645 | ||
bdd2aaf6 CC |
646 | 2021-04-22 Clément Chigot <[email protected]> |
647 | ||
648 | * hash.c (struct bfd_strtab_hash): Remove xcoff field. | |
649 | Add length_field_size field. | |
650 | (_bfd_stringtab_init): Change prototype. | |
651 | Adapt to new length_field_size. | |
652 | (_bfd_xcoff_stringtab_init): Likewise. | |
653 | (_bfd_stringtab_add): Likewise. | |
654 | (_bfd_stringtab_emit): Likewise. | |
655 | * libbfd-in.h (_bfd_xcoff_stringtab_init): | |
656 | Change prototype. | |
657 | * libbfd.h: Regenerate. | |
658 | * xcofflink.c (_bfd_xcoff_bfd_link_hash_table_create): | |
659 | Call _bfd_xcoff_stringtab_init with isxcoff64 value. | |
660 | ||
b11b2969 CC |
661 | 2021-04-22 Clément Chigot <[email protected]> |
662 | ||
663 | * coff-rs6000.c (_bfd_xcoff_swap_aux_in): Add errors for | |
664 | unsupported storage class or auxialiry entries. | |
665 | Improve and adapt to new aux structures. | |
666 | Add C_DWARF support. | |
667 | (_bfd_xcoff_swap_aux_out): Likewise. | |
668 | * coff64-rs6000.c (_bfd_xcoff64_swap_aux_in): Likewise. | |
669 | (_bfd_xcoff64_swap_aux_out): Likewise. | |
670 | ||
18e9a809 EZ |
671 | 2021-04-21 Eli Zaretskii <[email protected]> |
672 | ||
673 | PR 27760 | |
674 | * peXXigen.c (_bfd_XX_print_private_bfd_data_common): Add display | |
675 | of IMAGE_FILE_REMOVABLE_RUN_FROM_SWAP, | |
676 | IMAGE_FILE_NET_RUN_FROM_SWAP and IMAGE_FILE_UP_SYSTEM_ONLY flags. | |
677 | Decode the contents of the DllCharacteristics field. | |
678 | ||
33fe00c1 NC |
679 | 2021-04-21 Nick Clifton <[email protected]> |
680 | ||
681 | PR 27759 | |
682 | * srec.c (srec_read_section): Replace assertions with error | |
683 | returns. | |
684 | ||
c5df7e44 CC |
685 | 2021-04-20 Clément Chigot <[email protected]> |
686 | ||
687 | PR binutils/21700 | |
688 | * reloc.c (BFD_RELOC_PPC_NEG): New relocation. | |
689 | * bfd-in2.h: Regenerate. | |
690 | * libbfd.h: Regenerate. | |
691 | * coff-rs6000.c (_bfd_xcoff_reloc_type_lookup): Add | |
692 | BFD_RELOC_PPC_NEG handler. | |
693 | (xcoff_reloc_type_neg): Correctly substract addend. | |
694 | * coff64-rs6000.c (xcoff64_howto_table): Add R_NEG_32 | |
695 | howto. | |
696 | (xcoff64_rtype2howto): Add handler for R_NEG_32. | |
697 | (xcoff64_reloc_type_lookup): Add BFD_RELOC_PPC_NEG handler. | |
698 | * xcofflink.c (xcoff_need_ldrel_p): Check output section | |
699 | for R_POS-like relocations. New argument added. | |
700 | (xcoff_mark): Adapt to new xcoff_need_ldrel_p argument. | |
701 | (xcoff_link_input_bfd): Likewise. | |
702 | ||
6f8f6017 AM |
703 | 2021-04-16 Alan Modra <[email protected]> |
704 | ||
705 | PR 27567 | |
706 | * coffcode.h (styp_to_sec_flags): Use an unsigned long styp_flags. | |
707 | (coff_write_object_contents): Pass bfd to COFF_ENCODE_ALIGNMENT, | |
708 | ignore alignment checks when return is false. Formatting. | |
709 | ||
ddfe525f NC |
710 | 2021-04-15 Nelson Chu <[email protected]> |
711 | ||
712 | PR27584 | |
713 | * elfnn-riscv.c (riscv_elf_is_target_special_symbol): Added to | |
714 | omit local and empty symbols since they usually generated to | |
715 | mark the auipc instructions. | |
716 | ||
f6a1f957 LX |
717 | 2021-04-15 Lifang Xia<[email protected]> |
718 | ||
719 | * elf32-csky.c (csky_elf_howto_table) | |
720 | <R_CKCORE_PCREL_IMM16BY2>: Set special_function to | |
721 | bfd_elf_generic_reloc. | |
722 | <R_CKCORE_PCREL_IMM16BY4>: Likewise. | |
723 | <R_CKCORE_PCREL_IMM10BY4>: Likewise. | |
724 | <R_CKCORE_PCREL_IMM18BY2>: Likewise. | |
725 | <R_CKCORE_PCREL_FLRW_IMM8BY4>: Likewise. | |
726 | ||
9917b559 L |
727 | 2021-04-14 H.J. Lu <[email protected]> |
728 | ||
729 | PR binutils/27708 | |
730 | * elf.c (assign_file_positions_for_non_load_sections): Set | |
731 | p_memsz to p_filesz for the loadable PT_NOTE segment. | |
732 | ||
5f47741b FC |
733 | 2021-04-14 Frederic Cambus <[email protected]> |
734 | ||
735 | * elf.c (elfcore_grok_netbsd_note): Remove unneeded #ifdef | |
736 | checks for NT_NETBSDCORE_AUXV and NT_NETBSDCORE_LWPSTATUS. | |
737 | ||
8985b74b AM |
738 | 2021-04-14 Alan Modra <[email protected]> |
739 | ||
740 | PR 27631 | |
741 | * elf32-metag.c (elf_metag_relocate_section): Don't use &hh->elf | |
742 | when hh might be NULL, test for NULL first. | |
743 | ||
c9f9a78d AM |
744 | 2021-04-14 Alan Modra <[email protected]> |
745 | ||
746 | PR 27630 | |
747 | * elf32-arm.c (elf32_arm_size_stubs): Don't use &hash->root when | |
748 | hash might be NULL, cast instead. | |
749 | ||
d2f1139e CC |
750 | 2021-04-13 Clément Chigot <[email protected]> |
751 | ||
752 | * xcofflink.c (xcoff_link_check_ar_symbols): Update esym earlier. | |
753 | ||
e3839c10 NC |
754 | 2021-04-13 Nelson Chu <[email protected]> |
755 | ||
756 | * elfnn-riscv.c (riscv_version_mismatch): Do not report the warning | |
757 | when the version of input or output is RISCV_UNKNOWN_VERSION, since | |
758 | the extension is added implicitly. | |
759 | * elfxx-riscv.c: Updated the obsolete comments. | |
760 | (RISCV_UNKNOWN_VERSION): Moved to elfxx-riscv.h. | |
761 | * elfxx-riscv.h (RISCV_UNKNOWN_VERSION): Added. | |
762 | ||
43e05cd4 AM |
763 | 2021-04-12 Alan Modra <[email protected]> |
764 | ||
765 | * elf-bfd.h (ENABLE_CHECKING): Define. | |
766 | (elf_link_hash_lookup): Abort if wrong type of hash table. | |
767 | * configure.ac (--enable-checking): Add support. | |
768 | * config.in: Regenerate. | |
769 | * configure: Regenerate. | |
770 | ||
2cc15b10 AM |
771 | 2021-04-12 Alan Modra <[email protected]> |
772 | ||
773 | * elf-bfd.h (is_elf_hash_table): Convert macro to inline function. | |
774 | (elf_link_hash_lookup, elf_link_hash_traverse): Likewise. | |
775 | (elf_hash_table, elf_hash_table_id): Likewise. | |
776 | * elf32-arm.c (elf32_arm_setup_section_lists): Delete redundant | |
777 | is_elf_hash_table check. | |
778 | * elf32-csky.c (elf32_csky_setup_section_lists): Likewise. | |
779 | * elf32-hppa.c (clobber_millicode_symbols): Correct param types. | |
780 | * elf64-alpha.c (elf64_alpha_output_extsym): Likewise. | |
781 | * elfnn-ia64.c (elfNN_ia64_global_dyn_info_free: Likewise. | |
782 | (elfNN_ia64_global_dyn_sym_thunk: Likewise. | |
783 | * elf64-ia64-vms.c (elf64_ia64_global_dyn_info_free): Likewise. | |
784 | (elf64_ia64_global_dyn_sym_thunk): Likewise. | |
785 | (elf64_vms_link_add_object_symbols): Pass base type of hash table | |
786 | to is_elf_hash_table. | |
787 | * elflink.c (_bfd_elf_dynamic_symbol_p): Likewise. | |
788 | (_bfd_elf_symbol_refs_local_p, _bfd_elf_add_dynamic_entry): Likewise. | |
789 | (_bfd_elf_strip_zero_sized_dynamic_sections): Likewise. | |
790 | (_bfd_elf_link_check_relocs, elf_link_add_object_symbols): Likewise. | |
791 | (bfd_elf_final_link): Likewise. | |
792 | * elfnn-aarch64.c (elfNN_aarch64_setup_section_lists): Likewise. | |
793 | * elf64-ppc.c (ppc64_elf_set_toc): Likewise. Use bfd_link_hash_lookup. | |
794 | ||
b585e899 AM |
795 | 2021-04-12 Alan Modra <[email protected]> |
796 | ||
797 | * elf-bfd.h (struct elf_backend_data): Return bfd_link_hash_entry* | |
798 | from elf_backend_archive_symbol_lookup. | |
799 | (_bfd_elf_archive_symbol_lookup): Return bfd_link_hash_entry*. | |
800 | * elf64-ppc.c (ppc64_elf_archive_symbol_lookup): Likewise. Check | |
801 | we have a ppc_hash_table before accessing ppc_link_hash_entry | |
802 | fields. | |
803 | * elflink.c (_bfd_elf_archive_symbol_lookup): Return | |
804 | bfd_link_hash_entry*. | |
805 | (elf_link_add_archive_symbols): Adjust to suit. | |
806 | ||
f5b10973 NC |
807 | 2021-04-12 Nelson Chu <[email protected]> |
808 | ||
809 | * elfxx-riscv.c (riscv_parse_std_ext): Fixed the wrong versions of | |
810 | i-ext when expanding g-ext. | |
811 | ||
f0bae255 NC |
812 | 2021-04-12 Nelson Chu <[email protected]> |
813 | ||
814 | * elfxx-riscv.c (riscv_ext_dont_care_version): Removed. | |
815 | (riscv_parse_add_subset): Always add the implicit extensions, even if | |
816 | their versions are RISCV_UNKNOWN_VERSION. | |
817 | (riscv_parse_std_ext): Delay to add i-ext as the implicit extension | |
818 | in the riscv_parse_add_implicit_subsets. Besides, add g-ext as the | |
819 | implicit extension after it has been expanded. | |
820 | (riscv_parse_add_implicit_subsets): Updated. | |
821 | ||
e601909a NC |
822 | 2021-04-12 Nelson Chu <[email protected]> |
823 | ||
824 | * elfxx-riscv.c (riscv_std_z_ext_strtab): Moved forward. | |
825 | (riscv_std_s_ext_strtab): Likewise. | |
826 | (riscv_std_h_ext_strtab): Likewise. | |
827 | (riscv_std_zxm_ext_strtab): Added for the zxm prefix. | |
828 | (enum riscv_prefix_ext_class): Moved forward and renamed from | |
829 | riscv_isa_ext_class. Reorder them according to the parsing order, | |
830 | since the enum values are used to check the orders in the | |
831 | riscv_compare_subsets. | |
832 | (struct riscv_parse_prefix_config): Moved forward and renamed from | |
833 | riscv_parse_config_t. Also removed the ext_valid_p field, the | |
834 | related functions are replaced by riscv_valid_prefixed_ext. | |
835 | (parse_config): Moved forward and updated. The more letters of the | |
836 | prefix string, the more forward it must be defined. Otherwise, we | |
837 | will get the wrong mapping when using strncmp in riscv_get_prefix_class. | |
838 | (riscv_get_prefix_class): Moved forward. Support to parse the | |
839 | multi-letter prefix, like zxm. | |
840 | (riscv_known_prefixed_ext): New function, check if the prefixed | |
841 | extension is supported according to the right riscv_std_*_ext_strtab. | |
842 | (riscv_valid_prefixed_ext): New function, used to replace the | |
843 | riscv_ext_*_valid_p functions. | |
844 | (riscv_init_ext_order): Do not set the values for prefix keywords | |
845 | since they may have multiple letters for now. | |
846 | (riscv_compare_subsets): Set the order values of prefix keywords | |
847 | to negative numbers according to the riscv_prefix_ext_class. | |
848 | (riscv_parse_std_ext): Call riscv_get_prefix_class to see if we | |
849 | have parsed the prefixed extensions. | |
850 | (riscv_parse_prefixed_ext): Updated and removed the parameter config. | |
851 | Report error when the prefix is unknown. | |
852 | (riscv_parse_subset): Do not parse the prefixed extensions according | |
853 | to the orders in the parse_config. Remove the confused message and | |
854 | let riscv_parse_prefixed_ext to report the details. | |
855 | * elfxx-riscv.h (enum riscv_isa_ext_class): Moved to elfxx-riscv.c. | |
856 | (riscv_get_prefix_class): Removed to static. | |
857 | ||
eec8bf7e MF |
858 | 2021-04-08 Mike Frysinger <[email protected]> |
859 | ||
860 | * configure.ac (ACX_BUGURL): Use https://. | |
861 | * configure.com (COPY_TEXT): Likewise. | |
862 | * configure: Regenerate. | |
863 | ||
83c79df8 AM |
864 | 2021-04-05 Alan Modra <[email protected]> |
865 | ||
866 | * configure.ac: Don't check for long long or long double type. | |
867 | Don't check for alloca.h, limits.h, stddef.h, stdlib.h, string.h, | |
868 | strings.h, time.h, wchar.h, wctype.h or sys/time.h. Don't check | |
869 | for strtoull, free, malloc, realloc, getenv, strstr, snprintf, | |
870 | vsnprintf, strlen or setitimer. Sort AC_CHECK_DECLS. | |
871 | (AC_ISC_POSIX): Don't invoke. | |
872 | (AC_HEADER_TIME, AC_HEADER_DIRENT, ACX_HEADER_STRING): Likewise. | |
873 | * sysdep.h: Remove many HAVE_*_H checks and fallback declarations. | |
874 | Do test HAVE_SYS_TYPES_H. Don't include sys/time.h. Reorder | |
875 | header order as per automake AC_INCLUDES_DEFAULT. | |
876 | * bfd-in.h: Include inttypes.h unconditionally. | |
877 | * bfd.c (_bfd_doprnt, _bfd_doprnt_scan): Assume long long and | |
878 | long double are available. | |
879 | (bfd_scan_vma): Assume long long and strtoull are available. | |
880 | * elflink.c: Include limits.h unconditionally. | |
881 | * elfnn-riscv.c: Likewise. | |
882 | * wasm-module.c: Likewise. | |
883 | * hpux-core.c: Include dirent.h unconditionally. | |
884 | * trad-core.c: Likewise. | |
885 | * hosts/x86-64linux.h: Include stdlib.h unconditionally. | |
886 | * peXXigen.c: Remove HAVE_WCHAR_H and HAVE_WCTYPE_H checks. | |
887 | * elf32-m68hc1x.c: Don't include alloca-conf.h. | |
888 | * elf64-hppa.c: Likewise. | |
889 | * som.c: Likewise. | |
890 | * wasm-module.c: Likewise. | |
891 | * xsym.c: Likewise. | |
892 | * bfd-in2.h: Regenerate. | |
893 | * config.in: Regenerate. | |
894 | * configure: Regenerate. | |
895 | ||
74edb473 TC |
896 | 2021-04-01 Tamar Christina <[email protected]> |
897 | ||
898 | PR ld/26659 | |
899 | * cofflink.c (_bfd_coff_generic_relocate_section): Ignore overflow. | |
900 | ||
e9b095a5 ML |
901 | 2021-04-01 Martin Liska <[email protected]> |
902 | ||
903 | * ecoff.c (strneq): Remove strneq and use startswith. | |
904 | (_bfd_ecoff_slurp_armap): Likewise. | |
905 | ||
3f3328b8 ML |
906 | 2021-04-01 Martin Liska <[email protected]> |
907 | ||
908 | * elf-bfd.h (bfd_section_is_ctf): Use startswith function. | |
909 | * elf.c (_bfd_elf_make_section_from_shdr): Likewise. | |
910 | (elf_get_reloc_section): Likewise. | |
911 | * elf32-arc.c (elf_arc_size_dynamic_sections): Likewise. | |
912 | * elf32-m32r.c (m32r_elf_section_flags): Likewise. | |
913 | * elf32-microblaze.c (microblaze_elf_size_dynamic_sections): Likewise. | |
914 | * elf32-nds32.c (nds32_elf_size_dynamic_sections): Likewise. | |
915 | (nds32_elf_relocate_section): Likewise. | |
916 | (nds32_elf_action_discarded): Likewise. | |
917 | (nds32_elf_check_relocs): Likewise. | |
918 | (nds32_elf_section_flags): Likewise. | |
919 | * elf32-or1k.c (or1k_elf_check_relocs): Likewise. | |
920 | * elf32-ppc.c (ppc_elf_section_from_shdr): Likewise. | |
921 | * elf32-rx.c (rx_table_find): Likewise. | |
922 | (rx_table_map): Likewise. | |
923 | * elf32-spu.c (spu_elf_backend_symbol_processing): Likewise. | |
924 | (spu_elf_find_overlays): Likewise. | |
925 | (needs_ovl_stub): Likewise. | |
926 | (allocate_spuear_stubs): Likewise. | |
927 | (build_spuear_stubs): Likewise. | |
928 | (mark_overlay_section): Likewise. | |
929 | (spu_elf_auto_overlay): Likewise. | |
930 | (spu_elf_output_symbol_hook): Likewise. | |
931 | * elf32-tilepro.c (tilepro_elf_size_dynamic_sections): Likewise. | |
932 | * elf32-xtensa.c (xtensa_property_section_name): Likewise. | |
933 | * elf64-ppc.c (ppc64_elf_section_flags): Likewise. | |
934 | (ppc64_elf_relocate_section): Likewise. | |
935 | * elflink.c (resolve_section): Likewise. | |
936 | (UNARY_OP): Likewise. | |
937 | (BINARY_OP_HEAD): Likewise. | |
938 | (elf_link_input_bfd): Likewise. | |
939 | * elfnn-riscv.c (riscv_elf_size_dynamic_sections): Likewise. | |
940 | * elfxx-riscv.c (riscv_parse_subset): Likewise. | |
941 | * elfxx-tilegx.c (tilegx_elf_size_dynamic_sections): Likewise. | |
942 | * opncls.c (get_build_id): Likewise. | |
943 | ||
65c5fbd4 AM |
944 | 2021-03-31 Alan Modra <[email protected]> |
945 | ||
946 | PR 27671 | |
947 | * bfd-in.h: Don't poison FALSE or TRUE. | |
948 | * bfd-in2.h: Regenerate. | |
949 | ||
0a1b45a2 AM |
950 | 2021-03-31 Alan Modra <[email protected]> |
951 | ||
952 | * sysdep.h: POISON_BFD_BOOLEAN: Define. | |
953 | * aix5ppc-core.c, * aout-cris.c, * aout-ns32k.c, * aout-target.h, | |
954 | * aoutx.h, * arc-got.h, * archive.c, * archive64.c, * archures.c, | |
955 | * bfd-in.h, * bfd.c, * bfdwin.c, * binary.c, * cache.c, | |
956 | * coff-alpha.c, * coff-arm.c, * coff-arm.h, * coff-bfd.c, | |
957 | * coff-bfd.h, * coff-go32.c, * coff-i386.c, * coff-ia64.c, | |
958 | * coff-mcore.c, * coff-mips.c, * coff-rs6000.c, * coff-sh.c, | |
959 | * coff-stgo32.c, * coff-tic30.c, * coff-tic4x.c, * coff-tic54x.c, | |
960 | * coff-x86_64.c, * coff-z80.c, * coff-z8k.c, * coff64-rs6000.c, | |
961 | * coffcode.h, * coffgen.c, * cofflink.c, * compress.c, | |
962 | * corefile.c, * cpu-aarch64.c, * cpu-aarch64.h, * cpu-alpha.c, | |
963 | * cpu-arc.c, * cpu-arm.c, * cpu-arm.h, * cpu-avr.c, * cpu-bfin.c, | |
964 | * cpu-bpf.c, * cpu-cr16.c, * cpu-cris.c, * cpu-crx.c, | |
965 | * cpu-csky.c, * cpu-d10v.c, * cpu-d30v.c, * cpu-dlx.c, | |
966 | * cpu-epiphany.c, * cpu-fr30.c, * cpu-frv.c, * cpu-ft32.c, | |
967 | * cpu-h8300.c, * cpu-hppa.c, * cpu-i386.c, * cpu-ia64.c, | |
968 | * cpu-iamcu.c, * cpu-ip2k.c, * cpu-iq2000.c, * cpu-k1om.c, | |
969 | * cpu-l1om.c, * cpu-lm32.c, * cpu-m10200.c, * cpu-m10300.c, | |
970 | * cpu-m32c.c, * cpu-m32r.c, * cpu-m68hc11.c, * cpu-m68hc12.c, | |
971 | * cpu-m68k.c, * cpu-m9s12x.c, * cpu-m9s12xg.c, * cpu-mcore.c, | |
972 | * cpu-mep.c, * cpu-metag.c, * cpu-microblaze.c, * cpu-mips.c, | |
973 | * cpu-mmix.c, * cpu-moxie.c, * cpu-msp430.c, * cpu-mt.c, | |
974 | * cpu-nds32.c, * cpu-nfp.c, * cpu-nios2.c, * cpu-ns32k.c, | |
975 | * cpu-or1k.c, * cpu-pdp11.c, * cpu-pj.c, * cpu-powerpc.c, | |
976 | * cpu-pru.c, * cpu-riscv.c, * cpu-rl78.c, * cpu-rs6000.c, | |
977 | * cpu-rx.c, * cpu-s12z.c, * cpu-s390.c, * cpu-score.c, | |
978 | * cpu-sh.c, * cpu-sparc.c, * cpu-spu.c, * cpu-tic30.c, | |
979 | * cpu-tic4x.c, * cpu-tic54x.c, * cpu-tic6x.c, * cpu-tilegx.c, | |
980 | * cpu-tilepro.c, * cpu-v850.c, * cpu-v850_rh850.c, * cpu-vax.c, | |
981 | * cpu-visium.c, * cpu-wasm32.c, * cpu-xc16x.c, * cpu-xgate.c, | |
982 | * cpu-xstormy16.c, * cpu-xtensa.c, * cpu-z80.c, * cpu-z8k.c, | |
983 | * dwarf1.c, * dwarf2.c, * ecoff-bfd.h, * ecoff.c, * ecofflink.c, | |
984 | * elf-attrs.c, * elf-bfd.h, * elf-eh-frame.c, * elf-hppa.h, | |
985 | * elf-ifunc.c, * elf-m10200.c, * elf-m10300.c, * elf-nacl.c, | |
986 | * elf-nacl.h, * elf-properties.c, * elf-s390-common.c, | |
987 | * elf-s390.h, * elf-strtab.c, * elf-vxworks.c, * elf-vxworks.h, | |
988 | * elf.c, * elf32-am33lin.c, * elf32-arc.c, * elf32-arm.c, | |
989 | * elf32-arm.h, * elf32-avr.c, * elf32-avr.h, * elf32-bfin.c, | |
990 | * elf32-bfin.h, * elf32-cr16.c, * elf32-cr16.h, * elf32-cris.c, | |
991 | * elf32-crx.c, * elf32-csky.c, * elf32-csky.h, * elf32-d10v.c, | |
992 | * elf32-d30v.c, * elf32-dlx.c, * elf32-epiphany.c, | |
993 | * elf32-fr30.c, * elf32-frv.c, * elf32-ft32.c, * elf32-gen.c, | |
994 | * elf32-h8300.c, * elf32-hppa.c, * elf32-hppa.h, * elf32-i386.c, | |
995 | * elf32-ip2k.c, * elf32-iq2000.c, * elf32-lm32.c, * elf32-m32c.c, | |
996 | * elf32-m32r.c, * elf32-m68hc11.c, * elf32-m68hc12.c, | |
997 | * elf32-m68hc1x.c, * elf32-m68hc1x.h, * elf32-m68k.c, | |
998 | * elf32-m68k.h, * elf32-mcore.c, * elf32-mep.c, * elf32-metag.c, | |
999 | * elf32-metag.h, * elf32-microblaze.c, * elf32-mips.c, | |
1000 | * elf32-moxie.c, * elf32-msp430.c, * elf32-mt.c, * elf32-nds32.c, | |
1001 | * elf32-nios2.c, * elf32-nios2.h, * elf32-or1k.c, * elf32-pj.c, | |
1002 | * elf32-ppc.c, * elf32-ppc.h, * elf32-pru.c, * elf32-rl78.c, | |
1003 | * elf32-rx.c, * elf32-s12z.c, * elf32-s390.c, * elf32-score.c, | |
1004 | * elf32-score.h, * elf32-score7.c, * elf32-sh-relocs.h, | |
1005 | * elf32-sh.c, * elf32-sparc.c, * elf32-spu.c, * elf32-spu.h, | |
1006 | * elf32-tic6x.c, * elf32-tic6x.h, * elf32-tilegx.c, | |
1007 | * elf32-tilepro.c, * elf32-v850.c, * elf32-v850.h, | |
1008 | * elf32-vax.c, * elf32-visium.c, * elf32-wasm32.c, | |
1009 | * elf32-xc16x.c, * elf32-xgate.c, * elf32-xstormy16.c, | |
1010 | * elf32-xtensa.c, * elf32-z80.c, * elf64-alpha.c, * elf64-bpf.c, | |
1011 | * elf64-gen.c, * elf64-hppa.c, * elf64-ia64-vms.c, | |
1012 | * elf64-mips.c, * elf64-mmix.c, * elf64-nfp.c, * elf64-ppc.c, | |
1013 | * elf64-ppc.h, * elf64-s390.c, * elf64-sparc.c, | |
1014 | * elf64-tilegx.c, * elf64-x86-64.c, * elfcode.h, | |
1015 | * elfcore.h, * elflink.c, * elfn32-mips.c, * elfnn-aarch64.c, | |
1016 | * elfnn-ia64.c, * elfnn-riscv.c, * elfxx-aarch64.c, | |
1017 | * elfxx-aarch64.h, * elfxx-ia64.c, * elfxx-ia64.h, | |
1018 | * elfxx-mips.c, * elfxx-mips.h, * elfxx-riscv.c, * elfxx-riscv.h, | |
1019 | * elfxx-sparc.c, * elfxx-sparc.h, * elfxx-target.h, | |
1020 | * elfxx-tilegx.c, * elfxx-tilegx.h, * elfxx-x86.c, * elfxx-x86.h, | |
1021 | * format.c, * genlink.h, * hash.c, * i386aout.c, * i386lynx.c, | |
1022 | * i386msdos.c, * ihex.c, * libaout.h, * libbfd-in.h, | |
1023 | * libbfd.c, * libcoff-in.h, * libecoff.h, * libpei.h, | |
1024 | * libxcoff.h, * linker.c, * mach-o-aarch64.c, * mach-o-arm.c, | |
1025 | * mach-o-i386.c, * mach-o-x86-64.c, * mach-o.c, * mach-o.h, | |
1026 | * merge.c, * mmo.c, * netbsd.h, * opncls.c, * pc532-mach.c, | |
1027 | * pdp11.c, * pe-arm.c, * pe-i386.c, * pe-mcore.c, * pe-sh.c, | |
1028 | * pe-x86_64.c, * peXXigen.c, * pef.c, * pei-arm.c, * pei-i386.c, | |
1029 | * pei-ia64.c, * pei-mcore.c, * pei-sh.c, * pei-x86_64.c, | |
1030 | * peicode.h, * plugin.c, * plugin.h, * ppcboot.c, * reloc.c, | |
1031 | * reloc16.c, * rs6000-core.c, * section.c, * simple.c, * som.c, | |
1032 | * som.h, * srec.c, * stabs.c, * syms.c, * targets.c, * tekhex.c, | |
1033 | * verilog.c, * vms-alpha.c, * vms-lib.c, * vms-misc.c, * vms.h, | |
1034 | * wasm-module.c, * xcofflink.c, * xcofflink.h, * xsym.c, | |
1035 | * xsym.h: Replace bfd_boolean with bool, FALSE with false, and | |
1036 | TRUE with true throughout. | |
1037 | * bfd-in2.h: Regenerate. | |
1038 | * libbfd.h: Regenerate. | |
1039 | * libcoff.h: Regenerate. | |
1040 | ||
ad9e24ad AM |
1041 | 2021-03-31 Alan Modra <[email protected]> |
1042 | ||
1043 | * bfd-in.h: Include stdbool.h. | |
1044 | (bfd_boolean): Define as bool | |
1045 | * bfd-in2.h: Regenerate. | |
1046 | ||
3dfb1b6d AM |
1047 | 2021-03-31 Alan Modra <[email protected]> |
1048 | ||
1049 | * .gitignore: Delete bfd_stdint.h entry. | |
1050 | * Makefile.am (bfdinclude_HEADERS): Delete bfd_stdint.h. | |
1051 | (BUILD_HFILES, LOCAL_H_DEPS): Likewise. | |
1052 | * bfd-in.h: Include stdint.h in place of bfd_stdint.h. | |
1053 | * configure.ac: Don't invoke GCC_HEADER_STDINT. | |
1054 | * configure.com: Don't create bfd_stdint.h. | |
1055 | * Makefile.in: Regenerate. | |
1056 | * aclocal.m4: Regenerate. | |
1057 | * bfd-in2.h: Regenerate. | |
1058 | * config.in: Regenerate. | |
1059 | * configure: Regenerate. | |
1060 | * doc/Makefile.in: Regenerate. | |
1061 | * po/BLD-POTFILES.in: Regenerate. | |
1062 | ||
57ae980e AM |
1063 | 2021-03-31 Alan Modra <[email protected]> |
1064 | ||
1065 | * bfd-in.h: Include string.h. | |
1066 | (LITMEMCPY, LITSTRCPY): Delete. | |
1067 | * bfd-in2.h: Regenerate. | |
1068 | ||
d1cbe007 AM |
1069 | 2021-03-30 Alan Modra <[email protected]> |
1070 | ||
1071 | * elflink.c (elf_link_add_object_symbols): Don't set h->indx | |
1072 | unless is_elf_hash_table. | |
1073 | ||
63b4cc53 AM |
1074 | 2021-03-29 Alan Modra <[email protected]> |
1075 | ||
1076 | * aoutx.h (aout_link_write_symbols): Don't cast boolean expression | |
1077 | to bfd_boolean. | |
1078 | * elf32-or1k.c (or1k_set_got_and_rela_sizes): Dont compare booleans | |
1079 | against FALSE. | |
1080 | * elf32-arc.c (name_for_global_symbol): Don't compare boolean to TRUE. | |
1081 | (is_reloc_PC_relative): Don't use "boolean_condition ? TRUE : FALSE". | |
1082 | (is_reloc_SDA_relative, is_reloc_for_GOT): Likewise. | |
1083 | (is_reloc_for_PLT, is_reloc_for_TLS): Likewise. | |
1084 | * elf32-arm.c (stm32l4xx_need_create_replacing_stub): Likewise. | |
1085 | * elf32-nds32.c (insert_nds32_elf_blank): Likewise. | |
1086 | * elf32-rx.c (rx_set_section_contents): Likewise. | |
1087 | * elfnn-aarch64.c (elfNN_aarch64_final_link_relocate): Likewise. | |
1088 | * elfxx-mips.c (_bfd_mips_elf_ignore_undef_symbol): Likewise. | |
1089 | * mach-o.c (bfd_mach_o_read_command): Likewise. | |
1090 | * targets.c (bfd_get_target_info): Likewise. | |
1091 | ||
f4f9ede0 AM |
1092 | 2021-03-29 Alan Modra <[email protected]> |
1093 | ||
1094 | * coff-z80.c (z80_is_local_label_name): Return bfd_boolean. | |
1095 | * elf32-z80.c (z80_is_local_label_name): Likewise. | |
1096 | * elf32-spu.c (spu_elf_modify_headers): Likewise. | |
1097 | * elf32-nds32.h (struct elf_nds32_link_hash_table <hyper_relax>): | |
1098 | Change type to int. | |
1099 | * vms-lib.c (_bfd_vms_lib_write_archive_contents): Correct test | |
1100 | for error return from vms_write_data_block. | |
1101 | ||
1201fda6 AM |
1102 | 2021-03-29 Alan Modra <[email protected]> |
1103 | ||
1104 | * elf32-i386.c (elf_i386_finish_local_dynamic_symbol): Return int. | |
1105 | * elf64-ia64-vms.c (elf64_ia64_local_dyn_info_free): Likewise. | |
1106 | (elf64_ia64_local_dyn_sym_thunk): Likewise. | |
1107 | * elf64-x86-64.c (elf_x86_64_finish_local_dynamic_symbol): Likewise. | |
1108 | * elfnn-aarch64.c (elfNN_aarch64_allocate_local_ifunc_dynrelocs), | |
1109 | (elfNN_aarch64_finish_local_dynamic_symbol): Likewise. | |
1110 | * elfnn-ia64.c (elfNN_ia64_local_dyn_info_free): Likewise. | |
1111 | (elfNN_ia64_local_dyn_sym_thunk): Likewise. | |
1112 | * elfnn-riscv.c (allocate_local_ifunc_dynrelocs): Likewise. | |
1113 | (riscv_pcrel_reloc_eq): Likewise. | |
1114 | (riscv_elf_finish_local_dynamic_symbol): Likewise. | |
1115 | * elfxx-sparc.c (allocate_local_dynrelocs): Likewise. | |
1116 | (finish_local_dynamic_symbol): Likewise. | |
1117 | * elfxx-x86.c (elf_x86_allocate_local_dynreloc): Likewise. | |
1118 | * elfxx-mips.c (mips_elf_resolve_got_page_ref): Likewise. | |
1119 | (mips_elf_count_got_symbols): Change return type to bfd_boolean. | |
1120 | ||
37bb890f AM |
1121 | 2021-03-29 Alan Modra <[email protected]> |
1122 | ||
1123 | * elflink.c (elf_link_output_symstrtab): Make flinfo parameter | |
1124 | a void pointer. | |
1125 | (bfd_elf_final_link): Delete out_sym_func typedef and don't cast | |
1126 | elf_link_output_symstrtab when calling output_arch_syms and | |
1127 | output_arch_local_syms. | |
1128 | * elf-bfd.h (struct elf_backend_data <elf_backend_output_arch_syms, | |
1129 | elf_backend_output_arch_local_syms>): Change return type of func | |
1130 | arg to match elf_link_output_symstrtab. | |
1131 | * elf-vxworks.h (elf_vxworks_link_output_symbol_hook): Correct | |
1132 | return type. | |
1133 | * elf32-nds32.c (nds32_elf_output_symbol_hook): Correct return type. | |
1134 | (nds32_elf_output_arch_syms): Correct func return type. | |
1135 | ||
0f684201 AM |
1136 | 2021-03-29 Alan Modra <[email protected]> |
1137 | ||
1138 | * elf-m10200.c (mn10200_elf_relocate_section): Return int. | |
1139 | * elf-m10300.c (mn10300_elf_relocate_section): Likewise. | |
1140 | * elf32-arc.c (elf_arc_relocate_section): Likewise. | |
1141 | * elf32-arm.c (elf32_arm_relocate_section): Likewise. | |
1142 | * elf32-avr.c (elf32_avr_relocate_section): Likewise. | |
1143 | * elf32-bfin.c (bfin_relocate_section): Likewise. | |
1144 | (bfinfdpic_relocate_section): Likewise. | |
1145 | * elf32-cr16.c (elf32_cr16_relocate_section): Likewise. | |
1146 | * elf32-cris.c (cris_elf_relocate_section): Likewise. | |
1147 | * elf32-crx.c (elf32_crx_relocate_section): Likewise. | |
1148 | * elf32-csky.c (csky_elf_relocate_section): Likewise. | |
1149 | * elf32-d10v.c (elf32_d10v_relocate_section): Likewise. | |
1150 | * elf32-epiphany.c (epiphany_elf_relocate_section): Likewise. | |
1151 | * elf32-fr30.c (fr30_elf_relocate_section): Likewise. | |
1152 | * elf32-frv.c (elf32_frv_relocate_section): Likewise. | |
1153 | * elf32-ft32.c (ft32_elf_relocate_section): Likewise. | |
1154 | * elf32-h8300.c (elf32_h8_relocate_section): Likewise. | |
1155 | * elf32-hppa.c (elf32_hppa_relocate_section): Likewise. | |
1156 | * elf32-i386.c (elf_i386_relocate_section): Likewise. | |
1157 | * elf32-ip2k.c (ip2k_elf_relocate_section): Likewise. | |
1158 | * elf32-iq2000.c (iq2000_elf_relocate_section): Likewise. | |
1159 | * elf32-lm32.c (lm32_elf_relocate_section): Likewise. | |
1160 | * elf32-m32c.c (m32c_elf_relocate_section): Likewise. | |
1161 | * elf32-m32r.c (m32r_elf_relocate_section): Likewise. | |
1162 | * elf32-m68hc1x.c (elf32_m68hc11_relocate_section): Likewise. | |
1163 | * elf32-m68hc1x.h (elf32_m68hc11_relocate_section): Likewise. | |
1164 | * elf32-m68k.c (elf_m68k_relocate_section): Likewise. | |
1165 | * elf32-mcore.c (mcore_elf_relocate_section): Likewise. | |
1166 | * elf32-mep.c (mep_elf_relocate_section): Likewise. | |
1167 | * elf32-metag.c (elf_metag_relocate_section): Likewise. | |
1168 | * elf32-microblaze.c (microblaze_elf_relocate_section): Likewise. | |
1169 | * elf32-moxie.c (moxie_elf_relocate_section): Likewise. | |
1170 | * elf32-msp430.c (elf32_msp430_relocate_section): Likewise. | |
1171 | * elf32-mt.c (mt_elf_relocate_section): Likewise. | |
1172 | * elf32-nds32.c (nds32_elf_relocate_section): Likewise. | |
1173 | * elf32-nios2.c (nios2_elf32_relocate_section): Likewise. | |
1174 | * elf32-or1k.c (or1k_elf_relocate_section): Likewise. | |
1175 | * elf32-ppc.c (ppc_elf_relocate_section): Likewise. | |
1176 | * elf32-pru.c (pru_elf32_relocate_section): Likewise. | |
1177 | * elf32-rl78.c (rl78_elf_relocate_section): Likewise. | |
1178 | * elf32-rx.c (rx_elf_relocate_section): Likewise. | |
1179 | * elf32-s390.c (elf_s390_relocate_section): Likewise. | |
1180 | * elf32-score.c (s3_bfd_score_elf_relocate_section): Likewise. | |
1181 | (_bfd_score_elf_relocate_section): Likewise. | |
1182 | * elf32-score.h (s7_bfd_score_elf_relocate_section): Likewise. | |
1183 | * elf32-score7.c (s7_bfd_score_elf_relocate_section): Likewise. | |
1184 | * elf32-sh.c (sh_elf_relocate_section): Likewise. | |
1185 | * elf32-tic6x.c (elf32_tic6x_relocate_section): Likewise. | |
1186 | * elf32-tilepro.c (tilepro_elf_relocate_section): Likewise. | |
1187 | * elf32-v850.c (v850_elf_relocate_section): Likewise. | |
1188 | * elf32-vax.c (elf_vax_relocate_section): Likewise. | |
1189 | * elf32-visium.c (visium_elf_relocate_section): Likewise. | |
1190 | * elf32-xc16x.c (elf32_xc16x_relocate_section): Likewise. | |
1191 | * elf32-xstormy16.c (xstormy16_elf_relocate_section): Likewise. | |
1192 | * elf32-xtensa.c (elf_xtensa_relocate_section): Likewise. | |
1193 | * elf32-z80.c (z80_elf_relocate_section): Likewise. | |
1194 | * elf64-alpha.c (elf64_alpha_relocate_section_r): Likewise. | |
1195 | (elf64_alpha_relocate_section): Likewise. | |
1196 | * elf64-bpf.c (bpf_elf_relocate_section): Likewise. | |
1197 | * elf64-hppa.c (elf64_hppa_relocate_section): Likewise. | |
1198 | * elf64-ia64-vms.c (elf64_ia64_relocate_section): Likewise. | |
1199 | * elf64-mmix.c (mmix_elf_relocate_section): Likewise. | |
1200 | * elf64-ppc.c (ppc64_elf_relocate_section): Likewise. | |
1201 | * elf64-s390.c (elf_s390_relocate_section): Likewise. | |
1202 | * elf64-x86-64.c (elf_x86_64_relocate_section): Likewise. | |
1203 | * elfnn-aarch64.c (elfNN_aarch64_relocate_section): Likewise. | |
1204 | * elfnn-ia64.c (elfNN_ia64_relocate_section): Likewise. | |
1205 | * elfnn-riscv.c (riscv_elf_relocate_section): Likewise. | |
1206 | * elfxx-mips.c (_bfd_mips_elf_relocate_section): Likewise. | |
1207 | * elfxx-mips.h (_bfd_mips_elf_relocate_section): Likewise. | |
1208 | * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Likewise. | |
1209 | * elfxx-sparc.h (_bfd_sparc_elf_relocate_section): Likewise. | |
1210 | * elfxx-tilegx.c (tilegx_elf_relocate_section): Likewise. | |
1211 | * elfxx-tilegx.h (tilegx_elf_relocate_section): Likewise. | |
1212 | ||
ff5b3e14 KS |
1213 | 2021-03-26 Keith Seitz <[email protected]> |
1214 | ||
1215 | * elfcore.h (_bfd_elf_core_find_build_id): Seek file | |
1216 | offset of program headers after calling elf_read_notes. | |
1217 | ||
f596b03f JB |
1218 | 2021-03-23 Jan Beulich <[email protected]> |
1219 | ||
1220 | * dwarf2.c (read_indexed_string): Rename index to idx. | |
1221 | ||
08dedd66 ML |
1222 | 2021-03-22 Martin Liska <[email protected]> |
1223 | ||
1224 | * bfd-in.h (startswith): Add startswith function. | |
1225 | (CONST_STRNEQ): Remove. | |
1226 | * bfd-in2.h (startswith): Regenerate with make headers. | |
1227 | * archive.c (bfd_slurp_armap): Replace usage of CONST_STRNEQ with startswith. | |
1228 | (_bfd_slurp_extended_name_table): Likewise. | |
1229 | * archive64.c (_bfd_archive_64_bit_slurp_armap): Likewise. | |
1230 | * bfd.c (bfd_get_sign_extend_vma): Likewise. | |
1231 | (bfd_convert_section_size): Likewise. | |
1232 | (bfd_convert_section_contents): Likewise. | |
1233 | * coff-stgo32.c (go32exe_create_stub): Likewise. | |
1234 | (go32exe_check_format): Likewise. | |
1235 | * coffcode.h (styp_to_sec_flags): Likewise. | |
1236 | (GNU_DEBUGALTLINK): Likewise. | |
1237 | * coffgen.c (_bfd_coff_section_already_linked): Likewise. | |
1238 | (coff_gc_sweep): Likewise. | |
1239 | (bfd_coff_gc_sections): Likewise. | |
1240 | * cofflink.c (coff_link_add_symbols): Likewise. | |
1241 | (process_embedded_commands): Likewise. | |
1242 | * compress.c (bfd_is_section_compressed_with_header): Likewise. | |
1243 | (bfd_init_section_decompress_status): Likewise. | |
1244 | * dwarf2.c (find_debug_info): Likewise. | |
1245 | (place_sections): Likewise. | |
1246 | * ecoff.c (_bfd_ecoff_slurp_armap): Likewise. | |
1247 | * elf-m10300.c (_bfd_mn10300_elf_size_dynamic_sections): Likewise. | |
1248 | * elf.c (_bfd_elf_make_section_from_shdr): Likewise. | |
1249 | (assign_section_numbers): Likewise. | |
1250 | (elfcore_grok_win32pstatus): Likewise. | |
1251 | * elf32-arm.c (cmse_scan): Likewise. | |
1252 | (elf32_arm_gc_mark_extra_sections): Likewise. | |
1253 | (elf32_arm_size_dynamic_sections): Likewise. | |
1254 | (is_arm_elf_unwind_section_name): Likewise. | |
1255 | * elf32-bfin.c (bfin_size_dynamic_sections): Likewise. | |
1256 | * elf32-cr16.c (_bfd_cr16_elf_size_dynamic_sections): Likewise. | |
1257 | * elf32-cris.c (elf_cris_size_dynamic_sections): Likewise. | |
1258 | * elf32-csky.c (csky_elf_size_dynamic_sections): Likewise. | |
1259 | * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Likewise. | |
1260 | * elf32-iq2000.c (iq2000_elf_check_relocs): Likewise. | |
1261 | * elf32-lm32.c (lm32_elf_size_dynamic_sections): Likewise. | |
1262 | * elf32-m32r.c (m32r_elf_size_dynamic_sections): Likewise. | |
1263 | * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise. | |
1264 | * elf32-metag.c (elf_metag_size_dynamic_sections): Likewise. | |
1265 | * elf32-msp430.c (msp430_elf_relax_delete_bytes): Likewise. | |
1266 | * elf32-nios2.c (nios2_elf32_size_dynamic_sections): Likewise. | |
1267 | * elf32-or1k.c (or1k_elf_size_dynamic_sections): Likewise. | |
1268 | * elf32-ppc.c (ppc_elf_size_dynamic_sections): Likewise. | |
1269 | * elf32-s390.c (elf_s390_size_dynamic_sections): Likewise. | |
1270 | * elf32-score.c (s3_bfd_score_elf_size_dynamic_sections): Likewise. | |
1271 | * elf32-score7.c (s7_bfd_score_elf_size_dynamic_sections): Likewise. | |
1272 | * elf32-sh.c (sh_elf_size_dynamic_sections): Likewise. | |
1273 | * elf32-tic6x.c (is_tic6x_elf_unwind_section_name): Likewise. | |
1274 | (elf32_tic6x_size_dynamic_sections): Likewise. | |
1275 | * elf32-vax.c (elf_vax_size_dynamic_sections): Likewise. | |
1276 | * elf32-xtensa.c (elf_xtensa_size_dynamic_sections): Likewise. | |
1277 | (xtensa_is_insntable_section): Likewise. | |
1278 | (xtensa_is_littable_section): Likewise. | |
1279 | (xtensa_is_proptable_section): Likewise. | |
1280 | (xtensa_property_section_name): Likewise. | |
1281 | (xtensa_callback_required_dependence): Likewise. | |
1282 | * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Likewise. | |
1283 | * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise. | |
1284 | * elf64-ia64-vms.c (is_unwind_section_name): Likewise. | |
1285 | (get_reloc_section): Likewise. | |
1286 | (elf64_ia64_size_dynamic_sections): Likewise. | |
1287 | (elf64_ia64_object_p): Likewise. | |
1288 | * elf64-mmix.c (mmix_elf_add_symbol_hook): Likewise. | |
1289 | * elf64-ppc.c (ppc64_elf_size_dynamic_sections): Likewise. | |
1290 | * elf64-s390.c (elf_s390_size_dynamic_sections): Likewise. | |
1291 | * elflink.c (elf_link_add_object_symbols): Likewise. | |
1292 | (_bfd_elf_gc_mark_extra_sections): Likewise. | |
1293 | (bfd_elf_parse_eh_frame_entries): Likewise. | |
1294 | (_bfd_elf_section_already_linked): Likewise. | |
1295 | * elfnn-aarch64.c (elfNN_aarch64_size_dynamic_sections): Likewise. | |
1296 | * elfnn-ia64.c (is_unwind_section_name): Likewise. | |
1297 | (elfNN_ia64_size_dynamic_sections): Likewise. | |
1298 | (elfNN_ia64_object_p): Likewise. | |
1299 | * elfxx-mips.c (FN_STUB_P): Likewise. | |
1300 | (CALL_STUB_P): Likewise. | |
1301 | (CALL_FP_STUB_P): Likewise. | |
1302 | (_bfd_mips_elf_section_from_shdr): Likewise. | |
1303 | (_bfd_mips_elf_fake_sections): Likewise. | |
1304 | (_bfd_mips_elf_size_dynamic_sections): Likewise. | |
1305 | (_bfd_mips_final_write_processing): Likewise. | |
1306 | (_bfd_mips_elf_final_link): Likewise. | |
1307 | * elfxx-sparc.c (_bfd_sparc_elf_size_dynamic_sections): Likewise. | |
1308 | * elfxx-x86.c (elf_i386_is_reloc_section): Likewise. | |
1309 | (elf_x86_64_is_reloc_section): Likewise. | |
1310 | * hpux-core.c (thread_section_p): Likewise. | |
1311 | * libcoff.h (bfd_pei_p): Likewise. | |
1312 | * linker.c (REAL): Likewise. | |
1313 | (unwrap_hash_lookup): Likewise. | |
1314 | (_bfd_generic_link_add_one_symbol): Likewise. | |
1315 | * mmo.c (mmo_internal_write_section): Likewise. | |
1316 | * osf-core.c (osf_core_core_file_p): Likewise. | |
1317 | * pef.c (bfd_pef_print_symbol): Likewise. | |
1318 | * pei-x86_64.c (pex64_print_all_pdata_sections): Likewise. | |
1319 | * som.c (som_slurp_symbol_table): Likewise. | |
1320 | (som_slurp_armap): Likewise. | |
1321 | * wasm-module.c (wasm_compute_custom_section_file_position): Likewise. | |
1322 | ||
2aaf2ce8 JB |
1323 | 2021-03-22 Jan Beulich <[email protected]> |
1324 | ||
1325 | * peXXigen.c (_bfd_XXi_swap_scnhdr_out): Add missing | |
1326 | language translation wrapping to _bfd_error_handler() | |
1327 | invocations. | |
1328 | ||
e9338841 AM |
1329 | 2021-03-21 Alan Modra <[email protected]> |
1330 | ||
1331 | * bfd-in.h (startswith): New inline. | |
1332 | (CONST_STRNEQ): Use startswith. | |
1333 | * bfd-in2.h: Regenerate. | |
1334 | ||
15407e7e AM |
1335 | 2021-03-20 Alan Modra <[email protected]> |
1336 | ||
1337 | PR 27590 | |
1338 | * elf.c (_bfd_elf_make_section_from_shdr): Remove SHF_EXCLUDE | |
1339 | test for .gnu.debuglto*. | |
1340 | ||
3818d4ab L |
1341 | 2021-03-18 H.J. Lu <[email protected]> |
1342 | ||
1343 | PR ld/27590 | |
15407e7e | 1344 | * elf.c (_bfd_elf_make_section_from_shdr): Treat |
3818d4ab L |
1345 | .gnu.debuglto_.debug_ section as debugging section unless it is |
1346 | marked with SHF_EXCLUDE. | |
1347 | * elflink.c (elf_create_symbuf): Revert commit 994b2513281. | |
1348 | (bfd_elf_match_symbols_in_sections): Ignore section symbols when | |
1349 | matching non-debugging sections or linkonce section with comdat | |
1350 | section. | |
1351 | ||
51f6e7a9 L |
1352 | 2021-03-18 H.J. Lu <[email protected]> |
1353 | ||
1354 | PR ld/27587 | |
1355 | * dwarf2.c (read_attribute_value): Check version >= 3 for | |
1356 | DW_FORM_ref_addr. | |
1357 | ||
012d4426 NC |
1358 | 2021-03-16 Nick Clifton <[email protected]> |
1359 | ||
1360 | * peXXigen.c (_bfd_XXi_swap_aux_out): Avoid potential buffer | |
1361 | overrun by using sizeof of the destination x_fname field as the | |
1362 | limit for a memcpy. | |
1363 | ||
80d49d6a KLC |
1364 | 2021-03-16 Kuan-Lin Chen <[email protected]> |
1365 | ||
1366 | * elfxx-riscv.c (riscv_std_z_ext_strtab): Add zba, zbb and zbc. | |
1367 | ||
1b2cb8e2 CC |
1368 | 2021-03-12 Clément Chigot <[email protected]> |
1369 | ||
1370 | * reloc.c (BFD_RELOC_PPC_TLS_LE, BFD_RELOC_PPC_TLS_IE, | |
1371 | BFD_RELOC_PPC_TLS_M, BFD_RELOC_PPC_TLS_ML, BFD_RELOC_PPC64_TLS_GD, | |
1372 | BFD_RELOC_PPC64_TLS_LD, BFD_RELOC_PPC64_TLS_LE, | |
1373 | BFD_RELOC_PPC64_TLS_IE, BFD_RELOC_PPC64_TLS_M, | |
1374 | BFD_RELOC_PPC64_TLS_ML): New relocations. | |
1375 | * bfd-in2.h: Regenerate. | |
1376 | * libbfd.h: Regenerate. | |
1377 | * coff-rs6000.c (xcoff_calculate_relocation): Call | |
1378 | xcoff_reloc_type_tls for TLS relocations. | |
1379 | (xcoff_howto_table): Implement TLS relocations. | |
1380 | (_bfd_xcoff_reloc_type_lookup): Add cases TLS relocations. | |
1381 | (xcoff_reloc_type_tls): New function. | |
1382 | * coff64-rs6000.c (xcoff_calculate_relocation): Likewise. | |
1383 | (xcoff_howto_table): Likewise. | |
1384 | (_bfd_xcoff_reloc_type_lookup): Likewise. | |
1385 | * coffcode.h (sec_to_styp_flags): Handle TLS sections. | |
1386 | (styp_to_sec_flags): Likewise. | |
1387 | (coff_compute_section_file_positions): Avoid file offset | |
1388 | optimisation for .data when the previous section is .tdata. | |
1389 | (coff_write_object_contents): Handle TLS sections. | |
1390 | * coffswap.h (coff_swap_aouthdr_out): Add support for | |
1391 | new fields in aouthdr. | |
1392 | * libxcoff.h (xcoff_reloc_type_tls): Add prototype. | |
1393 | * xcofflink.c (xcoff_link_add_symbols): Handle XMC_UL. | |
1394 | (xcoff_need_ldrel_p): Add cases for TLS relocations. | |
1395 | (xcoff_create_ldrel): Add l_symndx for TLS sections. | |
1396 | ||
4a403be0 CC |
1397 | 2021-03-12 Clément Chigot <[email protected]> |
1398 | ||
1399 | * reloc.c (BFD_RELOC_PPC_TOC16_HI, BFD_RELOC_PPC_TOC16_LO): | |
1400 | New relocations. | |
1401 | * bfd-in2.h: Regenerate. | |
1402 | * libbfd.h: Regenerate. | |
1403 | * coff-rs6000.c (xcoff_calculate_relocation): Call | |
1404 | xcoff_reloc_type_toc for R_TOCU and R_TOCL. | |
1405 | (xcoff_howto_table): Remove src_mask for TOC relocations. | |
1406 | Add R_TOCU and R_TOCL howtos. | |
1407 | (_bfd_xcoff_reloc_type_lookup): Add cases for | |
1408 | BFD_RELOC_PPC_TOC16_HI and BFD_RELOC_PPC_TOC16_LO. | |
1409 | (xcoff_reloc_type_toc): Compute the whole offset. | |
1410 | Implement R_TOCU and R_TOCL. | |
1411 | * coff64-rs6000.c (xcoff64_calculate_relocation): | |
1412 | Likewise. | |
1413 | (xcoff64_howto_table): Likewise. | |
1414 | (xcoff64_reloc_type_lookup): Likewise. | |
1415 | ||
2c1bef53 CC |
1416 | 2021-03-12 Clément Chigot <[email protected]> |
1417 | ||
1418 | * coff-rs6000.c (xcoff_calculate_relocation): Correct and | |
1419 | add new relocations. | |
1420 | (xcoff_howto_table): Likewise. | |
1421 | (xcoff_rtype2howto): Increase r_type maximum value. | |
1422 | (xcoff_ppc_relocate_section): Reuse predefined HOWTOs instead | |
1423 | of create a new one from scratch. Enable only some relocations | |
1424 | to have a changing r_size. | |
1425 | * coff64-rs6000.c (xcoff64_calculate_relocation): Likewise. | |
1426 | (xcoff64_howto_table): Likewise. | |
1427 | (xcoff64_rtype2howto): Likewise. | |
1428 | (xcoff64_ppc_relocate_section): Likewise. | |
1429 | * libxcoff.h (XCOFF_MAX_CALCULATE_RELOCATION): Fix value. | |
1430 | ||
0c929e83 CC |
1431 | 2021-03-12 Clément Chigot <[email protected]> |
1432 | ||
1433 | * coff64-rs6000.c (xcoff64_ppc_relocate_section): Move. | |
1434 | ||
6d4d9328 CC |
1435 | 2021-03-12 Clément Chigot <[email protected]> |
1436 | ||
1437 | * coff64-rs6000.c (xcoff64_write_object_contents): Remove. | |
1438 | * coffcode.h (coff_write_object_contents): Add bfd_mach_ppc_620 | |
1439 | support for o_cputype field. Avoid creating an empty a.out header | |
1440 | for XCOFF64. | |
1441 | ||
8aa2d023 CC |
1442 | 2021-03-12 Clément Chigot <[email protected]> |
1443 | ||
1444 | * coff64-rs6000.c (xcoff64_create_csect_from_smclas): Add | |
1445 | missing smclass. | |
1446 | ||
ebdcad3f NC |
1447 | 2021-03-11 Nelson Chu <[email protected]> |
1448 | ||
1449 | * elfnn-riscv.c (riscv_elf_link_hash_table): New boolean | |
1450 | restart_relax, used to check if we need to run the whole | |
1451 | relaxations from relax pass 0 to 2 again. | |
1452 | (riscv_elf_link_hash_table_create): Init restart_relax to FALSE. | |
1453 | (_bfd_riscv_relax_align): Remove obsolete sec_flg0 set. | |
1454 | (_bfd_riscv_relax_delete): Set again to TRUE if we do delete the code. | |
1455 | (bfd_elfNN_riscv_restart_relax_sections): New function. Called by | |
1456 | after_allocation to check if we need to run the whole relaxations again. | |
1457 | (_bfd_riscv_relax_section): We will only enter into the relax pass 3 | |
1458 | when the restart_relax is FALSE; At last set restart_relax to TRUE if | |
1459 | again is TRUE, too. | |
1460 | * elfxx-riscv.h (bfd_elf32_riscv_restart_relax_sections): Declaration. | |
1461 | (bfd_elf64_riscv_restart_relax_sections): Likewise. | |
1462 | ||
67b0f684 JB |
1463 | 2021-03-10 Jan Beulich <[email protected]> |
1464 | ||
1465 | * cofflink.c (_bfd_coff_write_global_sym): Range-check symbol | |
1466 | offset. | |
1467 | ||
2dfa8341 AM |
1468 | 2021-03-10 Alan Modra <[email protected]> |
1469 | Jan Beulich <[email protected]> | |
1470 | ||
1471 | * elf.c (bfd_elf_generic_reloc): Make references between debug | |
1472 | sections use section relative values. | |
1473 | ||
87fa7d56 JB |
1474 | 2021-03-09 Jan Beulich <[email protected]> |
1475 | ||
1476 | * peXXigen.c (_bfd_XXi_swap_scnhdr_out): Diagnose out of range RVA. | |
1477 | ||
8c0546e9 L |
1478 | 2021-03-05 H.J. Lu <[email protected]> |
1479 | ||
1480 | PR ld/27425 | |
1481 | PR ld/27432 | |
1482 | * bfd.c (_bfd_get_link_info): New function. | |
1483 | * elf-bfd.h (output_elf_obj_tdata): Add link_info. | |
1484 | (elf_link_info): New. | |
1485 | * libbfd-in.h (_bfd_get_link_info): New prototype. | |
1486 | * coff-x86_64.c (coff_amd64_reloc): Also subtract __ImageBase for | |
1487 | R_AMD64_IMAGEBASE when generating x86-64 ELF executable. | |
1488 | * pe-x86_64.c: Include "coff/internal.h" and "libcoff.h". | |
1489 | (pex64_link_add_symbols): New function. | |
1490 | (coff_bfd_link_add_symbols): New macro. | |
1491 | * libbfd.h: Regenerated. | |
1492 | ||
db6092f3 AB |
1493 | 2021-03-05 Craig Blackmore <[email protected]> |
1494 | Andrew Burgess <[email protected]> | |
1495 | ||
1496 | * elf-bfd.h (elfcore_write_riscv_csr): Declare. | |
1497 | * elf.c (elfcore_grok_riscv_csr): New function. | |
1498 | (elfcore_grok_note): Handle NT_RISCV_CSR. | |
1499 | (elfcore_write_riscv_csr): New function. | |
1500 | (elfcore_write_register_note): Handle '.reg-riscv-csr'. | |
1501 | ||
0897bb7d AB |
1502 | 2021-03-05 Craig Blackmore <[email protected]> |
1503 | Andrew Burgess <[email protected]> | |
1504 | ||
1505 | * elfnn-riscv.c (PRPSINFO_PR_FNAME_LENGTH): Define. | |
1506 | (PRPSINFO_PR_PSARGS_LENGTH): Define. | |
1507 | (riscv_write_core_note): New function. | |
1508 | (riscv_elf_grok_psinfo): Make use of two new length defines. | |
1509 | (elf_backend_write_core_note): Define. | |
1510 | ||
b63a5e38 AB |
1511 | 2021-03-05 Craig Blackmore <[email protected]> |
1512 | Andrew Burgess <[email protected]> | |
1513 | ||
1514 | * elf-bfd.h (elfcore_write_gdb_tdesc): Declare new function. | |
1515 | * elf.c (elfcore_grok_gdb_tdesc): New function. | |
1516 | (elfcore_grok_note): Handle NT_GDB_TDESC. | |
1517 | (elfcore_write_gdb_tdesc): New function. | |
1518 | (elfcore_write_register_note): Handle NT_GDB_TDESC. | |
1519 | ||
2017f387 NC |
1520 | 2021-03-05 Nick Clifton <[email protected]> |
1521 | ||
1522 | PR 27521 | |
1523 | * dwarf2.c (is_str_attr): Add DW_FORM_strx* forms. | |
1524 | (read_indexed_string): Placeholder function. | |
1525 | (read_attribute_value): Handle DW_FORM_strx* and DW_FORM_addrx* | |
1526 | forms. | |
1527 | ||
b01b5d9a AM |
1528 | 2021-03-05 Alan Modra <[email protected]> |
1529 | ||
1530 | * reloc.c (bfd_perform_relocation): Revert 2021-01-12 and | |
1531 | 2020-09-16 changes. | |
1532 | * coff-x86_64.c (coff_amd64_reloc): Do more or less the same | |
1533 | adjustments here instead. Separate pc-relative adjustments | |
1534 | from symbol related adjustments. Tidy comments and formatting. | |
1535 | ||
6b5465b9 JB |
1536 | 2021-03-04 Jan Beulich <[email protected]> |
1537 | ||
1538 | * coffcode.h (sec_to_styp_flags): Don't set IMAGE_SCN_LNK_* in | |
1539 | final PE images. | |
1540 | ||
0b7733b6 AM |
1541 | 2021-03-04 Alan Modra <[email protected]> |
1542 | ||
1543 | * rs6000-core.c (rs6000coff_core_p): Correct prototype. | |
1544 | ||
5789f845 AM |
1545 | 2021-03-03 Alan Modra <[email protected]> |
1546 | ||
1547 | PR 27500 | |
1548 | * elflink.c (_bfd_elf_gc_mark_rsec): Do special start/stop | |
1549 | processing not when start/stop symbol section is unmarked but | |
1550 | on first time a start/stop symbol is processed. | |
1551 | ||
dc83f2d2 AM |
1552 | 2021-03-03 Alan Modra <[email protected]> |
1553 | ||
1554 | * reloc.c: Include x86_64.h rather than internal.h. | |
1555 | ||
ca8f6bc6 NC |
1556 | 2021-03-02 Nick Clifton <[email protected]> |
1557 | ||
1558 | PR 27484 | |
1559 | * dwarf2.c (scan_unit_for_symbols): Scan twice, once to accumulate | |
1560 | function and variable tags and a second time to resolve their | |
1561 | attributes. | |
1562 | ||
211bcd01 NA |
1563 | 2021-03-02 Nick Alcock <[email protected]> |
1564 | ||
1565 | * elf-strtab.c (_bfd_elf_strtab_str): Skip strings with zero refcount. | |
1566 | ||
b80e421f AM |
1567 | 2021-03-02 Alan Modra <[email protected]> |
1568 | ||
1569 | PR 27451 | |
1570 | * elf64-ppc.c (ppc64_elf_gc_mark_dynamic_ref): Ignore synthesized | |
1571 | linker defined start/stop symbols when start_stop_gc. | |
1572 | ||
f5b9c288 AM |
1573 | 2021-03-02 Alan Modra <[email protected]> |
1574 | ||
1575 | * elf64-ppc.c (ppc64_elf_relocate_section): Don't optimise got | |
1576 | indirect to pc-relative or toc-relative for undefined symbols. | |
1577 | ||
8ee10e86 AM |
1578 | 2021-03-01 Alan Modra <[email protected]> |
1579 | Fangrui Song <[email protected]> | |
1580 | ||
1581 | * elflink.c (_bfd_elf_gc_mark_rsec): Ignore synthesized linker | |
1582 | defined start/stop symbols when start_stop_gc. | |
1583 | (bfd_elf_gc_mark_dynamic_ref_symbol): Likewise. | |
1584 | (bfd_elf_define_start_stop): Don't modify ldscript_def syms. | |
1585 | * linker.c (bfd_generic_define_start_stop): Likewise. | |
1586 | ||
bbaddd4b AM |
1587 | 2021-02-25 Alan Modra <[email protected]> |
1588 | ||
1589 | PR 27441 | |
1590 | * elf-bfd.h (struct elf_link_hash_entry): Add ref_ir_nonweak. | |
1591 | * elflink.c (elf_link_add_object_symbols): Set ref_ir_nonweak and | |
1592 | use when deciding an as-needed library should be loaded instead | |
1593 | of using the binding of the library definition. | |
1594 | ||
93af1b04 AM |
1595 | 2021-02-24 Alan Modra <[email protected]> |
1596 | ||
1597 | PR 27459 | |
1598 | * coff-stgo32.c (go32exe_check_format): Sanity check size of | |
1599 | header to avoid a buffer overflow. | |
1600 | ||
e9d18e06 AM |
1601 | 2021-02-22 Alan Modra <[email protected]> |
1602 | ||
1603 | * coff-rs6000.c (_bfd_xcoff_reloc_type_lookup): Remove BFD_RELOC_16. | |
1604 | * coff64-rs6000.c (xcoff64_reloc_type_lookup): Likewise. | |
1605 | ||
5a9f5403 NC |
1606 | 2021-02-19 Nelson Chu <[email protected]> |
1607 | ||
1608 | PR 27158 | |
1609 | * elfnn-riscv.c (perform_relocation): Updated encoding macros. | |
1610 | (_bfd_riscv_relax_call): Likewise. | |
1611 | (_bfd_riscv_relax_lui): Likewise. | |
1612 | * elfxx-riscv.c (howto_table): Likewise. | |
1613 | ||
3d73d29e NC |
1614 | 2021-02-18 Nelson Chu <[email protected]> |
1615 | ||
1616 | * Makefile.am: Added cpu-riscv.h. | |
1617 | * Makefile.in: Regenerated. | |
1618 | * po/SRC-POTFILES.in: Regenerated. | |
1619 | * cpu-riscv.h: Added to support spec versions controlling. | |
1620 | Also added extern arrays and functions for cpu-riscv.c. | |
1621 | (enum riscv_spec_class): Define all spec classes here uniformly. | |
1622 | (struct riscv_spec): Added for all specs. | |
1623 | (RISCV_GET_SPEC_CLASS): Added to reduce repeated code. | |
1624 | (RISCV_GET_SPEC_NAME): Likewise. | |
1625 | (RISCV_GET_ISA_SPEC_CLASS): Added to get ISA spec class. | |
1626 | (RISCV_GET_PRIV_SPEC_CLASS): Added to get privileged spec class. | |
1627 | (RISCV_GET_PRIV_SPEC_NAME): Added to get privileged spec name. | |
1628 | * cpu-riscv.c (struct priv_spec_t): Replaced with struct riscv_spec. | |
1629 | (riscv_get_priv_spec_class): Replaced with RISCV_GET_PRIV_SPEC_CLASS. | |
1630 | (riscv_get_priv_spec_name): Replaced with RISCV_GET_PRIV_SPEC_NAME. | |
1631 | (riscv_priv_specs): Moved below. | |
1632 | (riscv_get_priv_spec_class_from_numbers): Likewise, updated. | |
1633 | (riscv_isa_specs): Moved from include/opcode/riscv.h. | |
1634 | * elfnn-riscv.c: Included cpu-riscv.h. | |
1635 | (riscv_merge_attributes): Initialize in_priv_spec and out_priv_spec. | |
1636 | * elfxx-riscv.c: Included cpu-riscv.h and opcode/riscv.h. | |
1637 | (RISCV_UNKNOWN_VERSION): Moved from include/opcode/riscv.h. | |
1638 | * elfxx-riscv.h: Removed extern functions to cpu-riscv.h. | |
1639 | ||
b9b204b3 AM |
1640 | 2021-02-17 Alan Modra <[email protected]> |
1641 | ||
1642 | * wasm-module.c: Guard include of limits.h. | |
1643 | (CHAR_BIT): Provide backup define. | |
1644 | (wasm_read_leb128): Use CHAR_BIT to size "result" in bits. | |
1645 | Correct signed overflow checking. | |
1646 | ||
0d6aab77 NC |
1647 | 2021-02-17 Nelson Chu <[email protected]> |
1648 | ||
1649 | PR 27200 | |
1650 | * elfnn-riscv.c (_bfd_riscv_elf_merge_private_bfd_data): Delay | |
1651 | copying the elf flags from input BFD to output BFD, until we have | |
1652 | checked if the input BFD has no code section or not. Also fix the | |
1653 | problem that we only check the first section rather than the entire | |
1654 | sections for input BFD. | |
1655 | ||
7b54cadd AM |
1656 | 2021-02-16 Alan Modra <[email protected]> |
1657 | ||
1658 | * libbfd.c (_bfd_read_unsigned_leb128): Avoid excessive shift. | |
1659 | (_bfd_safe_read_leb128, _bfd_read_signed_leb128): Likewise. | |
1660 | ||
8c674061 JB |
1661 | 2021-02-15 Jan Beulich <[email protected]> |
1662 | ||
1663 | * doc/Makefile.am: Replace "cp -p" by "$(LN_S)". | |
1664 | * doc/Makefile.in: Re-generate. | |
1665 | ||
1781a9d0 AM |
1666 | 2021-02-15 Alan Modra <[email protected]> |
1667 | ||
1668 | * elf32-nds32.c (nds32_get_section_contents): Replace | |
1669 | bfd_malloc_and_get_section with bfd_get_full_section_contents. | |
1670 | (nds32_elf_relax_delete_blanks): Init contents. | |
1671 | (nds32_elf_relax_section, nds32_relax_fp_as_gp): Likewise. | |
1672 | ||
8b78cbec AM |
1673 | 2021-02-15 Alan Modra <[email protected]> |
1674 | ||
1675 | * coff-alpha.c (alpha_ecoff_get_relocated_section_contents): Use | |
1676 | bfd_get_full_section_contents. | |
1677 | ||
d7a7af8f AM |
1678 | 2021-02-14 Alan Modra <[email protected]> |
1679 | ||
1680 | * elfxx-mips.c (_bfd_elf_mips_get_relocated_section_contents): Apply | |
1681 | all fixes to bfd_generic_get_relocated_section_contents since this | |
1682 | function was split out. | |
1683 | ||
234b98ce AM |
1684 | 2021-02-11 Alan Modra <[email protected]> |
1685 | ||
1686 | * config.bfd: Remove ia64 from obsolete list. | |
1687 | ||
769c253f AM |
1688 | 2021-02-11 Alan Modra <[email protected]> |
1689 | ||
1690 | PR ld/22269 | |
1691 | * elfnn-ia64.c: Revert 2017-10-14 git commit db41f6eb5234. | |
1692 | ||
31c711a2 AM |
1693 | 2021-02-11 Alan Modra <[email protected]> |
1694 | ||
1695 | PR 27294 | |
1696 | * elf32-avr.c (avr_elf32_load_records_from_section): Use | |
1697 | bfd_malloc_and_get_section. Use bfd_byte* vars and remove then | |
1698 | unnecessary casts. | |
1699 | ||
6db658c5 AM |
1700 | 2021-02-11 Alan Modra <[email protected]> |
1701 | ||
1702 | PR 27291 | |
1703 | * section.c (bfd_get_section_contents): Avoid possible overflow | |
1704 | when range checking offset and count. | |
1705 | (bfd_set_section_contents): Likewise. | |
1706 | ||
95148614 NA |
1707 | 2021-02-03 Nick Alcock <[email protected]> |
1708 | ||
1709 | * configure.ac (SHARED_LIBADD): Remove explicit -lintl population in | |
1710 | favour of LIBINTL. | |
1711 | * configure: Regenerated. | |
1712 | ||
a57d1773 AM |
1713 | 2021-02-09 Alan Modra <[email protected]> |
1714 | ||
1715 | * config.bfd (arm*-*-symbianelf*): Move from obsolete to removed. | |
1716 | * configure.ac: Delete symbian entries. | |
1717 | * elf-bfd.h (enum elf_target_os): Delete is_symbian. | |
1718 | * elf32-arm.c: Remove symbian support. Formatting. | |
1719 | * targets.c: Delete symbian entries. | |
1720 | * configure: Regenerate. | |
1721 | ||
1a2f1b54 L |
1722 | 2021-02-04 H.J. Lu <[email protected]> |
1723 | ||
1724 | PR ld/19609 | |
1725 | * elf64-x86-64.c (elf_x86_64_relocate_section): Provide more | |
1726 | info when failed to convert GOTPCREL relocation. | |
1727 | ||
24075dcc NC |
1728 | 2021-02-04 Nelson Chu <[email protected]> |
1729 | ||
1730 | * elfxx-riscv.c (riscv_parse_prefixed_ext): Removed zb*. | |
1731 | ||
7d409ac0 AM |
1732 | 2021-02-04 Alan Modra <[email protected]> |
1733 | ||
1734 | PR 27311 | |
1735 | * elflink.c (elf_link_add_object_symbols): Don't pull in as-needed | |
1736 | libraries for IR references on pass over libraries after LTO | |
1737 | recompilation. | |
1738 | ||
f01fb44c AM |
1739 | 2021-02-03 Alan Modra <[email protected]> |
1740 | ||
1741 | PR 27311 | |
1742 | * elflink.c (_bfd_elf_add_default_symbol): Revert last two changes. | |
1743 | (elf_link_add_object_symbols): Here too. Don't pull in as-needed | |
1744 | libraries when H is an indirect symbol after calling | |
1745 | _bfd_elf_add_default_symbol. | |
1746 | ||
69551367 AM |
1747 | 2021-02-03 Alan Modra <[email protected]> |
1748 | ||
1749 | PR 27311 | |
1750 | * elflink.c (_bfd_elf_add_default_symbol): Clear override when | |
1751 | undecorated symbol will have a different version. | |
1752 | ||
9918bff7 AM |
1753 | 2021-02-02 Alan Modra <[email protected]> |
1754 | ||
1755 | PR 27311 | |
1756 | * elflink.c (_bfd_elf_add_default_symbol): Add override parameter. | |
1757 | Use when handling default versioned symbol. Rename existing | |
1758 | override variable to nondef_override and use for non-default | |
1759 | versioned symbol. | |
1760 | (elf_link_add_object_symbols): Adjust call to suit. Don't | |
1761 | pull in as-needed libraries when override is set. | |
1762 | ||
1f568f9a EH |
1763 | 2021-02-01 Emery Hemingway <[email protected]> |
1764 | ||
1765 | * config.bfd: Add *-*-genode* as a target for AArch64 and x86. | |
1766 | ||
34c10233 EV |
1767 | 2021-02-01 Egor Vishnyakov <[email protected]> |
1768 | ||
1769 | PR 27254 | |
1770 | * elf32-rl78.c (rl78_elf_relocate_section): Fix calculation of | |
1771 | offset for the R_RL78_RH_SADDR relocation. | |
1772 | ||
c4566785 AM |
1773 | 2021-01-29 Alan Modra <[email protected]> |
1774 | ||
1775 | PR 27271 | |
1776 | * elflink.c (bfd_elf_link_record_dynamic_symbol): Don't segfault | |
1777 | on symbols defined in absolute or other special sections. | |
1778 | ||
def97fb9 AM |
1779 | 2021-01-28 Alan Modra <[email protected]> |
1780 | ||
1781 | PR 27259 | |
1782 | * elflink.c (_bfd_elf_gc_mark_extra_sections): Use linker_mark to | |
1783 | prevent endless looping of linked-to sections. | |
1784 | ||
4cb1265b MS |
1785 | 2020-12-17 Mihails Strasuns <[email protected]> |
1786 | ||
1787 | * bfd-elf.h (elfcore_write_file_note): New function. | |
1788 | * elf.c (elfcore_write_file_note): New function. | |
1789 | ||
4287950e AM |
1790 | 2021-01-26 Alan Modra <[email protected]> |
1791 | ||
1792 | * elf32-ft32.c (ft32_reloc_type_lookup): Don't miss ft32_reloc_map[0]. | |
1793 | ||
940d0202 L |
1794 | 2021-01-24 H.J. Lu <[email protected]> |
1795 | ||
1796 | PR binutils/27231 | |
1797 | * dwarf2.c (read_rnglists): Ignore empty range when parsing line | |
1798 | number tables. | |
1799 | ||
18454c15 L |
1800 | 2021-01-23 H.J. Lu <[email protected]> |
1801 | ||
1802 | PR binutils/27231 | |
1803 | * dwarf2.c (read_rnglists): Advance rngs_ptr after | |
1804 | _bfd_safe_read_leb128 when parsing DW_RLE_offset_pair. | |
1805 | ||
4bd7c902 AM |
1806 | 2021-01-20 Alan Modra <[email protected]> |
1807 | ||
1808 | * elf32-ppc.c: Delete outdated comment. | |
1809 | (TARGET_KEEP_UNUSED_SECTION_SYMBOLS): Define. | |
1810 | * elf64-ppc.c (TARGET_KEEP_UNUSED_SECTION_SYMBOLS): Define. | |
1811 | ||
8bd10d6b AM |
1812 | 2021-01-20 Alan Modra <[email protected]> |
1813 | ||
1814 | * elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Don't assume | |
1815 | section symbols are present. | |
1816 | ||
30845f11 AM |
1817 | 2021-01-19 Alan Modra <[email protected]> |
1818 | ||
1819 | * elf64-ppc.c (elf_hash_entry): New inline function. Use | |
1820 | throughout to replace casts. | |
1821 | (branch_reloc_hash_match): Remove const from params. | |
1822 | (use_local_plt): New function. | |
1823 | (allocate_dynrelocs, ppc_build_one_stub, ppc_size_one_stub), | |
1824 | (build_global_entry_stubs_and_plt, ppc64_elf_relocate_section): | |
1825 | Use use_local_plt. | |
1826 | * elf32-ppc.c (use_local_plt): New function. | |
1827 | (allocate_dynrelocs, ppc_elf_relocate_section), | |
1828 | (write_global_sym_plt): Use use_local_plt. | |
1829 | ||
994b2513 L |
1830 | 2021-01-17 H.J. Lu <[email protected]> |
1831 | ||
1832 | PR ld/27193 | |
1833 | * elflink.c (elf_create_symbuf): Also ignore section symbols. | |
1834 | ||
75a933f3 L |
1835 | 2021-01-16 H.J. Lu <[email protected]> |
1836 | ||
1837 | PR ld/23169 | |
1838 | * elfxx-x86.c (_bfd_x86_elf_link_fixup_ifunc_symbol): Don't | |
1839 | check pointer_equality_needed. | |
1840 | ||
68b00778 L |
1841 | 2021-01-15 H.J. Lu <[email protected]> |
1842 | ||
1843 | * elf-linker-x86.h (elf_linker_x86_params): Add | |
1844 | report_relative_reloc. | |
1845 | * elf32-i386.c (elf_i386_relocate_section): Call | |
1846 | _bfd_x86_elf_link_report_relative_reloc to report relative | |
1847 | relocations for -z report-relative-reloc. | |
1848 | (elf_i386_finish_dynamic_symbol): Likewse. | |
1849 | * elf64-x86-64.c (elf_x86_64_relocate_section): Likewse. | |
1850 | (elf_x86_64_finish_dynamic_symbol): Likewse. | |
1851 | * elfxx-x86.c (_bfd_x86_elf_link_report_relative_reloc): New | |
1852 | function. | |
1853 | * elfxx-x86.h (_bfd_x86_elf_link_report_relative_reloc): New | |
1854 | prototype. | |
1855 | ||
ad92f33d AM |
1856 | 2021-01-16 Alan Modra <[email protected]> |
1857 | ||
1858 | * compress.c (decompress_contents): Tidy inflateEnd result test. | |
1859 | ||
eb6e6af8 AM |
1860 | 2021-01-16 Alan Modra <[email protected]> |
1861 | ||
1862 | PR 26002 | |
1863 | * elflink.c (elf_link_output_extsym): Use version 1 in | |
1864 | .gnu.version for undefined unversioned symbols. | |
1865 | ||
4bb5732e NC |
1866 | 2021-01-15 Nelson Chu <[email protected]> |
1867 | ||
1868 | * elfnn-riscv.c (riscv_relax_delete_bytes): Fixed the indent that | |
1869 | caused the by previous commit accidentally. | |
1870 | ||
1942a048 NC |
1871 | 2021-01-15 Nelson Chu <[email protected]> |
1872 | ||
1873 | * elfnn-riscv.c: Indent, labels and GNU coding standards tidy, | |
1874 | also aligned the code. | |
1875 | ||
b800637e NC |
1876 | 2021-01-15 Nelson Chu <[email protected]> |
1877 | ||
1878 | * elfnn-riscv.c (riscv_merge_attributes): Fix typos of messages. | |
1879 | ||
dcd709e0 NC |
1880 | 2021-01-15 Nelson Chu <[email protected]> |
1881 | ||
1882 | * elfnn-riscv.c: Comments tidy and improvement. | |
1883 | * elfxx-riscv.c: Likewise. | |
1884 | * elfxx-riscv.h: Likewise. | |
1885 | ||
8ca9c7eb L |
1886 | 2021-01-14 H.J. Lu <[email protected]> |
1887 | ||
1888 | PR ld/26688 | |
1889 | * elf32-bfin.c (bfinfdpic_relocate_section): Skip non SEC_ALLOC | |
1890 | section for R_BFIN_FUNCDESC. | |
1891 | ||
7e0d77ef NC |
1892 | 2021-01-14 Nick Clifton <[email protected]> |
1893 | ||
1894 | * elf.c (elfcore_grok_win32pstatus): Check for a note type of 0. | |
1895 | ||
5347ed60 AM |
1896 | 2021-01-13 Alan Modra <[email protected]> |
1897 | ||
1898 | * Makefile.in: Regenerate. | |
1899 | * doc/Makefile.in: Regenerate. | |
1900 | ||
b209b5a6 AM |
1901 | 2021-01-13 Alan Modra <[email protected]> |
1902 | ||
1903 | PR 27160 | |
1904 | * section.c (struct bfd_section): Remove pattern field. | |
1905 | (BFD_FAKE_SECTION): Adjust to suit. | |
1906 | * bfd-in2.h: Regenerate. | |
1907 | * elflink.c (compare_link_order, elf_fixup_link_order): Delete. | |
1908 | (bfd_elf_final_link): Don't call elf_fixup_link_order. | |
1909 | ||
d546b610 L |
1910 | 2021-01-12 H.J. Lu <[email protected]> |
1911 | ||
1912 | PR binutils/26792 | |
1913 | * configure.ac: Use GNU_MAKE_JOBSERVER. | |
1914 | * aclocal.m4: Regenerated. | |
1915 | * configure: Likewise. | |
1916 | ||
c2e9a4a3 L |
1917 | 2021-01-12 H.J. Lu <[email protected]> |
1918 | ||
1919 | PR ld/27171 | |
1920 | * reloc.c (bfd_perform_relocation): Adjust R_AMD64_DIR64 and | |
1921 | R_AMD64_DIR32 relocations for PE/x86-64 inputs. | |
1922 | ||
83b33c6c L |
1923 | 2021-01-11 H.J. Lu <[email protected]> |
1924 | ||
1925 | PR ld/27173 | |
1926 | * configure: Regenerated. | |
1927 | ||
a8aa72b9 NC |
1928 | 2021-01-11 Nick Clifton <[email protected]> |
1929 | ||
1930 | * po/fr.po: Updated French translation. | |
1931 | * po/pt.po: Updated Portuguese translation. | |
1932 | * po/sr.po: Updated Serbian translation. | |
1933 | * po/uk.po: Updated Ukranian translation. | |
1934 | ||
a4966cd9 L |
1935 | 2021-01-09 H.J. Lu <[email protected]> |
1936 | ||
1937 | * configure: Regenerated. | |
1938 | ||
0a94990b L |
1939 | 2021-01-09 H.J. Lu <[email protected]> |
1940 | ||
1941 | PR ld/27166 | |
1942 | * elfxx-x86.c (_bfd_x86_elf_merge_gnu_properties): Handle | |
1943 | -z lam-u48 and -z lam-u57. | |
1944 | ||
573fe3fb NC |
1945 | 2021-01-09 Nick Clifton <[email protected]> |
1946 | ||
1947 | * version.m4: Change to 2.36.50. | |
1948 | * configure: Regenerate. | |
1949 | * po/bfd.pot: Regenerate. | |
1950 | ||
055bc77a NC |
1951 | 2021-01-09 Nick Clifton <[email protected]> |
1952 | ||
1953 | * 2.36 release branch crated. | |
1954 | ||
ba9e922f L |
1955 | 2021-01-08 H.J. Lu <[email protected]> |
1956 | ||
1957 | * elfxx-x86.c (_bfd_x86_elf_link_setup_gnu_properties): Also set | |
1958 | LAM_U57 when setting LAM_U48. | |
1959 | ||
b1b29aa5 L |
1960 | 2021-01-08 H.J. Lu <[email protected]> |
1961 | ||
1962 | PR ld/26256 | |
1963 | PR ld/27160 | |
1964 | * elflink.c (elf_fixup_link_order): Verify that fixing up | |
1965 | SHF_LINK_ORDER doesn't increase the output section size. | |
1966 | ||
64307045 AM |
1967 | 2021-01-09 Alan Modra <[email protected]> |
1968 | ||
1969 | * configure: Regenerate. | |
1970 | ||
f4782128 ST |
1971 | 2021-01-07 Samuel Thibault <[email protected]> |
1972 | ||
1973 | * configure: Regenerate. | |
1974 | ||
d1bcae83 L |
1975 | 2021-01-07 H.J. Lu <[email protected]> |
1976 | ||
1977 | PR 27109 | |
1978 | * aix386-core.c (core_aix386_vec): Initialize | |
1979 | keep_unused_section_symbol to TARGET_KEEP_UNUSED_SECTION_SYMBOLS. | |
1980 | * aout-target.h (MY (vec)): Likewise. | |
1981 | * binary.c (binary_vec): Likewise. | |
1982 | * cisco-core.c (core_cisco_be_vec): Likewise. | |
1983 | (core_cisco_le_vec): Likewise. | |
1984 | * coff-alpha.c (alpha_ecoff_le_vec): Likewise. | |
1985 | * coff-i386.c (TARGET_SYM): Likewise. | |
1986 | (TARGET_SYM_BIG): Likewise. | |
1987 | * coff-ia64.c (TARGET_SYM): Likewise. | |
1988 | * coff-mips.c (mips_ecoff_le_vec): Likewise. | |
1989 | (mips_ecoff_be_vec): Likewise. | |
1990 | (mips_ecoff_bele_vec): Likewise. | |
1991 | * coff-rs6000.c (rs6000_xcoff_vec): Likewise. | |
1992 | (powerpc_xcoff_vec): Likewise. | |
1993 | * coff-sh.c (sh_coff_small_vec): Likewise. | |
1994 | (sh_coff_small_le_vec): Likewise. | |
1995 | * coff-tic30.c (tic30_coff_vec): Likewise. | |
1996 | * coff-tic54x.c (tic54x_coff0_vec): Likewise. | |
1997 | (tic54x_coff0_beh_vec): Likewise. | |
1998 | (tic54x_coff1_vec): Likewise. | |
1999 | (tic54x_coff1_beh_vec): Likewise. | |
2000 | (tic54x_coff2_vec): Likewise. | |
2001 | (tic54x_coff2_beh_vec): Likewise. | |
2002 | * coff-x86_64.c (TARGET_SYM): Likewise. | |
2003 | (TARGET_SYM_BIG): Likewise. | |
2004 | * coff64-rs6000.c (rs6000_xcoff64_vec): Likewise. | |
2005 | (rs6000_xcoff64_aix_vec): Likewise. | |
2006 | * coffcode.h (CREATE_BIG_COFF_TARGET_VEC): Likewise. | |
2007 | (CREATE_BIGHDR_COFF_TARGET_VEC): Likewise. | |
2008 | (CREATE_LITTLE_COFF_TARGET_VEC): Likewise. | |
2009 | * elfxx-target.h (TARGET_BIG_SYM): Likewise. | |
2010 | (TARGET_LITTLE_SYM): Likewise. | |
2011 | * hppabsd-core.c (core_hppabsd_vec): Likewise. | |
2012 | * hpux-core.c (core_hpux_vec): Likewise. | |
2013 | * i386msdos.c (i386_msdos_vec): Likewise. | |
2014 | * ihex.c (ihex_vec): Likewise. | |
2015 | * irix-core.c (core_irix_vec): Likewise. | |
2016 | * mach-o-target.c (TARGET_NAME): Likewise. | |
2017 | * mmo.c (mmix_mmo_vec): Likewise. | |
2018 | * netbsd-core.c (core_netbsd_vec): Likewise. | |
2019 | * osf-core.c (core_osf_vec): Likewise. | |
2020 | * pdp11.c (MY (vec)): Likewise. | |
2021 | * pef.c (pef_vec): Likewise. | |
2022 | (pef_xlib_vec): Likewise. | |
2023 | * plugin.c (plugin_vec): Likewise. | |
2024 | * ppcboot.c (powerpc_boot_vec): Likewise. | |
2025 | * ptrace-core.c (core_ptrace_vec): Likewise. | |
2026 | * sco5-core.c (core_sco5_vec): Likewise. | |
2027 | * som.c (hppa_som_vec): Likewise. | |
2028 | * srec.c (srec_vec): Likewise. | |
2029 | (symbolsrec_vec): Likewise. | |
2030 | * tekhex.c (tekhex_vec): Likewise. | |
2031 | * trad-core.c (core_trad_vec): Likewise. | |
2032 | * verilog.c (verilog_vec): Likewise. | |
2033 | * vms-alpha.c (alpha_vms_vec): Likewise. | |
2034 | * vms-lib.c (alpha_vms_lib_txt_vec): Likewise. | |
2035 | * wasm-module.c (wasm_vec): Likewise. | |
2036 | * xsym.c (sym_vec): Likewise. | |
2037 | * elf.c (ignore_section_sym): Return TRUE if BSF_SECTION_SYM_USED | |
2038 | isn't set. | |
2039 | (elf_map_symbols): Don't include ignored section symbols. | |
2040 | * elfcode.h (elf_slurp_symbol_table): Also set | |
2041 | BSF_SECTION_SYM_USED on STT_SECTION symbols. | |
2042 | * elflink.c (bfd_elf_final_link): Generated section symbols only | |
2043 | when emitting relocations or reqired. | |
2044 | * elfxx-x86.h (TARGET_KEEP_UNUSED_SECTION_SYMBOLS): New. | |
2045 | * syms.c (BSF_SECTION_SYM_USED): New. | |
2046 | * targets.c (TARGET_KEEP_UNUSED_SECTION_SYMBOLS): New. | |
2047 | (bfd_target): Add keep_unused_section_symbols. | |
2048 | (bfd_keep_unused_section_symbols): New. | |
2049 | * bfd-in2.h: Regenerated. | |
2050 | ||
17d60030 NC |
2051 | 2021-01-07 Nick Clifton <[email protected]> |
2052 | ||
2053 | PR 25713 | |
2054 | * bfdio.c (_bfd_real_fopen): For Win32 convert relative paths to | |
2055 | absolute paths and check to see if they are longer than MAX_PATH. | |
2056 | ||
aa881ecd PT |
2057 | 2021-01-07 Philipp Tomsich <[email protected]> |
2058 | ||
2059 | * elfxx-riscv.c (riscv_std_z_ext_strtab): Added zihintpause. | |
2060 | ||
2652cfad CXW |
2061 | 2021-01-07 Claire Xenia Wolf <[email protected]> |
2062 | Jim Wilson <[email protected]> | |
2063 | Andrew Waterman <[email protected]> | |
2064 | Maxim Blinov <[email protected]> | |
2065 | Kito Cheng <[email protected]> | |
2066 | Nelson Chu <[email protected]> | |
2067 | ||
2068 | * elfxx-riscv.c (riscv_std_z_ext_strtab): Added zba, zbb and zbc. | |
2069 | ||
d4e57b87 L |
2070 | 2021-01-06 H.J. Lu <[email protected]> |
2071 | ||
2072 | * elf32-bfin.c (bfin_check_relocs): Check bfd_link_hash_indirect. | |
2073 | (bfinfdpic_check_relocs): Likewise. | |
2074 | ||
599c86c4 AM |
2075 | 2021-01-06 Alan Modra <[email protected]> |
2076 | ||
2077 | * elf32-score.c (s3_bfd_score_info_to_howto): Report an error | |
2078 | on unknown r_type. | |
2079 | * elf32-score7.c (s7_bfd_score_info_to_howto): Likewise. | |
2080 | ||
3677b729 AM |
2081 | 2021-01-06 Alan Modra <[email protected]> |
2082 | ||
2083 | * config.bfd (sparc-*-solaris2*): Add sparc_elf32_vec. | |
2084 | (sparc64-*-solaris2*): Add sparc_elf64_vec and | |
2085 | sparc_elf32_vec. | |
2086 | ||
fbc09e7a MC |
2087 | 2021-01-06 Marcus Comstedt <[email protected]> |
2088 | ||
2089 | * config.bfd: Added targets riscv64be*-*-*, riscv32be*-*-* and | |
2090 | riscvbe*-*-*. Also added riscv_elf[32|64]_be_vec. | |
2091 | * configure.ac: Handle riscv_elf[32|64]_be_vec. | |
2092 | * configure: Regenerate. | |
2093 | * elfnn-riscv.c: Include <limits.h> and define CHAR_BIT for | |
2094 | riscv_is_insn_reloc. | |
2095 | (riscv_get_insn): RISC-V instructions are always little endian, but | |
2096 | bfd_get may be used for big-endian, so add new riscv_get_insn to handle | |
2097 | the insturctions. | |
2098 | (riscv_put_insn): Likewsie. | |
2099 | (riscv_is_insn_reloc): Check if we are relocaing an instruction. | |
2100 | (perform_relocation): Call riscv_is_insn_reloc to decide if we should | |
2101 | use riscv_[get|put]_insn or bfd_[get|put]. | |
2102 | (riscv_zero_pcrel_hi_reloc): Use riscv_[get|put]_insn, bfd_[get|put]l32 | |
2103 | or bfd_[get|put]l16 for code. | |
2104 | (riscv_elf_relocate_section): Likewise. | |
2105 | (riscv_elf_finish_dynamic_symbol): Likewise. | |
2106 | (riscv_elf_finish_dynamic_sections): Likewise. | |
2107 | (_bfd_riscv_relax_call): Likewise. | |
2108 | (_bfd_riscv_relax_lui): Likewise. | |
2109 | (_bfd_riscv_relax_align): Likewise. | |
2110 | (_bfd_riscv_relax_pc): Likewise. | |
2111 | (riscv_elf_object_p): Handled for big endian. | |
2112 | (TARGET_BIG_SYM, TARGET_BIG_NAME): Defined. | |
2113 | * targets.c: Add riscv_elf[32|64]_be_vec. | |
2114 | (_bfd_target_vector): Likewise. | |
2115 | ||
c8bad65e AM |
2116 | 2021-01-05 Alan Modra <[email protected]> |
2117 | ||
2118 | * elflink.c (bfd_elf_link_record_dynamic_symbol): Handle no_export | |
2119 | for relocatable executable. | |
2120 | ||
de6a7ee4 AM |
2121 | 2021-01-05 Alan Modra <[email protected]> |
2122 | ||
2123 | * vms-alpha.c (_bfd_vms_slurp_egsd): Read flags after size check. | |
2124 | ||
18b98722 NC |
2125 | 2021-01-05 Nelson Chu <[email protected]> |
2126 | ||
2127 | * elfnn-riscv.c (allocate_dynrelocs): When we are generating pde, | |
2128 | make sure gp symbol is output as a dynamic symbol. | |
2129 | ||
cd6d537c L |
2130 | 2021-01-04 H.J. Lu <[email protected]> |
2131 | ||
2132 | PR ld/26256 | |
2133 | * elflink.c (compare_link_order): Place unordered sections before | |
2134 | ordered sections. | |
2135 | (elf_fixup_link_order): Add a link info argument. Allow mixed | |
2136 | ordered and unordered input sections for non-relocatable link. | |
2137 | Sort the consecutive bfd_indirect_link_order sections with the | |
2138 | same pattern. Change the offsets of the bfd_indirect_link_order | |
2139 | sections only. | |
2140 | (bfd_elf_final_link): Pass info to elf_fixup_link_order. | |
2141 | * section.c (bfd_section): Add pattern. | |
2142 | (BFD_FAKE_SECTION): Initialize pattern to NULL. | |
2143 | * bfd-in2.h: Regenerated. | |
2144 | ||
dbb078f6 AF |
2145 | 2021-01-04 Alexander Fedotov <[email protected]> |
2146 | ||
2147 | * elf32-arm.c (elf32_arm_print_private_bfd_data): Prefix hex value | |
2148 | of private flags with 0x. | |
2149 | * elfnn-aarch64.c (elfNN_aarch64_print_private_bfd_data): Likewise. | |
2150 | ||
5b4293ba AM |
2151 | 2021-01-04 Alan Modra <[email protected]> |
2152 | ||
2153 | PR 26822 | |
2154 | * elflink.c (elf_link_input_bfd): Use the file base name in | |
2155 | linker generated STT_FILE symbols. | |
2156 | ||
4c0e540e NC |
2157 | 2021-01-04 Nelson Chu <[email protected]> |
2158 | ||
2159 | * elfxx-riscv.c (riscv_compare_subsets): Removed static. | |
2160 | * elfxx-riscv.h: Add declaration. | |
2161 | * elfnn-riscv.c (riscv_merge_multi_letter_ext): Use | |
2162 | riscv_compare_subsets to check the orders. | |
2163 | (riscv_skip_prefix): Removed. | |
2164 | (riscv_prefix_cmp): Removed. | |
2165 | ||
e9cf3691 AM |
2166 | 2021-01-04 Alan Modra <[email protected]> |
2167 | ||
2168 | PR 26741 | |
2169 | * elfxx-riscv.c (riscv_parse_prefixed_ext): Free subset after | |
2170 | calculating subset version length. | |
2171 | ||
f9a6a8f0 AM |
2172 | 2021-01-01 Nicolas Boulenguez <[email protected]> |
2173 | ||
2174 | * xcofflink.c: Correct spelling in comments. | |
2175 | ||
250d07de AM |
2176 | 2021-01-01 Alan Modra <[email protected]> |
2177 | ||
2178 | Update year range in copyright notice of all files. | |
2179 | ||
c2795844 | 2180 | For older changes see ChangeLog-2020 |
3499769a | 2181 | \f |
a2c58332 | 2182 | Copyright (C) 2021-2022 Free Software Foundation, Inc. |
3499769a AM |
2183 | |
2184 | Copying and distribution of this file, with or without modification, | |
2185 | are permitted in any medium without royalty provided the copyright | |
2186 | notice and this notice are preserved. | |
2187 | ||
2188 | Local Variables: | |
2189 | mode: change-log | |
2190 | left-margin: 8 | |
2191 | fill-column: 74 | |
2192 | version-control: never | |
2193 | End: |