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