]> Git Repo - binutils.git/blame - bfd/ChangeLog
Automatic date update in version.in
[binutils.git] / bfd / ChangeLog
CommitLineData
2dfa8341
AM
12021-03-10 Alan Modra <[email protected]>
2 Jan Beulich <[email protected]>
3
4 * elf.c (bfd_elf_generic_reloc): Make references between debug
5 sections use section relative values.
6
87fa7d56
JB
72021-03-09 Jan Beulich <[email protected]>
8
9 * peXXigen.c (_bfd_XXi_swap_scnhdr_out): Diagnose out of range RVA.
10
8c0546e9
L
112021-03-05 H.J. Lu <[email protected]>
12
13 PR ld/27425
14 PR ld/27432
15 * bfd.c (_bfd_get_link_info): New function.
16 * elf-bfd.h (output_elf_obj_tdata): Add link_info.
17 (elf_link_info): New.
18 * libbfd-in.h (_bfd_get_link_info): New prototype.
19 * coff-x86_64.c (coff_amd64_reloc): Also subtract __ImageBase for
20 R_AMD64_IMAGEBASE when generating x86-64 ELF executable.
21 * pe-x86_64.c: Include "coff/internal.h" and "libcoff.h".
22 (pex64_link_add_symbols): New function.
23 (coff_bfd_link_add_symbols): New macro.
24 * libbfd.h: Regenerated.
25
db6092f3
AB
262021-03-05 Craig Blackmore <[email protected]>
27 Andrew Burgess <[email protected]>
28
29 * elf-bfd.h (elfcore_write_riscv_csr): Declare.
30 * elf.c (elfcore_grok_riscv_csr): New function.
31 (elfcore_grok_note): Handle NT_RISCV_CSR.
32 (elfcore_write_riscv_csr): New function.
33 (elfcore_write_register_note): Handle '.reg-riscv-csr'.
34
0897bb7d
AB
352021-03-05 Craig Blackmore <[email protected]>
36 Andrew Burgess <[email protected]>
37
38 * elfnn-riscv.c (PRPSINFO_PR_FNAME_LENGTH): Define.
39 (PRPSINFO_PR_PSARGS_LENGTH): Define.
40 (riscv_write_core_note): New function.
41 (riscv_elf_grok_psinfo): Make use of two new length defines.
42 (elf_backend_write_core_note): Define.
43
b63a5e38
AB
442021-03-05 Craig Blackmore <[email protected]>
45 Andrew Burgess <[email protected]>
46
47 * elf-bfd.h (elfcore_write_gdb_tdesc): Declare new function.
48 * elf.c (elfcore_grok_gdb_tdesc): New function.
49 (elfcore_grok_note): Handle NT_GDB_TDESC.
50 (elfcore_write_gdb_tdesc): New function.
51 (elfcore_write_register_note): Handle NT_GDB_TDESC.
52
2017f387
NC
532021-03-05 Nick Clifton <[email protected]>
54
55 PR 27521
56 * dwarf2.c (is_str_attr): Add DW_FORM_strx* forms.
57 (read_indexed_string): Placeholder function.
58 (read_attribute_value): Handle DW_FORM_strx* and DW_FORM_addrx*
59 forms.
60
b01b5d9a
AM
612021-03-05 Alan Modra <[email protected]>
62
63 * reloc.c (bfd_perform_relocation): Revert 2021-01-12 and
64 2020-09-16 changes.
65 * coff-x86_64.c (coff_amd64_reloc): Do more or less the same
66 adjustments here instead. Separate pc-relative adjustments
67 from symbol related adjustments. Tidy comments and formatting.
68
6b5465b9
JB
692021-03-04 Jan Beulich <[email protected]>
70
71 * coffcode.h (sec_to_styp_flags): Don't set IMAGE_SCN_LNK_* in
72 final PE images.
73
0b7733b6
AM
742021-03-04 Alan Modra <[email protected]>
75
76 * rs6000-core.c (rs6000coff_core_p): Correct prototype.
77
5789f845
AM
782021-03-03 Alan Modra <[email protected]>
79
80 PR 27500
81 * elflink.c (_bfd_elf_gc_mark_rsec): Do special start/stop
82 processing not when start/stop symbol section is unmarked but
83 on first time a start/stop symbol is processed.
84
dc83f2d2
AM
852021-03-03 Alan Modra <[email protected]>
86
87 * reloc.c: Include x86_64.h rather than internal.h.
88
ca8f6bc6
NC
892021-03-02 Nick Clifton <[email protected]>
90
91 PR 27484
92 * dwarf2.c (scan_unit_for_symbols): Scan twice, once to accumulate
93 function and variable tags and a second time to resolve their
94 attributes.
95
211bcd01
NA
962021-03-02 Nick Alcock <[email protected]>
97
98 * elf-strtab.c (_bfd_elf_strtab_str): Skip strings with zero refcount.
99
b80e421f
AM
1002021-03-02 Alan Modra <[email protected]>
101
102 PR 27451
103 * elf64-ppc.c (ppc64_elf_gc_mark_dynamic_ref): Ignore synthesized
104 linker defined start/stop symbols when start_stop_gc.
105
f5b9c288
AM
1062021-03-02 Alan Modra <[email protected]>
107
108 * elf64-ppc.c (ppc64_elf_relocate_section): Don't optimise got
109 indirect to pc-relative or toc-relative for undefined symbols.
110
8ee10e86
AM
1112021-03-01 Alan Modra <[email protected]>
112 Fangrui Song <[email protected]>
113
114 * elflink.c (_bfd_elf_gc_mark_rsec): Ignore synthesized linker
115 defined start/stop symbols when start_stop_gc.
116 (bfd_elf_gc_mark_dynamic_ref_symbol): Likewise.
117 (bfd_elf_define_start_stop): Don't modify ldscript_def syms.
118 * linker.c (bfd_generic_define_start_stop): Likewise.
119
bbaddd4b
AM
1202021-02-25 Alan Modra <[email protected]>
121
122 PR 27441
123 * elf-bfd.h (struct elf_link_hash_entry): Add ref_ir_nonweak.
124 * elflink.c (elf_link_add_object_symbols): Set ref_ir_nonweak and
125 use when deciding an as-needed library should be loaded instead
126 of using the binding of the library definition.
127
93af1b04
AM
1282021-02-24 Alan Modra <[email protected]>
129
130 PR 27459
131 * coff-stgo32.c (go32exe_check_format): Sanity check size of
132 header to avoid a buffer overflow.
133
e9d18e06
AM
1342021-02-22 Alan Modra <[email protected]>
135
136 * coff-rs6000.c (_bfd_xcoff_reloc_type_lookup): Remove BFD_RELOC_16.
137 * coff64-rs6000.c (xcoff64_reloc_type_lookup): Likewise.
138
5a9f5403
NC
1392021-02-19 Nelson Chu <[email protected]>
140
141 PR 27158
142 * elfnn-riscv.c (perform_relocation): Updated encoding macros.
143 (_bfd_riscv_relax_call): Likewise.
144 (_bfd_riscv_relax_lui): Likewise.
145 * elfxx-riscv.c (howto_table): Likewise.
146
3d73d29e
NC
1472021-02-18 Nelson Chu <[email protected]>
148
149 * Makefile.am: Added cpu-riscv.h.
150 * Makefile.in: Regenerated.
151 * po/SRC-POTFILES.in: Regenerated.
152 * cpu-riscv.h: Added to support spec versions controlling.
153 Also added extern arrays and functions for cpu-riscv.c.
154 (enum riscv_spec_class): Define all spec classes here uniformly.
155 (struct riscv_spec): Added for all specs.
156 (RISCV_GET_SPEC_CLASS): Added to reduce repeated code.
157 (RISCV_GET_SPEC_NAME): Likewise.
158 (RISCV_GET_ISA_SPEC_CLASS): Added to get ISA spec class.
159 (RISCV_GET_PRIV_SPEC_CLASS): Added to get privileged spec class.
160 (RISCV_GET_PRIV_SPEC_NAME): Added to get privileged spec name.
161 * cpu-riscv.c (struct priv_spec_t): Replaced with struct riscv_spec.
162 (riscv_get_priv_spec_class): Replaced with RISCV_GET_PRIV_SPEC_CLASS.
163 (riscv_get_priv_spec_name): Replaced with RISCV_GET_PRIV_SPEC_NAME.
164 (riscv_priv_specs): Moved below.
165 (riscv_get_priv_spec_class_from_numbers): Likewise, updated.
166 (riscv_isa_specs): Moved from include/opcode/riscv.h.
167 * elfnn-riscv.c: Included cpu-riscv.h.
168 (riscv_merge_attributes): Initialize in_priv_spec and out_priv_spec.
169 * elfxx-riscv.c: Included cpu-riscv.h and opcode/riscv.h.
170 (RISCV_UNKNOWN_VERSION): Moved from include/opcode/riscv.h.
171 * elfxx-riscv.h: Removed extern functions to cpu-riscv.h.
172
b9b204b3
AM
1732021-02-17 Alan Modra <[email protected]>
174
175 * wasm-module.c: Guard include of limits.h.
176 (CHAR_BIT): Provide backup define.
177 (wasm_read_leb128): Use CHAR_BIT to size "result" in bits.
178 Correct signed overflow checking.
179
0d6aab77
NC
1802021-02-17 Nelson Chu <[email protected]>
181
182 PR 27200
183 * elfnn-riscv.c (_bfd_riscv_elf_merge_private_bfd_data): Delay
184 copying the elf flags from input BFD to output BFD, until we have
185 checked if the input BFD has no code section or not. Also fix the
186 problem that we only check the first section rather than the entire
187 sections for input BFD.
188
7b54cadd
AM
1892021-02-16 Alan Modra <[email protected]>
190
191 * libbfd.c (_bfd_read_unsigned_leb128): Avoid excessive shift.
192 (_bfd_safe_read_leb128, _bfd_read_signed_leb128): Likewise.
193
8c674061
JB
1942021-02-15 Jan Beulich <[email protected]>
195
196 * doc/Makefile.am: Replace "cp -p" by "$(LN_S)".
197 * doc/Makefile.in: Re-generate.
198
1781a9d0
AM
1992021-02-15 Alan Modra <[email protected]>
200
201 * elf32-nds32.c (nds32_get_section_contents): Replace
202 bfd_malloc_and_get_section with bfd_get_full_section_contents.
203 (nds32_elf_relax_delete_blanks): Init contents.
204 (nds32_elf_relax_section, nds32_relax_fp_as_gp): Likewise.
205
8b78cbec
AM
2062021-02-15 Alan Modra <[email protected]>
207
208 * coff-alpha.c (alpha_ecoff_get_relocated_section_contents): Use
209 bfd_get_full_section_contents.
210
d7a7af8f
AM
2112021-02-14 Alan Modra <[email protected]>
212
213 * elfxx-mips.c (_bfd_elf_mips_get_relocated_section_contents): Apply
214 all fixes to bfd_generic_get_relocated_section_contents since this
215 function was split out.
216
234b98ce
AM
2172021-02-11 Alan Modra <[email protected]>
218
219 * config.bfd: Remove ia64 from obsolete list.
220
769c253f
AM
2212021-02-11 Alan Modra <[email protected]>
222
223 PR ld/22269
224 * elfnn-ia64.c: Revert 2017-10-14 git commit db41f6eb5234.
225
31c711a2
AM
2262021-02-11 Alan Modra <[email protected]>
227
228 PR 27294
229 * elf32-avr.c (avr_elf32_load_records_from_section): Use
230 bfd_malloc_and_get_section. Use bfd_byte* vars and remove then
231 unnecessary casts.
232
6db658c5
AM
2332021-02-11 Alan Modra <[email protected]>
234
235 PR 27291
236 * section.c (bfd_get_section_contents): Avoid possible overflow
237 when range checking offset and count.
238 (bfd_set_section_contents): Likewise.
239
95148614
NA
2402021-02-03 Nick Alcock <[email protected]>
241
242 * configure.ac (SHARED_LIBADD): Remove explicit -lintl population in
243 favour of LIBINTL.
244 * configure: Regenerated.
245
a57d1773
AM
2462021-02-09 Alan Modra <[email protected]>
247
248 * config.bfd (arm*-*-symbianelf*): Move from obsolete to removed.
249 * configure.ac: Delete symbian entries.
250 * elf-bfd.h (enum elf_target_os): Delete is_symbian.
251 * elf32-arm.c: Remove symbian support. Formatting.
252 * targets.c: Delete symbian entries.
253 * configure: Regenerate.
254
1a2f1b54
L
2552021-02-04 H.J. Lu <[email protected]>
256
257 PR ld/19609
258 * elf64-x86-64.c (elf_x86_64_relocate_section): Provide more
259 info when failed to convert GOTPCREL relocation.
260
24075dcc
NC
2612021-02-04 Nelson Chu <[email protected]>
262
263 * elfxx-riscv.c (riscv_parse_prefixed_ext): Removed zb*.
264
7d409ac0
AM
2652021-02-04 Alan Modra <[email protected]>
266
267 PR 27311
268 * elflink.c (elf_link_add_object_symbols): Don't pull in as-needed
269 libraries for IR references on pass over libraries after LTO
270 recompilation.
271
f01fb44c
AM
2722021-02-03 Alan Modra <[email protected]>
273
274 PR 27311
275 * elflink.c (_bfd_elf_add_default_symbol): Revert last two changes.
276 (elf_link_add_object_symbols): Here too. Don't pull in as-needed
277 libraries when H is an indirect symbol after calling
278 _bfd_elf_add_default_symbol.
279
69551367
AM
2802021-02-03 Alan Modra <[email protected]>
281
282 PR 27311
283 * elflink.c (_bfd_elf_add_default_symbol): Clear override when
284 undecorated symbol will have a different version.
285
9918bff7
AM
2862021-02-02 Alan Modra <[email protected]>
287
288 PR 27311
289 * elflink.c (_bfd_elf_add_default_symbol): Add override parameter.
290 Use when handling default versioned symbol. Rename existing
291 override variable to nondef_override and use for non-default
292 versioned symbol.
293 (elf_link_add_object_symbols): Adjust call to suit. Don't
294 pull in as-needed libraries when override is set.
295
1f568f9a
EH
2962021-02-01 Emery Hemingway <[email protected]>
297
298 * config.bfd: Add *-*-genode* as a target for AArch64 and x86.
299
34c10233
EV
3002021-02-01 Egor Vishnyakov <[email protected]>
301
302 PR 27254
303 * elf32-rl78.c (rl78_elf_relocate_section): Fix calculation of
304 offset for the R_RL78_RH_SADDR relocation.
305
c4566785
AM
3062021-01-29 Alan Modra <[email protected]>
307
308 PR 27271
309 * elflink.c (bfd_elf_link_record_dynamic_symbol): Don't segfault
310 on symbols defined in absolute or other special sections.
311
def97fb9
AM
3122021-01-28 Alan Modra <[email protected]>
313
314 PR 27259
315 * elflink.c (_bfd_elf_gc_mark_extra_sections): Use linker_mark to
316 prevent endless looping of linked-to sections.
317
4cb1265b
MS
3182020-12-17 Mihails Strasuns <[email protected]>
319
320 * bfd-elf.h (elfcore_write_file_note): New function.
321 * elf.c (elfcore_write_file_note): New function.
322
4287950e
AM
3232021-01-26 Alan Modra <[email protected]>
324
325 * elf32-ft32.c (ft32_reloc_type_lookup): Don't miss ft32_reloc_map[0].
326
940d0202
L
3272021-01-24 H.J. Lu <[email protected]>
328
329 PR binutils/27231
330 * dwarf2.c (read_rnglists): Ignore empty range when parsing line
331 number tables.
332
18454c15
L
3332021-01-23 H.J. Lu <[email protected]>
334
335 PR binutils/27231
336 * dwarf2.c (read_rnglists): Advance rngs_ptr after
337 _bfd_safe_read_leb128 when parsing DW_RLE_offset_pair.
338
4bd7c902
AM
3392021-01-20 Alan Modra <[email protected]>
340
341 * elf32-ppc.c: Delete outdated comment.
342 (TARGET_KEEP_UNUSED_SECTION_SYMBOLS): Define.
343 * elf64-ppc.c (TARGET_KEEP_UNUSED_SECTION_SYMBOLS): Define.
344
8bd10d6b
AM
3452021-01-20 Alan Modra <[email protected]>
346
347 * elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Don't assume
348 section symbols are present.
349
30845f11
AM
3502021-01-19 Alan Modra <[email protected]>
351
352 * elf64-ppc.c (elf_hash_entry): New inline function. Use
353 throughout to replace casts.
354 (branch_reloc_hash_match): Remove const from params.
355 (use_local_plt): New function.
356 (allocate_dynrelocs, ppc_build_one_stub, ppc_size_one_stub),
357 (build_global_entry_stubs_and_plt, ppc64_elf_relocate_section):
358 Use use_local_plt.
359 * elf32-ppc.c (use_local_plt): New function.
360 (allocate_dynrelocs, ppc_elf_relocate_section),
361 (write_global_sym_plt): Use use_local_plt.
362
994b2513
L
3632021-01-17 H.J. Lu <[email protected]>
364
365 PR ld/27193
366 * elflink.c (elf_create_symbuf): Also ignore section symbols.
367
75a933f3
L
3682021-01-16 H.J. Lu <[email protected]>
369
370 PR ld/23169
371 * elfxx-x86.c (_bfd_x86_elf_link_fixup_ifunc_symbol): Don't
372 check pointer_equality_needed.
373
68b00778
L
3742021-01-15 H.J. Lu <[email protected]>
375
376 * elf-linker-x86.h (elf_linker_x86_params): Add
377 report_relative_reloc.
378 * elf32-i386.c (elf_i386_relocate_section): Call
379 _bfd_x86_elf_link_report_relative_reloc to report relative
380 relocations for -z report-relative-reloc.
381 (elf_i386_finish_dynamic_symbol): Likewse.
382 * elf64-x86-64.c (elf_x86_64_relocate_section): Likewse.
383 (elf_x86_64_finish_dynamic_symbol): Likewse.
384 * elfxx-x86.c (_bfd_x86_elf_link_report_relative_reloc): New
385 function.
386 * elfxx-x86.h (_bfd_x86_elf_link_report_relative_reloc): New
387 prototype.
388
ad92f33d
AM
3892021-01-16 Alan Modra <[email protected]>
390
391 * compress.c (decompress_contents): Tidy inflateEnd result test.
392
eb6e6af8
AM
3932021-01-16 Alan Modra <[email protected]>
394
395 PR 26002
396 * elflink.c (elf_link_output_extsym): Use version 1 in
397 .gnu.version for undefined unversioned symbols.
398
4bb5732e
NC
3992021-01-15 Nelson Chu <[email protected]>
400
401 * elfnn-riscv.c (riscv_relax_delete_bytes): Fixed the indent that
402 caused the by previous commit accidentally.
403
1942a048
NC
4042021-01-15 Nelson Chu <[email protected]>
405
406 * elfnn-riscv.c: Indent, labels and GNU coding standards tidy,
407 also aligned the code.
408
b800637e
NC
4092021-01-15 Nelson Chu <[email protected]>
410
411 * elfnn-riscv.c (riscv_merge_attributes): Fix typos of messages.
412
dcd709e0
NC
4132021-01-15 Nelson Chu <[email protected]>
414
415 * elfnn-riscv.c: Comments tidy and improvement.
416 * elfxx-riscv.c: Likewise.
417 * elfxx-riscv.h: Likewise.
418
8ca9c7eb
L
4192021-01-14 H.J. Lu <[email protected]>
420
421 PR ld/26688
422 * elf32-bfin.c (bfinfdpic_relocate_section): Skip non SEC_ALLOC
423 section for R_BFIN_FUNCDESC.
424
7e0d77ef
NC
4252021-01-14 Nick Clifton <[email protected]>
426
427 * elf.c (elfcore_grok_win32pstatus): Check for a note type of 0.
428
5347ed60
AM
4292021-01-13 Alan Modra <[email protected]>
430
431 * Makefile.in: Regenerate.
432 * doc/Makefile.in: Regenerate.
433
b209b5a6
AM
4342021-01-13 Alan Modra <[email protected]>
435
436 PR 27160
437 * section.c (struct bfd_section): Remove pattern field.
438 (BFD_FAKE_SECTION): Adjust to suit.
439 * bfd-in2.h: Regenerate.
440 * elflink.c (compare_link_order, elf_fixup_link_order): Delete.
441 (bfd_elf_final_link): Don't call elf_fixup_link_order.
442
d546b610
L
4432021-01-12 H.J. Lu <[email protected]>
444
445 PR binutils/26792
446 * configure.ac: Use GNU_MAKE_JOBSERVER.
447 * aclocal.m4: Regenerated.
448 * configure: Likewise.
449
c2e9a4a3
L
4502021-01-12 H.J. Lu <[email protected]>
451
452 PR ld/27171
453 * reloc.c (bfd_perform_relocation): Adjust R_AMD64_DIR64 and
454 R_AMD64_DIR32 relocations for PE/x86-64 inputs.
455
83b33c6c
L
4562021-01-11 H.J. Lu <[email protected]>
457
458 PR ld/27173
459 * configure: Regenerated.
460
a8aa72b9
NC
4612021-01-11 Nick Clifton <[email protected]>
462
463 * po/fr.po: Updated French translation.
464 * po/pt.po: Updated Portuguese translation.
465 * po/sr.po: Updated Serbian translation.
466 * po/uk.po: Updated Ukranian translation.
467
a4966cd9
L
4682021-01-09 H.J. Lu <[email protected]>
469
470 * configure: Regenerated.
471
0a94990b
L
4722021-01-09 H.J. Lu <[email protected]>
473
474 PR ld/27166
475 * elfxx-x86.c (_bfd_x86_elf_merge_gnu_properties): Handle
476 -z lam-u48 and -z lam-u57.
477
573fe3fb
NC
4782021-01-09 Nick Clifton <[email protected]>
479
480 * version.m4: Change to 2.36.50.
481 * configure: Regenerate.
482 * po/bfd.pot: Regenerate.
483
055bc77a
NC
4842021-01-09 Nick Clifton <[email protected]>
485
486 * 2.36 release branch crated.
487
ba9e922f
L
4882021-01-08 H.J. Lu <[email protected]>
489
490 * elfxx-x86.c (_bfd_x86_elf_link_setup_gnu_properties): Also set
491 LAM_U57 when setting LAM_U48.
492
b1b29aa5
L
4932021-01-08 H.J. Lu <[email protected]>
494
495 PR ld/26256
496 PR ld/27160
497 * elflink.c (elf_fixup_link_order): Verify that fixing up
498 SHF_LINK_ORDER doesn't increase the output section size.
499
64307045
AM
5002021-01-09 Alan Modra <[email protected]>
501
502 * configure: Regenerate.
503
f4782128
ST
5042021-01-07 Samuel Thibault <[email protected]>
505
506 * configure: Regenerate.
507
d1bcae83
L
5082021-01-07 H.J. Lu <[email protected]>
509
510 PR 27109
511 * aix386-core.c (core_aix386_vec): Initialize
512 keep_unused_section_symbol to TARGET_KEEP_UNUSED_SECTION_SYMBOLS.
513 * aout-target.h (MY (vec)): Likewise.
514 * binary.c (binary_vec): Likewise.
515 * cisco-core.c (core_cisco_be_vec): Likewise.
516 (core_cisco_le_vec): Likewise.
517 * coff-alpha.c (alpha_ecoff_le_vec): Likewise.
518 * coff-i386.c (TARGET_SYM): Likewise.
519 (TARGET_SYM_BIG): Likewise.
520 * coff-ia64.c (TARGET_SYM): Likewise.
521 * coff-mips.c (mips_ecoff_le_vec): Likewise.
522 (mips_ecoff_be_vec): Likewise.
523 (mips_ecoff_bele_vec): Likewise.
524 * coff-rs6000.c (rs6000_xcoff_vec): Likewise.
525 (powerpc_xcoff_vec): Likewise.
526 * coff-sh.c (sh_coff_small_vec): Likewise.
527 (sh_coff_small_le_vec): Likewise.
528 * coff-tic30.c (tic30_coff_vec): Likewise.
529 * coff-tic54x.c (tic54x_coff0_vec): Likewise.
530 (tic54x_coff0_beh_vec): Likewise.
531 (tic54x_coff1_vec): Likewise.
532 (tic54x_coff1_beh_vec): Likewise.
533 (tic54x_coff2_vec): Likewise.
534 (tic54x_coff2_beh_vec): Likewise.
535 * coff-x86_64.c (TARGET_SYM): Likewise.
536 (TARGET_SYM_BIG): Likewise.
537 * coff64-rs6000.c (rs6000_xcoff64_vec): Likewise.
538 (rs6000_xcoff64_aix_vec): Likewise.
539 * coffcode.h (CREATE_BIG_COFF_TARGET_VEC): Likewise.
540 (CREATE_BIGHDR_COFF_TARGET_VEC): Likewise.
541 (CREATE_LITTLE_COFF_TARGET_VEC): Likewise.
542 * elfxx-target.h (TARGET_BIG_SYM): Likewise.
543 (TARGET_LITTLE_SYM): Likewise.
544 * hppabsd-core.c (core_hppabsd_vec): Likewise.
545 * hpux-core.c (core_hpux_vec): Likewise.
546 * i386msdos.c (i386_msdos_vec): Likewise.
547 * ihex.c (ihex_vec): Likewise.
548 * irix-core.c (core_irix_vec): Likewise.
549 * mach-o-target.c (TARGET_NAME): Likewise.
550 * mmo.c (mmix_mmo_vec): Likewise.
551 * netbsd-core.c (core_netbsd_vec): Likewise.
552 * osf-core.c (core_osf_vec): Likewise.
553 * pdp11.c (MY (vec)): Likewise.
554 * pef.c (pef_vec): Likewise.
555 (pef_xlib_vec): Likewise.
556 * plugin.c (plugin_vec): Likewise.
557 * ppcboot.c (powerpc_boot_vec): Likewise.
558 * ptrace-core.c (core_ptrace_vec): Likewise.
559 * sco5-core.c (core_sco5_vec): Likewise.
560 * som.c (hppa_som_vec): Likewise.
561 * srec.c (srec_vec): Likewise.
562 (symbolsrec_vec): Likewise.
563 * tekhex.c (tekhex_vec): Likewise.
564 * trad-core.c (core_trad_vec): Likewise.
565 * verilog.c (verilog_vec): Likewise.
566 * vms-alpha.c (alpha_vms_vec): Likewise.
567 * vms-lib.c (alpha_vms_lib_txt_vec): Likewise.
568 * wasm-module.c (wasm_vec): Likewise.
569 * xsym.c (sym_vec): Likewise.
570 * elf.c (ignore_section_sym): Return TRUE if BSF_SECTION_SYM_USED
571 isn't set.
572 (elf_map_symbols): Don't include ignored section symbols.
573 * elfcode.h (elf_slurp_symbol_table): Also set
574 BSF_SECTION_SYM_USED on STT_SECTION symbols.
575 * elflink.c (bfd_elf_final_link): Generated section symbols only
576 when emitting relocations or reqired.
577 * elfxx-x86.h (TARGET_KEEP_UNUSED_SECTION_SYMBOLS): New.
578 * syms.c (BSF_SECTION_SYM_USED): New.
579 * targets.c (TARGET_KEEP_UNUSED_SECTION_SYMBOLS): New.
580 (bfd_target): Add keep_unused_section_symbols.
581 (bfd_keep_unused_section_symbols): New.
582 * bfd-in2.h: Regenerated.
583
17d60030
NC
5842021-01-07 Nick Clifton <[email protected]>
585
586 PR 25713
587 * bfdio.c (_bfd_real_fopen): For Win32 convert relative paths to
588 absolute paths and check to see if they are longer than MAX_PATH.
589
aa881ecd
PT
5902021-01-07 Philipp Tomsich <[email protected]>
591
592 * elfxx-riscv.c (riscv_std_z_ext_strtab): Added zihintpause.
593
2652cfad
CXW
5942021-01-07 Claire Xenia Wolf <[email protected]>
595 Jim Wilson <[email protected]>
596 Andrew Waterman <[email protected]>
597 Maxim Blinov <[email protected]>
598 Kito Cheng <[email protected]>
599 Nelson Chu <[email protected]>
600
601 * elfxx-riscv.c (riscv_std_z_ext_strtab): Added zba, zbb and zbc.
602
d4e57b87
L
6032021-01-06 H.J. Lu <[email protected]>
604
605 * elf32-bfin.c (bfin_check_relocs): Check bfd_link_hash_indirect.
606 (bfinfdpic_check_relocs): Likewise.
607
599c86c4
AM
6082021-01-06 Alan Modra <[email protected]>
609
610 * elf32-score.c (s3_bfd_score_info_to_howto): Report an error
611 on unknown r_type.
612 * elf32-score7.c (s7_bfd_score_info_to_howto): Likewise.
613
3677b729
AM
6142021-01-06 Alan Modra <[email protected]>
615
616 * config.bfd (sparc-*-solaris2*): Add sparc_elf32_vec.
617 (sparc64-*-solaris2*): Add sparc_elf64_vec and
618 sparc_elf32_vec.
619
fbc09e7a
MC
6202021-01-06 Marcus Comstedt <[email protected]>
621
622 * config.bfd: Added targets riscv64be*-*-*, riscv32be*-*-* and
623 riscvbe*-*-*. Also added riscv_elf[32|64]_be_vec.
624 * configure.ac: Handle riscv_elf[32|64]_be_vec.
625 * configure: Regenerate.
626 * elfnn-riscv.c: Include <limits.h> and define CHAR_BIT for
627 riscv_is_insn_reloc.
628 (riscv_get_insn): RISC-V instructions are always little endian, but
629 bfd_get may be used for big-endian, so add new riscv_get_insn to handle
630 the insturctions.
631 (riscv_put_insn): Likewsie.
632 (riscv_is_insn_reloc): Check if we are relocaing an instruction.
633 (perform_relocation): Call riscv_is_insn_reloc to decide if we should
634 use riscv_[get|put]_insn or bfd_[get|put].
635 (riscv_zero_pcrel_hi_reloc): Use riscv_[get|put]_insn, bfd_[get|put]l32
636 or bfd_[get|put]l16 for code.
637 (riscv_elf_relocate_section): Likewise.
638 (riscv_elf_finish_dynamic_symbol): Likewise.
639 (riscv_elf_finish_dynamic_sections): Likewise.
640 (_bfd_riscv_relax_call): Likewise.
641 (_bfd_riscv_relax_lui): Likewise.
642 (_bfd_riscv_relax_align): Likewise.
643 (_bfd_riscv_relax_pc): Likewise.
644 (riscv_elf_object_p): Handled for big endian.
645 (TARGET_BIG_SYM, TARGET_BIG_NAME): Defined.
646 * targets.c: Add riscv_elf[32|64]_be_vec.
647 (_bfd_target_vector): Likewise.
648
c8bad65e
AM
6492021-01-05 Alan Modra <[email protected]>
650
651 * elflink.c (bfd_elf_link_record_dynamic_symbol): Handle no_export
652 for relocatable executable.
653
de6a7ee4
AM
6542021-01-05 Alan Modra <[email protected]>
655
656 * vms-alpha.c (_bfd_vms_slurp_egsd): Read flags after size check.
657
18b98722
NC
6582021-01-05 Nelson Chu <[email protected]>
659
660 * elfnn-riscv.c (allocate_dynrelocs): When we are generating pde,
661 make sure gp symbol is output as a dynamic symbol.
662
cd6d537c
L
6632021-01-04 H.J. Lu <[email protected]>
664
665 PR ld/26256
666 * elflink.c (compare_link_order): Place unordered sections before
667 ordered sections.
668 (elf_fixup_link_order): Add a link info argument. Allow mixed
669 ordered and unordered input sections for non-relocatable link.
670 Sort the consecutive bfd_indirect_link_order sections with the
671 same pattern. Change the offsets of the bfd_indirect_link_order
672 sections only.
673 (bfd_elf_final_link): Pass info to elf_fixup_link_order.
674 * section.c (bfd_section): Add pattern.
675 (BFD_FAKE_SECTION): Initialize pattern to NULL.
676 * bfd-in2.h: Regenerated.
677
dbb078f6
AF
6782021-01-04 Alexander Fedotov <[email protected]>
679
680 * elf32-arm.c (elf32_arm_print_private_bfd_data): Prefix hex value
681 of private flags with 0x.
682 * elfnn-aarch64.c (elfNN_aarch64_print_private_bfd_data): Likewise.
683
5b4293ba
AM
6842021-01-04 Alan Modra <[email protected]>
685
686 PR 26822
687 * elflink.c (elf_link_input_bfd): Use the file base name in
688 linker generated STT_FILE symbols.
689
4c0e540e
NC
6902021-01-04 Nelson Chu <[email protected]>
691
692 * elfxx-riscv.c (riscv_compare_subsets): Removed static.
693 * elfxx-riscv.h: Add declaration.
694 * elfnn-riscv.c (riscv_merge_multi_letter_ext): Use
695 riscv_compare_subsets to check the orders.
696 (riscv_skip_prefix): Removed.
697 (riscv_prefix_cmp): Removed.
698
e9cf3691
AM
6992021-01-04 Alan Modra <[email protected]>
700
701 PR 26741
702 * elfxx-riscv.c (riscv_parse_prefixed_ext): Free subset after
703 calculating subset version length.
704
f9a6a8f0
AM
7052021-01-01 Nicolas Boulenguez <[email protected]>
706
707 * xcofflink.c: Correct spelling in comments.
708
250d07de
AM
7092021-01-01 Alan Modra <[email protected]>
710
711 Update year range in copyright notice of all files.
712
c2795844 713For older changes see ChangeLog-2020
3499769a 714\f
c2795844 715Copyright (C) 2021 Free Software Foundation, Inc.
3499769a
AM
716
717Copying and distribution of this file, with or without modification,
718are permitted in any medium without royalty provided the copyright
719notice and this notice are preserved.
720
721Local Variables:
722mode: change-log
723left-margin: 8
724fill-column: 74
725version-control: never
726End:
This page took 0.738143 seconds and 4 git commands to generate.