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