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