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