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