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