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