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