]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - bfd/ChangeLog
bfd/binutils: support for gdb target descriptions in the core file
[thirdparty/binutils-gdb.git] / bfd / ChangeLog
1 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
2 Andrew Burgess <andrew.burgess@embecosm.com>
3
4 * elf-bfd.h (elfcore_write_gdb_tdesc): Declare new function.
5 * elf.c (elfcore_grok_gdb_tdesc): New function.
6 (elfcore_grok_note): Handle NT_GDB_TDESC.
7 (elfcore_write_gdb_tdesc): New function.
8 (elfcore_write_register_note): Handle NT_GDB_TDESC.
9
10 2021-03-05 Nick Clifton <nickc@redhat.com>
11
12 PR 27521
13 * dwarf2.c (is_str_attr): Add DW_FORM_strx* forms.
14 (read_indexed_string): Placeholder function.
15 (read_attribute_value): Handle DW_FORM_strx* and DW_FORM_addrx*
16 forms.
17
18 2021-03-05 Alan Modra <amodra@gmail.com>
19
20 * reloc.c (bfd_perform_relocation): Revert 2021-01-12 and
21 2020-09-16 changes.
22 * coff-x86_64.c (coff_amd64_reloc): Do more or less the same
23 adjustments here instead. Separate pc-relative adjustments
24 from symbol related adjustments. Tidy comments and formatting.
25
26 2021-03-04 Jan Beulich <jbeulich@suse.com>
27
28 * coffcode.h (sec_to_styp_flags): Don't set IMAGE_SCN_LNK_* in
29 final PE images.
30
31 2021-03-04 Alan Modra <amodra@gmail.com>
32
33 * rs6000-core.c (rs6000coff_core_p): Correct prototype.
34
35 2021-03-03 Alan Modra <amodra@gmail.com>
36
37 PR 27500
38 * elflink.c (_bfd_elf_gc_mark_rsec): Do special start/stop
39 processing not when start/stop symbol section is unmarked but
40 on first time a start/stop symbol is processed.
41
42 2021-03-03 Alan Modra <amodra@gmail.com>
43
44 * reloc.c: Include x86_64.h rather than internal.h.
45
46 2021-03-02 Nick Clifton <nickc@redhat.com>
47
48 PR 27484
49 * dwarf2.c (scan_unit_for_symbols): Scan twice, once to accumulate
50 function and variable tags and a second time to resolve their
51 attributes.
52
53 2021-03-02 Nick Alcock <nick.alcock@oracle.com>
54
55 * elf-strtab.c (_bfd_elf_strtab_str): Skip strings with zero refcount.
56
57 2021-03-02 Alan Modra <amodra@gmail.com>
58
59 PR 27451
60 * elf64-ppc.c (ppc64_elf_gc_mark_dynamic_ref): Ignore synthesized
61 linker defined start/stop symbols when start_stop_gc.
62
63 2021-03-02 Alan Modra <amodra@gmail.com>
64
65 * elf64-ppc.c (ppc64_elf_relocate_section): Don't optimise got
66 indirect to pc-relative or toc-relative for undefined symbols.
67
68 2021-03-01 Alan Modra <amodra@gmail.com>
69 Fangrui Song <maskray@google.com>
70
71 * elflink.c (_bfd_elf_gc_mark_rsec): Ignore synthesized linker
72 defined start/stop symbols when start_stop_gc.
73 (bfd_elf_gc_mark_dynamic_ref_symbol): Likewise.
74 (bfd_elf_define_start_stop): Don't modify ldscript_def syms.
75 * linker.c (bfd_generic_define_start_stop): Likewise.
76
77 2021-02-25 Alan Modra <amodra@gmail.com>
78
79 PR 27441
80 * elf-bfd.h (struct elf_link_hash_entry): Add ref_ir_nonweak.
81 * elflink.c (elf_link_add_object_symbols): Set ref_ir_nonweak and
82 use when deciding an as-needed library should be loaded instead
83 of using the binding of the library definition.
84
85 2021-02-24 Alan Modra <amodra@gmail.com>
86
87 PR 27459
88 * coff-stgo32.c (go32exe_check_format): Sanity check size of
89 header to avoid a buffer overflow.
90
91 2021-02-22 Alan Modra <amodra@gmail.com>
92
93 * coff-rs6000.c (_bfd_xcoff_reloc_type_lookup): Remove BFD_RELOC_16.
94 * coff64-rs6000.c (xcoff64_reloc_type_lookup): Likewise.
95
96 2021-02-19 Nelson Chu <nelson.chu@sifive.com>
97
98 PR 27158
99 * elfnn-riscv.c (perform_relocation): Updated encoding macros.
100 (_bfd_riscv_relax_call): Likewise.
101 (_bfd_riscv_relax_lui): Likewise.
102 * elfxx-riscv.c (howto_table): Likewise.
103
104 2021-02-18 Nelson Chu <nelson.chu@sifive.com>
105
106 * Makefile.am: Added cpu-riscv.h.
107 * Makefile.in: Regenerated.
108 * po/SRC-POTFILES.in: Regenerated.
109 * cpu-riscv.h: Added to support spec versions controlling.
110 Also added extern arrays and functions for cpu-riscv.c.
111 (enum riscv_spec_class): Define all spec classes here uniformly.
112 (struct riscv_spec): Added for all specs.
113 (RISCV_GET_SPEC_CLASS): Added to reduce repeated code.
114 (RISCV_GET_SPEC_NAME): Likewise.
115 (RISCV_GET_ISA_SPEC_CLASS): Added to get ISA spec class.
116 (RISCV_GET_PRIV_SPEC_CLASS): Added to get privileged spec class.
117 (RISCV_GET_PRIV_SPEC_NAME): Added to get privileged spec name.
118 * cpu-riscv.c (struct priv_spec_t): Replaced with struct riscv_spec.
119 (riscv_get_priv_spec_class): Replaced with RISCV_GET_PRIV_SPEC_CLASS.
120 (riscv_get_priv_spec_name): Replaced with RISCV_GET_PRIV_SPEC_NAME.
121 (riscv_priv_specs): Moved below.
122 (riscv_get_priv_spec_class_from_numbers): Likewise, updated.
123 (riscv_isa_specs): Moved from include/opcode/riscv.h.
124 * elfnn-riscv.c: Included cpu-riscv.h.
125 (riscv_merge_attributes): Initialize in_priv_spec and out_priv_spec.
126 * elfxx-riscv.c: Included cpu-riscv.h and opcode/riscv.h.
127 (RISCV_UNKNOWN_VERSION): Moved from include/opcode/riscv.h.
128 * elfxx-riscv.h: Removed extern functions to cpu-riscv.h.
129
130 2021-02-17 Alan Modra <amodra@gmail.com>
131
132 * wasm-module.c: Guard include of limits.h.
133 (CHAR_BIT): Provide backup define.
134 (wasm_read_leb128): Use CHAR_BIT to size "result" in bits.
135 Correct signed overflow checking.
136
137 2021-02-17 Nelson Chu <nelson.chu@sifive.com>
138
139 PR 27200
140 * elfnn-riscv.c (_bfd_riscv_elf_merge_private_bfd_data): Delay
141 copying the elf flags from input BFD to output BFD, until we have
142 checked if the input BFD has no code section or not. Also fix the
143 problem that we only check the first section rather than the entire
144 sections for input BFD.
145
146 2021-02-16 Alan Modra <amodra@gmail.com>
147
148 * libbfd.c (_bfd_read_unsigned_leb128): Avoid excessive shift.
149 (_bfd_safe_read_leb128, _bfd_read_signed_leb128): Likewise.
150
151 2021-02-15 Jan Beulich <jbeulich@suse.com>
152
153 * doc/Makefile.am: Replace "cp -p" by "$(LN_S)".
154 * doc/Makefile.in: Re-generate.
155
156 2021-02-15 Alan Modra <amodra@gmail.com>
157
158 * elf32-nds32.c (nds32_get_section_contents): Replace
159 bfd_malloc_and_get_section with bfd_get_full_section_contents.
160 (nds32_elf_relax_delete_blanks): Init contents.
161 (nds32_elf_relax_section, nds32_relax_fp_as_gp): Likewise.
162
163 2021-02-15 Alan Modra <amodra@gmail.com>
164
165 * coff-alpha.c (alpha_ecoff_get_relocated_section_contents): Use
166 bfd_get_full_section_contents.
167
168 2021-02-14 Alan Modra <amodra@gmail.com>
169
170 * elfxx-mips.c (_bfd_elf_mips_get_relocated_section_contents): Apply
171 all fixes to bfd_generic_get_relocated_section_contents since this
172 function was split out.
173
174 2021-02-11 Alan Modra <amodra@gmail.com>
175
176 * config.bfd: Remove ia64 from obsolete list.
177
178 2021-02-11 Alan Modra <amodra@gmail.com>
179
180 PR ld/22269
181 * elfnn-ia64.c: Revert 2017-10-14 git commit db41f6eb5234.
182
183 2021-02-11 Alan Modra <amodra@gmail.com>
184
185 PR 27294
186 * elf32-avr.c (avr_elf32_load_records_from_section): Use
187 bfd_malloc_and_get_section. Use bfd_byte* vars and remove then
188 unnecessary casts.
189
190 2021-02-11 Alan Modra <amodra@gmail.com>
191
192 PR 27291
193 * section.c (bfd_get_section_contents): Avoid possible overflow
194 when range checking offset and count.
195 (bfd_set_section_contents): Likewise.
196
197 2021-02-03 Nick Alcock <nick.alcock@oracle.com>
198
199 * configure.ac (SHARED_LIBADD): Remove explicit -lintl population in
200 favour of LIBINTL.
201 * configure: Regenerated.
202
203 2021-02-09 Alan Modra <amodra@gmail.com>
204
205 * config.bfd (arm*-*-symbianelf*): Move from obsolete to removed.
206 * configure.ac: Delete symbian entries.
207 * elf-bfd.h (enum elf_target_os): Delete is_symbian.
208 * elf32-arm.c: Remove symbian support. Formatting.
209 * targets.c: Delete symbian entries.
210 * configure: Regenerate.
211
212 2021-02-04 H.J. Lu <hongjiu.lu@intel.com>
213
214 PR ld/19609
215 * elf64-x86-64.c (elf_x86_64_relocate_section): Provide more
216 info when failed to convert GOTPCREL relocation.
217
218 2021-02-04 Nelson Chu <nelson.chu@sifive.com>
219
220 * elfxx-riscv.c (riscv_parse_prefixed_ext): Removed zb*.
221
222 2021-02-04 Alan Modra <amodra@gmail.com>
223
224 PR 27311
225 * elflink.c (elf_link_add_object_symbols): Don't pull in as-needed
226 libraries for IR references on pass over libraries after LTO
227 recompilation.
228
229 2021-02-03 Alan Modra <amodra@gmail.com>
230
231 PR 27311
232 * elflink.c (_bfd_elf_add_default_symbol): Revert last two changes.
233 (elf_link_add_object_symbols): Here too. Don't pull in as-needed
234 libraries when H is an indirect symbol after calling
235 _bfd_elf_add_default_symbol.
236
237 2021-02-03 Alan Modra <amodra@gmail.com>
238
239 PR 27311
240 * elflink.c (_bfd_elf_add_default_symbol): Clear override when
241 undecorated symbol will have a different version.
242
243 2021-02-02 Alan Modra <amodra@gmail.com>
244
245 PR 27311
246 * elflink.c (_bfd_elf_add_default_symbol): Add override parameter.
247 Use when handling default versioned symbol. Rename existing
248 override variable to nondef_override and use for non-default
249 versioned symbol.
250 (elf_link_add_object_symbols): Adjust call to suit. Don't
251 pull in as-needed libraries when override is set.
252
253 2021-02-01 Emery Hemingway <ehmry@posteo.net>
254
255 * config.bfd: Add *-*-genode* as a target for AArch64 and x86.
256
257 2021-02-01 Egor Vishnyakov <lenvampir@yandex.ru>
258
259 PR 27254
260 * elf32-rl78.c (rl78_elf_relocate_section): Fix calculation of
261 offset for the R_RL78_RH_SADDR relocation.
262
263 2021-01-29 Alan Modra <amodra@gmail.com>
264
265 PR 27271
266 * elflink.c (bfd_elf_link_record_dynamic_symbol): Don't segfault
267 on symbols defined in absolute or other special sections.
268
269 2021-01-28 Alan Modra <amodra@gmail.com>
270
271 PR 27259
272 * elflink.c (_bfd_elf_gc_mark_extra_sections): Use linker_mark to
273 prevent endless looping of linked-to sections.
274
275 2020-12-17 Mihails Strasuns <mihails.strasuns@intel.com>
276
277 * bfd-elf.h (elfcore_write_file_note): New function.
278 * elf.c (elfcore_write_file_note): New function.
279
280 2021-01-26 Alan Modra <amodra@gmail.com>
281
282 * elf32-ft32.c (ft32_reloc_type_lookup): Don't miss ft32_reloc_map[0].
283
284 2021-01-24 H.J. Lu <hongjiu.lu@intel.com>
285
286 PR binutils/27231
287 * dwarf2.c (read_rnglists): Ignore empty range when parsing line
288 number tables.
289
290 2021-01-23 H.J. Lu <hongjiu.lu@intel.com>
291
292 PR binutils/27231
293 * dwarf2.c (read_rnglists): Advance rngs_ptr after
294 _bfd_safe_read_leb128 when parsing DW_RLE_offset_pair.
295
296 2021-01-20 Alan Modra <amodra@gmail.com>
297
298 * elf32-ppc.c: Delete outdated comment.
299 (TARGET_KEEP_UNUSED_SECTION_SYMBOLS): Define.
300 * elf64-ppc.c (TARGET_KEEP_UNUSED_SECTION_SYMBOLS): Define.
301
302 2021-01-20 Alan Modra <amodra@gmail.com>
303
304 * elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Don't assume
305 section symbols are present.
306
307 2021-01-19 Alan Modra <amodra@gmail.com>
308
309 * elf64-ppc.c (elf_hash_entry): New inline function. Use
310 throughout to replace casts.
311 (branch_reloc_hash_match): Remove const from params.
312 (use_local_plt): New function.
313 (allocate_dynrelocs, ppc_build_one_stub, ppc_size_one_stub),
314 (build_global_entry_stubs_and_plt, ppc64_elf_relocate_section):
315 Use use_local_plt.
316 * elf32-ppc.c (use_local_plt): New function.
317 (allocate_dynrelocs, ppc_elf_relocate_section),
318 (write_global_sym_plt): Use use_local_plt.
319
320 2021-01-17 H.J. Lu <hongjiu.lu@intel.com>
321
322 PR ld/27193
323 * elflink.c (elf_create_symbuf): Also ignore section symbols.
324
325 2021-01-16 H.J. Lu <hongjiu.lu@intel.com>
326
327 PR ld/23169
328 * elfxx-x86.c (_bfd_x86_elf_link_fixup_ifunc_symbol): Don't
329 check pointer_equality_needed.
330
331 2021-01-15 H.J. Lu <hongjiu.lu@intel.com>
332
333 * elf-linker-x86.h (elf_linker_x86_params): Add
334 report_relative_reloc.
335 * elf32-i386.c (elf_i386_relocate_section): Call
336 _bfd_x86_elf_link_report_relative_reloc to report relative
337 relocations for -z report-relative-reloc.
338 (elf_i386_finish_dynamic_symbol): Likewse.
339 * elf64-x86-64.c (elf_x86_64_relocate_section): Likewse.
340 (elf_x86_64_finish_dynamic_symbol): Likewse.
341 * elfxx-x86.c (_bfd_x86_elf_link_report_relative_reloc): New
342 function.
343 * elfxx-x86.h (_bfd_x86_elf_link_report_relative_reloc): New
344 prototype.
345
346 2021-01-16 Alan Modra <amodra@gmail.com>
347
348 * compress.c (decompress_contents): Tidy inflateEnd result test.
349
350 2021-01-16 Alan Modra <amodra@gmail.com>
351
352 PR 26002
353 * elflink.c (elf_link_output_extsym): Use version 1 in
354 .gnu.version for undefined unversioned symbols.
355
356 2021-01-15 Nelson Chu <nelson.chu@sifive.com>
357
358 * elfnn-riscv.c (riscv_relax_delete_bytes): Fixed the indent that
359 caused the by previous commit accidentally.
360
361 2021-01-15 Nelson Chu <nelson.chu@sifive.com>
362
363 * elfnn-riscv.c: Indent, labels and GNU coding standards tidy,
364 also aligned the code.
365
366 2021-01-15 Nelson Chu <nelson.chu@sifive.com>
367
368 * elfnn-riscv.c (riscv_merge_attributes): Fix typos of messages.
369
370 2021-01-15 Nelson Chu <nelson.chu@sifive.com>
371
372 * elfnn-riscv.c: Comments tidy and improvement.
373 * elfxx-riscv.c: Likewise.
374 * elfxx-riscv.h: Likewise.
375
376 2021-01-14 H.J. Lu <hongjiu.lu@intel.com>
377
378 PR ld/26688
379 * elf32-bfin.c (bfinfdpic_relocate_section): Skip non SEC_ALLOC
380 section for R_BFIN_FUNCDESC.
381
382 2021-01-14 Nick Clifton <nickc@redhat.com>
383
384 * elf.c (elfcore_grok_win32pstatus): Check for a note type of 0.
385
386 2021-01-13 Alan Modra <amodra@gmail.com>
387
388 * Makefile.in: Regenerate.
389 * doc/Makefile.in: Regenerate.
390
391 2021-01-13 Alan Modra <amodra@gmail.com>
392
393 PR 27160
394 * section.c (struct bfd_section): Remove pattern field.
395 (BFD_FAKE_SECTION): Adjust to suit.
396 * bfd-in2.h: Regenerate.
397 * elflink.c (compare_link_order, elf_fixup_link_order): Delete.
398 (bfd_elf_final_link): Don't call elf_fixup_link_order.
399
400 2021-01-12 H.J. Lu <hongjiu.lu@intel.com>
401
402 PR binutils/26792
403 * configure.ac: Use GNU_MAKE_JOBSERVER.
404 * aclocal.m4: Regenerated.
405 * configure: Likewise.
406
407 2021-01-12 H.J. Lu <hongjiu.lu@intel.com>
408
409 PR ld/27171
410 * reloc.c (bfd_perform_relocation): Adjust R_AMD64_DIR64 and
411 R_AMD64_DIR32 relocations for PE/x86-64 inputs.
412
413 2021-01-11 H.J. Lu <hongjiu.lu@intel.com>
414
415 PR ld/27173
416 * configure: Regenerated.
417
418 2021-01-11 Nick Clifton <nickc@redhat.com>
419
420 * po/fr.po: Updated French translation.
421 * po/pt.po: Updated Portuguese translation.
422 * po/sr.po: Updated Serbian translation.
423 * po/uk.po: Updated Ukranian translation.
424
425 2021-01-09 H.J. Lu <hongjiu.lu@intel.com>
426
427 * configure: Regenerated.
428
429 2021-01-09 H.J. Lu <hongjiu.lu@intel.com>
430
431 PR ld/27166
432 * elfxx-x86.c (_bfd_x86_elf_merge_gnu_properties): Handle
433 -z lam-u48 and -z lam-u57.
434
435 2021-01-09 Nick Clifton <nickc@redhat.com>
436
437 * version.m4: Change to 2.36.50.
438 * configure: Regenerate.
439 * po/bfd.pot: Regenerate.
440
441 2021-01-09 Nick Clifton <nickc@redhat.com>
442
443 * 2.36 release branch crated.
444
445 2021-01-08 H.J. Lu <hongjiu.lu@intel.com>
446
447 * elfxx-x86.c (_bfd_x86_elf_link_setup_gnu_properties): Also set
448 LAM_U57 when setting LAM_U48.
449
450 2021-01-08 H.J. Lu <hongjiu.lu@intel.com>
451
452 PR ld/26256
453 PR ld/27160
454 * elflink.c (elf_fixup_link_order): Verify that fixing up
455 SHF_LINK_ORDER doesn't increase the output section size.
456
457 2021-01-09 Alan Modra <amodra@gmail.com>
458
459 * configure: Regenerate.
460
461 2021-01-07 Samuel Thibault <samuel.thibault@gnu.org>
462
463 * configure: Regenerate.
464
465 2021-01-07 H.J. Lu <hongjiu.lu@intel.com>
466
467 PR 27109
468 * aix386-core.c (core_aix386_vec): Initialize
469 keep_unused_section_symbol to TARGET_KEEP_UNUSED_SECTION_SYMBOLS.
470 * aout-target.h (MY (vec)): Likewise.
471 * binary.c (binary_vec): Likewise.
472 * cisco-core.c (core_cisco_be_vec): Likewise.
473 (core_cisco_le_vec): Likewise.
474 * coff-alpha.c (alpha_ecoff_le_vec): Likewise.
475 * coff-i386.c (TARGET_SYM): Likewise.
476 (TARGET_SYM_BIG): Likewise.
477 * coff-ia64.c (TARGET_SYM): Likewise.
478 * coff-mips.c (mips_ecoff_le_vec): Likewise.
479 (mips_ecoff_be_vec): Likewise.
480 (mips_ecoff_bele_vec): Likewise.
481 * coff-rs6000.c (rs6000_xcoff_vec): Likewise.
482 (powerpc_xcoff_vec): Likewise.
483 * coff-sh.c (sh_coff_small_vec): Likewise.
484 (sh_coff_small_le_vec): Likewise.
485 * coff-tic30.c (tic30_coff_vec): Likewise.
486 * coff-tic54x.c (tic54x_coff0_vec): Likewise.
487 (tic54x_coff0_beh_vec): Likewise.
488 (tic54x_coff1_vec): Likewise.
489 (tic54x_coff1_beh_vec): Likewise.
490 (tic54x_coff2_vec): Likewise.
491 (tic54x_coff2_beh_vec): Likewise.
492 * coff-x86_64.c (TARGET_SYM): Likewise.
493 (TARGET_SYM_BIG): Likewise.
494 * coff64-rs6000.c (rs6000_xcoff64_vec): Likewise.
495 (rs6000_xcoff64_aix_vec): Likewise.
496 * coffcode.h (CREATE_BIG_COFF_TARGET_VEC): Likewise.
497 (CREATE_BIGHDR_COFF_TARGET_VEC): Likewise.
498 (CREATE_LITTLE_COFF_TARGET_VEC): Likewise.
499 * elfxx-target.h (TARGET_BIG_SYM): Likewise.
500 (TARGET_LITTLE_SYM): Likewise.
501 * hppabsd-core.c (core_hppabsd_vec): Likewise.
502 * hpux-core.c (core_hpux_vec): Likewise.
503 * i386msdos.c (i386_msdos_vec): Likewise.
504 * ihex.c (ihex_vec): Likewise.
505 * irix-core.c (core_irix_vec): Likewise.
506 * mach-o-target.c (TARGET_NAME): Likewise.
507 * mmo.c (mmix_mmo_vec): Likewise.
508 * netbsd-core.c (core_netbsd_vec): Likewise.
509 * osf-core.c (core_osf_vec): Likewise.
510 * pdp11.c (MY (vec)): Likewise.
511 * pef.c (pef_vec): Likewise.
512 (pef_xlib_vec): Likewise.
513 * plugin.c (plugin_vec): Likewise.
514 * ppcboot.c (powerpc_boot_vec): Likewise.
515 * ptrace-core.c (core_ptrace_vec): Likewise.
516 * sco5-core.c (core_sco5_vec): Likewise.
517 * som.c (hppa_som_vec): Likewise.
518 * srec.c (srec_vec): Likewise.
519 (symbolsrec_vec): Likewise.
520 * tekhex.c (tekhex_vec): Likewise.
521 * trad-core.c (core_trad_vec): Likewise.
522 * verilog.c (verilog_vec): Likewise.
523 * vms-alpha.c (alpha_vms_vec): Likewise.
524 * vms-lib.c (alpha_vms_lib_txt_vec): Likewise.
525 * wasm-module.c (wasm_vec): Likewise.
526 * xsym.c (sym_vec): Likewise.
527 * elf.c (ignore_section_sym): Return TRUE if BSF_SECTION_SYM_USED
528 isn't set.
529 (elf_map_symbols): Don't include ignored section symbols.
530 * elfcode.h (elf_slurp_symbol_table): Also set
531 BSF_SECTION_SYM_USED on STT_SECTION symbols.
532 * elflink.c (bfd_elf_final_link): Generated section symbols only
533 when emitting relocations or reqired.
534 * elfxx-x86.h (TARGET_KEEP_UNUSED_SECTION_SYMBOLS): New.
535 * syms.c (BSF_SECTION_SYM_USED): New.
536 * targets.c (TARGET_KEEP_UNUSED_SECTION_SYMBOLS): New.
537 (bfd_target): Add keep_unused_section_symbols.
538 (bfd_keep_unused_section_symbols): New.
539 * bfd-in2.h: Regenerated.
540
541 2021-01-07 Nick Clifton <nickc@redhat.com>
542
543 PR 25713
544 * bfdio.c (_bfd_real_fopen): For Win32 convert relative paths to
545 absolute paths and check to see if they are longer than MAX_PATH.
546
547 2021-01-07 Philipp Tomsich <prt@gnu.org>
548
549 * elfxx-riscv.c (riscv_std_z_ext_strtab): Added zihintpause.
550
551 2021-01-07 Claire Xenia Wolf <claire@symbioticeda.com>
552 Jim Wilson <jimw@sifive.com>
553 Andrew Waterman <andrew@sifive.com>
554 Maxim Blinov <maxim.blinov@embecosm.com>
555 Kito Cheng <kito.cheng@sifive.com>
556 Nelson Chu <nelson.chu@sifive.com>
557
558 * elfxx-riscv.c (riscv_std_z_ext_strtab): Added zba, zbb and zbc.
559
560 2021-01-06 H.J. Lu <hongjiu.lu@intel.com>
561
562 * elf32-bfin.c (bfin_check_relocs): Check bfd_link_hash_indirect.
563 (bfinfdpic_check_relocs): Likewise.
564
565 2021-01-06 Alan Modra <amodra@gmail.com>
566
567 * elf32-score.c (s3_bfd_score_info_to_howto): Report an error
568 on unknown r_type.
569 * elf32-score7.c (s7_bfd_score_info_to_howto): Likewise.
570
571 2021-01-06 Alan Modra <amodra@gmail.com>
572
573 * config.bfd (sparc-*-solaris2*): Add sparc_elf32_vec.
574 (sparc64-*-solaris2*): Add sparc_elf64_vec and
575 sparc_elf32_vec.
576
577 2021-01-06 Marcus Comstedt <marcus@mc.pp.se>
578
579 * config.bfd: Added targets riscv64be*-*-*, riscv32be*-*-* and
580 riscvbe*-*-*. Also added riscv_elf[32|64]_be_vec.
581 * configure.ac: Handle riscv_elf[32|64]_be_vec.
582 * configure: Regenerate.
583 * elfnn-riscv.c: Include <limits.h> and define CHAR_BIT for
584 riscv_is_insn_reloc.
585 (riscv_get_insn): RISC-V instructions are always little endian, but
586 bfd_get may be used for big-endian, so add new riscv_get_insn to handle
587 the insturctions.
588 (riscv_put_insn): Likewsie.
589 (riscv_is_insn_reloc): Check if we are relocaing an instruction.
590 (perform_relocation): Call riscv_is_insn_reloc to decide if we should
591 use riscv_[get|put]_insn or bfd_[get|put].
592 (riscv_zero_pcrel_hi_reloc): Use riscv_[get|put]_insn, bfd_[get|put]l32
593 or bfd_[get|put]l16 for code.
594 (riscv_elf_relocate_section): Likewise.
595 (riscv_elf_finish_dynamic_symbol): Likewise.
596 (riscv_elf_finish_dynamic_sections): Likewise.
597 (_bfd_riscv_relax_call): Likewise.
598 (_bfd_riscv_relax_lui): Likewise.
599 (_bfd_riscv_relax_align): Likewise.
600 (_bfd_riscv_relax_pc): Likewise.
601 (riscv_elf_object_p): Handled for big endian.
602 (TARGET_BIG_SYM, TARGET_BIG_NAME): Defined.
603 * targets.c: Add riscv_elf[32|64]_be_vec.
604 (_bfd_target_vector): Likewise.
605
606 2021-01-05 Alan Modra <amodra@gmail.com>
607
608 * elflink.c (bfd_elf_link_record_dynamic_symbol): Handle no_export
609 for relocatable executable.
610
611 2021-01-05 Alan Modra <amodra@gmail.com>
612
613 * vms-alpha.c (_bfd_vms_slurp_egsd): Read flags after size check.
614
615 2021-01-05 Nelson Chu <nelson.chu@sifive.com>
616
617 * elfnn-riscv.c (allocate_dynrelocs): When we are generating pde,
618 make sure gp symbol is output as a dynamic symbol.
619
620 2021-01-04 H.J. Lu <hongjiu.lu@intel.com>
621
622 PR ld/26256
623 * elflink.c (compare_link_order): Place unordered sections before
624 ordered sections.
625 (elf_fixup_link_order): Add a link info argument. Allow mixed
626 ordered and unordered input sections for non-relocatable link.
627 Sort the consecutive bfd_indirect_link_order sections with the
628 same pattern. Change the offsets of the bfd_indirect_link_order
629 sections only.
630 (bfd_elf_final_link): Pass info to elf_fixup_link_order.
631 * section.c (bfd_section): Add pattern.
632 (BFD_FAKE_SECTION): Initialize pattern to NULL.
633 * bfd-in2.h: Regenerated.
634
635 2021-01-04 Alexander Fedotov <alfedotov@gmail.com>
636
637 * elf32-arm.c (elf32_arm_print_private_bfd_data): Prefix hex value
638 of private flags with 0x.
639 * elfnn-aarch64.c (elfNN_aarch64_print_private_bfd_data): Likewise.
640
641 2021-01-04 Alan Modra <amodra@gmail.com>
642
643 PR 26822
644 * elflink.c (elf_link_input_bfd): Use the file base name in
645 linker generated STT_FILE symbols.
646
647 2021-01-04 Nelson Chu <nelson.chu@sifive.com>
648
649 * elfxx-riscv.c (riscv_compare_subsets): Removed static.
650 * elfxx-riscv.h: Add declaration.
651 * elfnn-riscv.c (riscv_merge_multi_letter_ext): Use
652 riscv_compare_subsets to check the orders.
653 (riscv_skip_prefix): Removed.
654 (riscv_prefix_cmp): Removed.
655
656 2021-01-04 Alan Modra <amodra@gmail.com>
657
658 PR 26741
659 * elfxx-riscv.c (riscv_parse_prefixed_ext): Free subset after
660 calculating subset version length.
661
662 2021-01-01 Nicolas Boulenguez <nicolas@debian.org>
663
664 * xcofflink.c: Correct spelling in comments.
665
666 2021-01-01 Alan Modra <amodra@gmail.com>
667
668 Update year range in copyright notice of all files.
669
670 For older changes see ChangeLog-2020
671 \f
672 Copyright (C) 2021 Free Software Foundation, Inc.
673
674 Copying and distribution of this file, with or without modification,
675 are permitted in any medium without royalty provided the copyright
676 notice and this notice are preserved.
677
678 Local Variables:
679 mode: change-log
680 left-margin: 8
681 fill-column: 74
682 version-control: never
683 End: