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