]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - bfd/ChangeLog
gdb/testsuite: remove old comment
[thirdparty/binutils-gdb.git] / bfd / ChangeLog
CommitLineData
31c711a2
AM
12021-02-11 Alan Modra <amodra@gmail.com>
2
3 PR 27294
4 * elf32-avr.c (avr_elf32_load_records_from_section): Use
5 bfd_malloc_and_get_section. Use bfd_byte* vars and remove then
6 unnecessary casts.
7
6db658c5
AM
82021-02-11 Alan Modra <amodra@gmail.com>
9
10 PR 27291
11 * section.c (bfd_get_section_contents): Avoid possible overflow
12 when range checking offset and count.
13 (bfd_set_section_contents): Likewise.
14
95148614
NA
152021-02-03 Nick Alcock <nick.alcock@oracle.com>
16
17 * configure.ac (SHARED_LIBADD): Remove explicit -lintl population in
18 favour of LIBINTL.
19 * configure: Regenerated.
20
a57d1773
AM
212021-02-09 Alan Modra <amodra@gmail.com>
22
23 * config.bfd (arm*-*-symbianelf*): Move from obsolete to removed.
24 * configure.ac: Delete symbian entries.
25 * elf-bfd.h (enum elf_target_os): Delete is_symbian.
26 * elf32-arm.c: Remove symbian support. Formatting.
27 * targets.c: Delete symbian entries.
28 * configure: Regenerate.
29
1a2f1b54
L
302021-02-04 H.J. Lu <hongjiu.lu@intel.com>
31
32 PR ld/19609
33 * elf64-x86-64.c (elf_x86_64_relocate_section): Provide more
34 info when failed to convert GOTPCREL relocation.
35
24075dcc
NC
362021-02-04 Nelson Chu <nelson.chu@sifive.com>
37
38 * elfxx-riscv.c (riscv_parse_prefixed_ext): Removed zb*.
39
7d409ac0
AM
402021-02-04 Alan Modra <amodra@gmail.com>
41
42 PR 27311
43 * elflink.c (elf_link_add_object_symbols): Don't pull in as-needed
44 libraries for IR references on pass over libraries after LTO
45 recompilation.
46
f01fb44c
AM
472021-02-03 Alan Modra <amodra@gmail.com>
48
49 PR 27311
50 * elflink.c (_bfd_elf_add_default_symbol): Revert last two changes.
51 (elf_link_add_object_symbols): Here too. Don't pull in as-needed
52 libraries when H is an indirect symbol after calling
53 _bfd_elf_add_default_symbol.
54
69551367
AM
552021-02-03 Alan Modra <amodra@gmail.com>
56
57 PR 27311
58 * elflink.c (_bfd_elf_add_default_symbol): Clear override when
59 undecorated symbol will have a different version.
60
9918bff7
AM
612021-02-02 Alan Modra <amodra@gmail.com>
62
63 PR 27311
64 * elflink.c (_bfd_elf_add_default_symbol): Add override parameter.
65 Use when handling default versioned symbol. Rename existing
66 override variable to nondef_override and use for non-default
67 versioned symbol.
68 (elf_link_add_object_symbols): Adjust call to suit. Don't
69 pull in as-needed libraries when override is set.
70
1f568f9a
EH
712021-02-01 Emery Hemingway <ehmry@posteo.net>
72
73 * config.bfd: Add *-*-genode* as a target for AArch64 and x86.
74
34c10233
EV
752021-02-01 Egor Vishnyakov <lenvampir@yandex.ru>
76
77 PR 27254
78 * elf32-rl78.c (rl78_elf_relocate_section): Fix calculation of
79 offset for the R_RL78_RH_SADDR relocation.
80
c4566785
AM
812021-01-29 Alan Modra <amodra@gmail.com>
82
83 PR 27271
84 * elflink.c (bfd_elf_link_record_dynamic_symbol): Don't segfault
85 on symbols defined in absolute or other special sections.
86
def97fb9
AM
872021-01-28 Alan Modra <amodra@gmail.com>
88
89 PR 27259
90 * elflink.c (_bfd_elf_gc_mark_extra_sections): Use linker_mark to
91 prevent endless looping of linked-to sections.
92
4cb1265b
MS
932020-12-17 Mihails Strasuns <mihails.strasuns@intel.com>
94
95 * bfd-elf.h (elfcore_write_file_note): New function.
96 * elf.c (elfcore_write_file_note): New function.
97
4287950e
AM
982021-01-26 Alan Modra <amodra@gmail.com>
99
100 * elf32-ft32.c (ft32_reloc_type_lookup): Don't miss ft32_reloc_map[0].
101
940d0202
L
1022021-01-24 H.J. Lu <hongjiu.lu@intel.com>
103
104 PR binutils/27231
105 * dwarf2.c (read_rnglists): Ignore empty range when parsing line
106 number tables.
107
18454c15
L
1082021-01-23 H.J. Lu <hongjiu.lu@intel.com>
109
110 PR binutils/27231
111 * dwarf2.c (read_rnglists): Advance rngs_ptr after
112 _bfd_safe_read_leb128 when parsing DW_RLE_offset_pair.
113
4bd7c902
AM
1142021-01-20 Alan Modra <amodra@gmail.com>
115
116 * elf32-ppc.c: Delete outdated comment.
117 (TARGET_KEEP_UNUSED_SECTION_SYMBOLS): Define.
118 * elf64-ppc.c (TARGET_KEEP_UNUSED_SECTION_SYMBOLS): Define.
119
8bd10d6b
AM
1202021-01-20 Alan Modra <amodra@gmail.com>
121
122 * elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Don't assume
123 section symbols are present.
124
30845f11
AM
1252021-01-19 Alan Modra <amodra@gmail.com>
126
127 * elf64-ppc.c (elf_hash_entry): New inline function. Use
128 throughout to replace casts.
129 (branch_reloc_hash_match): Remove const from params.
130 (use_local_plt): New function.
131 (allocate_dynrelocs, ppc_build_one_stub, ppc_size_one_stub),
132 (build_global_entry_stubs_and_plt, ppc64_elf_relocate_section):
133 Use use_local_plt.
134 * elf32-ppc.c (use_local_plt): New function.
135 (allocate_dynrelocs, ppc_elf_relocate_section),
136 (write_global_sym_plt): Use use_local_plt.
137
994b2513
L
1382021-01-17 H.J. Lu <hongjiu.lu@intel.com>
139
140 PR ld/27193
141 * elflink.c (elf_create_symbuf): Also ignore section symbols.
142
75a933f3
L
1432021-01-16 H.J. Lu <hongjiu.lu@intel.com>
144
145 PR ld/23169
146 * elfxx-x86.c (_bfd_x86_elf_link_fixup_ifunc_symbol): Don't
147 check pointer_equality_needed.
148
68b00778
L
1492021-01-15 H.J. Lu <hongjiu.lu@intel.com>
150
151 * elf-linker-x86.h (elf_linker_x86_params): Add
152 report_relative_reloc.
153 * elf32-i386.c (elf_i386_relocate_section): Call
154 _bfd_x86_elf_link_report_relative_reloc to report relative
155 relocations for -z report-relative-reloc.
156 (elf_i386_finish_dynamic_symbol): Likewse.
157 * elf64-x86-64.c (elf_x86_64_relocate_section): Likewse.
158 (elf_x86_64_finish_dynamic_symbol): Likewse.
159 * elfxx-x86.c (_bfd_x86_elf_link_report_relative_reloc): New
160 function.
161 * elfxx-x86.h (_bfd_x86_elf_link_report_relative_reloc): New
162 prototype.
163
ad92f33d
AM
1642021-01-16 Alan Modra <amodra@gmail.com>
165
166 * compress.c (decompress_contents): Tidy inflateEnd result test.
167
eb6e6af8
AM
1682021-01-16 Alan Modra <amodra@gmail.com>
169
170 PR 26002
171 * elflink.c (elf_link_output_extsym): Use version 1 in
172 .gnu.version for undefined unversioned symbols.
173
4bb5732e
NC
1742021-01-15 Nelson Chu <nelson.chu@sifive.com>
175
176 * elfnn-riscv.c (riscv_relax_delete_bytes): Fixed the indent that
177 caused the by previous commit accidentally.
178
1942a048
NC
1792021-01-15 Nelson Chu <nelson.chu@sifive.com>
180
181 * elfnn-riscv.c: Indent, labels and GNU coding standards tidy,
182 also aligned the code.
183
b800637e
NC
1842021-01-15 Nelson Chu <nelson.chu@sifive.com>
185
186 * elfnn-riscv.c (riscv_merge_attributes): Fix typos of messages.
187
dcd709e0
NC
1882021-01-15 Nelson Chu <nelson.chu@sifive.com>
189
190 * elfnn-riscv.c: Comments tidy and improvement.
191 * elfxx-riscv.c: Likewise.
192 * elfxx-riscv.h: Likewise.
193
8ca9c7eb
L
1942021-01-14 H.J. Lu <hongjiu.lu@intel.com>
195
196 PR ld/26688
197 * elf32-bfin.c (bfinfdpic_relocate_section): Skip non SEC_ALLOC
198 section for R_BFIN_FUNCDESC.
199
7e0d77ef
NC
2002021-01-14 Nick Clifton <nickc@redhat.com>
201
202 * elf.c (elfcore_grok_win32pstatus): Check for a note type of 0.
203
5347ed60
AM
2042021-01-13 Alan Modra <amodra@gmail.com>
205
206 * Makefile.in: Regenerate.
207 * doc/Makefile.in: Regenerate.
208
b209b5a6
AM
2092021-01-13 Alan Modra <amodra@gmail.com>
210
211 PR 27160
212 * section.c (struct bfd_section): Remove pattern field.
213 (BFD_FAKE_SECTION): Adjust to suit.
214 * bfd-in2.h: Regenerate.
215 * elflink.c (compare_link_order, elf_fixup_link_order): Delete.
216 (bfd_elf_final_link): Don't call elf_fixup_link_order.
217
d546b610
L
2182021-01-12 H.J. Lu <hongjiu.lu@intel.com>
219
220 PR binutils/26792
221 * configure.ac: Use GNU_MAKE_JOBSERVER.
222 * aclocal.m4: Regenerated.
223 * configure: Likewise.
224
c2e9a4a3
L
2252021-01-12 H.J. Lu <hongjiu.lu@intel.com>
226
227 PR ld/27171
228 * reloc.c (bfd_perform_relocation): Adjust R_AMD64_DIR64 and
229 R_AMD64_DIR32 relocations for PE/x86-64 inputs.
230
83b33c6c
L
2312021-01-11 H.J. Lu <hongjiu.lu@intel.com>
232
233 PR ld/27173
234 * configure: Regenerated.
235
a8aa72b9
NC
2362021-01-11 Nick Clifton <nickc@redhat.com>
237
238 * po/fr.po: Updated French translation.
239 * po/pt.po: Updated Portuguese translation.
240 * po/sr.po: Updated Serbian translation.
241 * po/uk.po: Updated Ukranian translation.
242
a4966cd9
L
2432021-01-09 H.J. Lu <hongjiu.lu@intel.com>
244
245 * configure: Regenerated.
246
0a94990b
L
2472021-01-09 H.J. Lu <hongjiu.lu@intel.com>
248
249 PR ld/27166
250 * elfxx-x86.c (_bfd_x86_elf_merge_gnu_properties): Handle
251 -z lam-u48 and -z lam-u57.
252
573fe3fb
NC
2532021-01-09 Nick Clifton <nickc@redhat.com>
254
255 * version.m4: Change to 2.36.50.
256 * configure: Regenerate.
257 * po/bfd.pot: Regenerate.
258
055bc77a
NC
2592021-01-09 Nick Clifton <nickc@redhat.com>
260
261 * 2.36 release branch crated.
262
ba9e922f
L
2632021-01-08 H.J. Lu <hongjiu.lu@intel.com>
264
265 * elfxx-x86.c (_bfd_x86_elf_link_setup_gnu_properties): Also set
266 LAM_U57 when setting LAM_U48.
267
b1b29aa5
L
2682021-01-08 H.J. Lu <hongjiu.lu@intel.com>
269
270 PR ld/26256
271 PR ld/27160
272 * elflink.c (elf_fixup_link_order): Verify that fixing up
273 SHF_LINK_ORDER doesn't increase the output section size.
274
64307045
AM
2752021-01-09 Alan Modra <amodra@gmail.com>
276
277 * configure: Regenerate.
278
f4782128
ST
2792021-01-07 Samuel Thibault <samuel.thibault@gnu.org>
280
281 * configure: Regenerate.
282
d1bcae83
L
2832021-01-07 H.J. Lu <hongjiu.lu@intel.com>
284
285 PR 27109
286 * aix386-core.c (core_aix386_vec): Initialize
287 keep_unused_section_symbol to TARGET_KEEP_UNUSED_SECTION_SYMBOLS.
288 * aout-target.h (MY (vec)): Likewise.
289 * binary.c (binary_vec): Likewise.
290 * cisco-core.c (core_cisco_be_vec): Likewise.
291 (core_cisco_le_vec): Likewise.
292 * coff-alpha.c (alpha_ecoff_le_vec): Likewise.
293 * coff-i386.c (TARGET_SYM): Likewise.
294 (TARGET_SYM_BIG): Likewise.
295 * coff-ia64.c (TARGET_SYM): Likewise.
296 * coff-mips.c (mips_ecoff_le_vec): Likewise.
297 (mips_ecoff_be_vec): Likewise.
298 (mips_ecoff_bele_vec): Likewise.
299 * coff-rs6000.c (rs6000_xcoff_vec): Likewise.
300 (powerpc_xcoff_vec): Likewise.
301 * coff-sh.c (sh_coff_small_vec): Likewise.
302 (sh_coff_small_le_vec): Likewise.
303 * coff-tic30.c (tic30_coff_vec): Likewise.
304 * coff-tic54x.c (tic54x_coff0_vec): Likewise.
305 (tic54x_coff0_beh_vec): Likewise.
306 (tic54x_coff1_vec): Likewise.
307 (tic54x_coff1_beh_vec): Likewise.
308 (tic54x_coff2_vec): Likewise.
309 (tic54x_coff2_beh_vec): Likewise.
310 * coff-x86_64.c (TARGET_SYM): Likewise.
311 (TARGET_SYM_BIG): Likewise.
312 * coff64-rs6000.c (rs6000_xcoff64_vec): Likewise.
313 (rs6000_xcoff64_aix_vec): Likewise.
314 * coffcode.h (CREATE_BIG_COFF_TARGET_VEC): Likewise.
315 (CREATE_BIGHDR_COFF_TARGET_VEC): Likewise.
316 (CREATE_LITTLE_COFF_TARGET_VEC): Likewise.
317 * elfxx-target.h (TARGET_BIG_SYM): Likewise.
318 (TARGET_LITTLE_SYM): Likewise.
319 * hppabsd-core.c (core_hppabsd_vec): Likewise.
320 * hpux-core.c (core_hpux_vec): Likewise.
321 * i386msdos.c (i386_msdos_vec): Likewise.
322 * ihex.c (ihex_vec): Likewise.
323 * irix-core.c (core_irix_vec): Likewise.
324 * mach-o-target.c (TARGET_NAME): Likewise.
325 * mmo.c (mmix_mmo_vec): Likewise.
326 * netbsd-core.c (core_netbsd_vec): Likewise.
327 * osf-core.c (core_osf_vec): Likewise.
328 * pdp11.c (MY (vec)): Likewise.
329 * pef.c (pef_vec): Likewise.
330 (pef_xlib_vec): Likewise.
331 * plugin.c (plugin_vec): Likewise.
332 * ppcboot.c (powerpc_boot_vec): Likewise.
333 * ptrace-core.c (core_ptrace_vec): Likewise.
334 * sco5-core.c (core_sco5_vec): Likewise.
335 * som.c (hppa_som_vec): Likewise.
336 * srec.c (srec_vec): Likewise.
337 (symbolsrec_vec): Likewise.
338 * tekhex.c (tekhex_vec): Likewise.
339 * trad-core.c (core_trad_vec): Likewise.
340 * verilog.c (verilog_vec): Likewise.
341 * vms-alpha.c (alpha_vms_vec): Likewise.
342 * vms-lib.c (alpha_vms_lib_txt_vec): Likewise.
343 * wasm-module.c (wasm_vec): Likewise.
344 * xsym.c (sym_vec): Likewise.
345 * elf.c (ignore_section_sym): Return TRUE if BSF_SECTION_SYM_USED
346 isn't set.
347 (elf_map_symbols): Don't include ignored section symbols.
348 * elfcode.h (elf_slurp_symbol_table): Also set
349 BSF_SECTION_SYM_USED on STT_SECTION symbols.
350 * elflink.c (bfd_elf_final_link): Generated section symbols only
351 when emitting relocations or reqired.
352 * elfxx-x86.h (TARGET_KEEP_UNUSED_SECTION_SYMBOLS): New.
353 * syms.c (BSF_SECTION_SYM_USED): New.
354 * targets.c (TARGET_KEEP_UNUSED_SECTION_SYMBOLS): New.
355 (bfd_target): Add keep_unused_section_symbols.
356 (bfd_keep_unused_section_symbols): New.
357 * bfd-in2.h: Regenerated.
358
17d60030
NC
3592021-01-07 Nick Clifton <nickc@redhat.com>
360
361 PR 25713
362 * bfdio.c (_bfd_real_fopen): For Win32 convert relative paths to
363 absolute paths and check to see if they are longer than MAX_PATH.
364
aa881ecd
PT
3652021-01-07 Philipp Tomsich <prt@gnu.org>
366
367 * elfxx-riscv.c (riscv_std_z_ext_strtab): Added zihintpause.
368
2652cfad
CXW
3692021-01-07 Claire Xenia Wolf <claire@symbioticeda.com>
370 Jim Wilson <jimw@sifive.com>
371 Andrew Waterman <andrew@sifive.com>
372 Maxim Blinov <maxim.blinov@embecosm.com>
373 Kito Cheng <kito.cheng@sifive.com>
374 Nelson Chu <nelson.chu@sifive.com>
375
376 * elfxx-riscv.c (riscv_std_z_ext_strtab): Added zba, zbb and zbc.
377
d4e57b87
L
3782021-01-06 H.J. Lu <hongjiu.lu@intel.com>
379
380 * elf32-bfin.c (bfin_check_relocs): Check bfd_link_hash_indirect.
381 (bfinfdpic_check_relocs): Likewise.
382
599c86c4
AM
3832021-01-06 Alan Modra <amodra@gmail.com>
384
385 * elf32-score.c (s3_bfd_score_info_to_howto): Report an error
386 on unknown r_type.
387 * elf32-score7.c (s7_bfd_score_info_to_howto): Likewise.
388
3677b729
AM
3892021-01-06 Alan Modra <amodra@gmail.com>
390
391 * config.bfd (sparc-*-solaris2*): Add sparc_elf32_vec.
392 (sparc64-*-solaris2*): Add sparc_elf64_vec and
393 sparc_elf32_vec.
394
fbc09e7a
MC
3952021-01-06 Marcus Comstedt <marcus@mc.pp.se>
396
397 * config.bfd: Added targets riscv64be*-*-*, riscv32be*-*-* and
398 riscvbe*-*-*. Also added riscv_elf[32|64]_be_vec.
399 * configure.ac: Handle riscv_elf[32|64]_be_vec.
400 * configure: Regenerate.
401 * elfnn-riscv.c: Include <limits.h> and define CHAR_BIT for
402 riscv_is_insn_reloc.
403 (riscv_get_insn): RISC-V instructions are always little endian, but
404 bfd_get may be used for big-endian, so add new riscv_get_insn to handle
405 the insturctions.
406 (riscv_put_insn): Likewsie.
407 (riscv_is_insn_reloc): Check if we are relocaing an instruction.
408 (perform_relocation): Call riscv_is_insn_reloc to decide if we should
409 use riscv_[get|put]_insn or bfd_[get|put].
410 (riscv_zero_pcrel_hi_reloc): Use riscv_[get|put]_insn, bfd_[get|put]l32
411 or bfd_[get|put]l16 for code.
412 (riscv_elf_relocate_section): Likewise.
413 (riscv_elf_finish_dynamic_symbol): Likewise.
414 (riscv_elf_finish_dynamic_sections): Likewise.
415 (_bfd_riscv_relax_call): Likewise.
416 (_bfd_riscv_relax_lui): Likewise.
417 (_bfd_riscv_relax_align): Likewise.
418 (_bfd_riscv_relax_pc): Likewise.
419 (riscv_elf_object_p): Handled for big endian.
420 (TARGET_BIG_SYM, TARGET_BIG_NAME): Defined.
421 * targets.c: Add riscv_elf[32|64]_be_vec.
422 (_bfd_target_vector): Likewise.
423
c8bad65e
AM
4242021-01-05 Alan Modra <amodra@gmail.com>
425
426 * elflink.c (bfd_elf_link_record_dynamic_symbol): Handle no_export
427 for relocatable executable.
428
de6a7ee4
AM
4292021-01-05 Alan Modra <amodra@gmail.com>
430
431 * vms-alpha.c (_bfd_vms_slurp_egsd): Read flags after size check.
432
18b98722
NC
4332021-01-05 Nelson Chu <nelson.chu@sifive.com>
434
435 * elfnn-riscv.c (allocate_dynrelocs): When we are generating pde,
436 make sure gp symbol is output as a dynamic symbol.
437
cd6d537c
L
4382021-01-04 H.J. Lu <hongjiu.lu@intel.com>
439
440 PR ld/26256
441 * elflink.c (compare_link_order): Place unordered sections before
442 ordered sections.
443 (elf_fixup_link_order): Add a link info argument. Allow mixed
444 ordered and unordered input sections for non-relocatable link.
445 Sort the consecutive bfd_indirect_link_order sections with the
446 same pattern. Change the offsets of the bfd_indirect_link_order
447 sections only.
448 (bfd_elf_final_link): Pass info to elf_fixup_link_order.
449 * section.c (bfd_section): Add pattern.
450 (BFD_FAKE_SECTION): Initialize pattern to NULL.
451 * bfd-in2.h: Regenerated.
452
dbb078f6
AF
4532021-01-04 Alexander Fedotov <alfedotov@gmail.com>
454
455 * elf32-arm.c (elf32_arm_print_private_bfd_data): Prefix hex value
456 of private flags with 0x.
457 * elfnn-aarch64.c (elfNN_aarch64_print_private_bfd_data): Likewise.
458
5b4293ba
AM
4592021-01-04 Alan Modra <amodra@gmail.com>
460
461 PR 26822
462 * elflink.c (elf_link_input_bfd): Use the file base name in
463 linker generated STT_FILE symbols.
464
4c0e540e
NC
4652021-01-04 Nelson Chu <nelson.chu@sifive.com>
466
467 * elfxx-riscv.c (riscv_compare_subsets): Removed static.
468 * elfxx-riscv.h: Add declaration.
469 * elfnn-riscv.c (riscv_merge_multi_letter_ext): Use
470 riscv_compare_subsets to check the orders.
471 (riscv_skip_prefix): Removed.
472 (riscv_prefix_cmp): Removed.
473
e9cf3691
AM
4742021-01-04 Alan Modra <amodra@gmail.com>
475
476 PR 26741
477 * elfxx-riscv.c (riscv_parse_prefixed_ext): Free subset after
478 calculating subset version length.
479
f9a6a8f0
AM
4802021-01-01 Nicolas Boulenguez <nicolas@debian.org>
481
482 * xcofflink.c: Correct spelling in comments.
483
250d07de
AM
4842021-01-01 Alan Modra <amodra@gmail.com>
485
486 Update year range in copyright notice of all files.
487
c2795844 488For older changes see ChangeLog-2020
3499769a 489\f
c2795844 490Copyright (C) 2021 Free Software Foundation, Inc.
3499769a
AM
491
492Copying and distribution of this file, with or without modification,
493are permitted in any medium without royalty provided the copyright
494notice and this notice are preserved.
495
496Local Variables:
497mode: change-log
498left-margin: 8
499fill-column: 74
500version-control: never
501End: