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