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