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