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