]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - binutils/ChangeLog
gdb/riscv: introduce bare metal core dump support
[thirdparty/binutils-gdb.git] / binutils / ChangeLog
CommitLineData
b63a5e38
AB
12021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
2 Andrew Burgess <andrew.burgess@embecosm.com>
3
4 * readelf.c (get_note_type): Handle NT_GDB_TDESC.
5
d296b736
NC
62021-03-05 Nick Clifton <nickc@redhat.com>
7
8 PR 27387
9 * dwarf.c (display_debug_macro): Handle the displaying of
10 DW_MACRO_define_strp and DW_MACRO_undef_strp in v4
11 .debug_macro.dwo sections.
12
ca0e11aa
NC
132021-03-04 Nick Clifton <nickc@redhat.com>
14
15 PR 27478
16 * objdump.c (process_links): New variable.
17 (usage): Add --process-links.
18 (long_options): Likewise.
19 (dump_bfd): Stop processing once the bfd has been loaded unless
20 this is the main file or process_links has been enabled.
21 (main): Handle the process-links option.
22 * readelf.c (process_links): New variable.
23 (struct filedata): Add is_separate field.
24 (options): Add --process-links.
25 (usage): Likewise.
26 (parse_args): Likewise.
27 (process_file_header): Include the filename when dumping
28 information for separate debuginfo files.
29 (process_program_headers): Likewise.
30 (process_section_headers): Likewise.
31 (process_section_groups): Likewise.
32 (process_relocs): Likewise.
33 (process_dynamic_section): Likewise.
34 (process_version_sections): Likewise.
35 (display_lto_symtab): Likewise.
36 (process_symbol_table): Likewise.
37 (process_syminfo): Likewise.
38 (initialise_dumps_by_name): Likewise.
39 (process_section_contents): Likewise.
40 (process_notes_at): Likewise.
41 (process_notes): Likewise.
42 (open_file): Add is_separate parameter. Use to initialise the
43 is_separate field in the filedata structure.
44 (open_deug): Update call to open_file.
45 (process_object): Add processing of the contents of separate
46 debuginfo files, gated by the process_links variable.
47 (process_archive): Update call to open_file.
48 (process_file): Initialise the is_separate field in the filedata
49 structure.
50 * dwarf.c (load_separate_debug_info_file): Only report the
51 loading of a separate file if debug links are being dumped.
52 * objcopy.c (keep_section_symbols): New variable.
53 (enum command_line_switch): Add OPTION_KEEP_SYMBOLS.
54 (strip_options): Add keep-section-symbols.
55 (copy_options): Likewise.
56 (copy_usage): Likewise.
57 (strip_usage): Likewise.
58 (copy_object): Keep section symbols if requested by command line
59 option.
60 (strip_main): Handle --keep-section-symbols.
61 (copy_main): Likewise.
62 * doc/binutils.texi: Document the new options.
63 * NEWS: Mention the new features.
64 * testsuite/binutils-all/compress.exp (test_gnu_debuglink):
65 Update options passed to objdump. Use diff rather than cmp to
66 compare the dumped data.
67 * testsuite/binutils-all/objdump.WK2: Update regexp.
68 * testsuite/binutils-all/objdump.WK3: Update regexp.
69 * testsuite/binutils-all/objdump.exp: Use --process-links
70 instead of --dwarf=follow-links.
71 * testsuite/binutils-all/readelf.exp (readelf_test): Include
72 readelf's output in the log when the test fails.
73 Add the -P option to the -wKis test.
74 * testsuite/binutils-all/readelf.wKis: Update expected output.
75
fd5c076a
AM
762021-03-03 Alan Modra <amodra@gmail.com>
77
78 PR 27493
79 * objcopy.c (filter_symbols): Apply --weaken to undefined symbols.
80 * NEWS: Mention feature.
81
ecd65684
L
822021-03-01 H.J. Lu <hongjiu.lu@intel.com>
83
84 PR binutils/27486
85 * dwarf.c (load_separate_debug_info): Issue warning only if
86 do_debug_links is set.
87 * testsuite/binutils-all/compress.exp: Run objdump and readelf
88 with missing debug file.
89
6a1224ec
AM
902021-03-01 Alan Modra <amodra@gmail.com>
91
92 PR 27128
93 * doc/binutils.texi: Add nm --with-symbol-versions and
94 --without-symbol-versions documentation.
95 * nm.c (with_symbol_versions): New variable.
96 (enum long_option_values): Delete OPTION_WITH_SYMBOL_VERSIONS.
97 (long_options): Make --with-symbol-versions entry twiddle the flag.
98 Add --without-symbol-versions.
99 (print_symname): Strip version when !with_symbol_versions. Add
100 dynamic version info under control of with_symbol_versions.
101 (main): Remove OPTION_WITH_SYMBOL_VERSIONS case.
102
7fe1b138
FS
1032021-02-26 Fangrui Song <maskray@google.com>
104
105 PR 27408
106 * readelf.c (quiet): New option flag.
107 (enum long_option_values): New enum to hold long option value.
108 (long_options): Add --quiet.
109 (usage): Mention --quiet.
110 (display_rel_file): If quiet is enabled, suppress "no symbols".
111 (main): Handle the new option.
112 * NEWS: Mention --quiet.
113 * docs/binutils.texi: Document --quiet.
114
0e12f6c8
TV
1152021-02-26 Tom de Vries <tdevries@suse.de>
116
117 * dwarf.c (display_debug_addr): Handle dwarf-5 .debug_addr bits.
118
32e4f96c
TV
1192021-02-26 Tom de Vries <tdevries@suse.de>
120
121 PR 27390
122 * dwarf.c: (skip_attr_bytes): Add support for DW_FORM_str* and
123 DW_FORM_addrx*.
124 (read_and_display_attr_value): Likewise.
125
e38332c2
NC
1262021-02-25 Nick Clifton <nickc@redhat.com>
127
128 * dwarf.c (get_type_abbrev_from_form): Accept but ignore sup
129 forms.
130 (read_and_display_attr_value): Handle sup forms.
131 (display_debug_sup): New function. Displays the contents of a
132 .debug_sup section.
133 (load_debug_sup_file): New function. Loads the contents of a file
134 referenced by a .debug_sup section.
135 (check_for_and_load_links): Call load_debug_sup_file.
136 (debug_displays): Add entry for .debug_sup.
137 * dwarf.h (enum dwarf_section_display_enum): Add debug_sup.
138 * readelf.c (process_section_headers): Add support for debug_sup.
139 * doc/debug.options.texi: Note that the =links option will display
140 the contents of .debug_sup sections.
141 * NEWS: Mention the new support.
142
40b02646
AM
1432021-02-25 Alan Modra <amodra@gmail.com>
144
145 PR 27456
146 * rename.c (simple_copy): Mark target_stat ATTRIBUTE_UNUSED.
147
9d3fcfe0
NC
1482021-02-24 Nick Clifton <nickc@redhat.com>
149
150 PR 27285
151 * od-elf32_avr.c (elf32_avr_get_memory_usage): Check for overflows
152 when adding together the section sizes.
153
c74147bb
NC
1542021-02-24 Nick Clifton <nickc@redhat.com>
155
156 * objcopy.c (merge_gnu_build_notes): Remove support for v1/v2 GNU
157 build notes.
158 * readelf.c (print_gnu_build_attribute_description): Likewise.
159
c42c71a1
AM
1602021-02-24 Alan Modra <amodra@gmail.com>
161 Siddhesh Poyarekar <siddhesh@gotplt.org>
162
163 PR 27456
164 * bucomm.h (smart_rename): Update prototype.
165 * rename.c (smart_rename): Add fromfd and preserve_dates params.
166 Pass fromfd and target_stat to simple_copy. Call set_times
167 when preserve_dates.
168 (simple_copy): Accept fromfd rather than from filename. Add
169 target_stat param. Rewind fromfd rather than opening. Open
170 "to" file without O_CREAT. Try to preserve S_ISUID and S_ISGID.
171 * ar.c (write_archive): Rename ofd to tmpfd. Dup tmpfd before
172 closing output temp file, and pass tmpfd to smart_rename.
173 * arsup.c (temp_fd): Rename from real_fd.
174 (ar_save): Dup temp_fd and pass to smart_rename.
175 * objcopy.c (strip_main, copy_main): Likewise, and pass
176 preserve_dates.
177
cca8873d
AM
1782021-02-24 Alan Modra <amodra@gmail.com>
179
180 PR 27456
181 * rename.c: Tidy throughout.
182 (smart_rename): Always copy. Remove windows specific code.
183
4d496013
AM
1842021-02-20 Alan Modra <amodra@gmail.com>
185
186 * testsuite/lib/binutils-common.exp: Whitespace fixes throughout.
187 (run_dump_test): Fail if expecting errors from a file like we do
188 for error strings, if no error is seen.
189
0be51eb4
AM
1902021-02-19 Alan Modra <amodra@gmail.com>
191
192 * testsuite/binutils-all/readelf.exp (pr26548): Run for 32-bit too.
193
3685de75
SP
1942021-02-19 Siddhesh Poyarekar <siddhesh@gotplt.org>
195
196 * ar.c (write_archive): Remove TARGET_STAT. Adjust call to
197 SMART_RENAME.
198 * arsup.c (ar_save): Likewise.
199 * objcopy (strip_main): Don't copy TMPFD. Don't set times on
200 temporary file and adjust call to SMART_RENAME.
201 (copy_main): Likewise.
202 * rename.c [!S_ISLNK]: Remove definitions.
203 (try_preserve_permissions): Remove function.
204 (smart_rename): Remove FD, PRESERVE_DATES arguments. Use
205 rename system call only if TO does not exist.
206 * bucomm.h (smart_rename): Adjust declaration.
207
85684222
NC
2082021-02-18 Nick Clifton <nickc@redhat.com>
209
210 * objcopy.c (merge_gnu_build_notes): Handle notes with a start
211 address that is higher than the end address.
212
b9b204b3
AM
2132021-02-17 Alan Modra <amodra@gmail.com>
214
215 * dwarf.c: Include limits.h.
216 (CHAR_BIT): Provide backup define.
217 (read_leb128): Use CHAR_BIT to size "result" in bits. Correct
218 signed overflow checking.
219 * testsuite/binutils-all/pr26548.s,
220 * testsuite/binutils-all/pr26548.d,
221 * testsuite/binutils-all/pr26548e.d: New tests.
222 * testsuite/binutils-all/readelf.exp: Run them.
223 (readelf_test): Drop unused "xfails" parameter. Update all uses.
224
e6ca1878
JB
2252021-02-16 Jan Beulich <jbeulich@suse.com>
226
227 * dwarf.c (process_debug_info): Initialize "dwo_id".
228
208599d9
AM
2292021-02-15 Alan Modra <amodra@gmail.com>
230
231 * objdump.c (load_specific_debug_section): Don't call
232 bfd_cache_section_contents. Rearrange so that
233 bfd_get_full_section_contents is not called on path where
234 bfd_simple_get_relocated_section_contents is called.
235 Don't set section->user_data.
236 (free_debug_section): Always free section->start. Don't twiddle
237 section flags.
238 * readelf.c (load_specific_debug_section): Don't set user_data.
239 * dwarf.h (struct dwarf_section): Remove use_data field.
240 * dwarf.c (NO_ABBREVS, ABBREV): Adjust to suit.
241
1781a9d0
AM
2422021-02-15 Alan Modra <amodra@gmail.com>
243
244 * testsuite/binutils-all/compress.exp: Remove nds32 xfails.
245 * testsuite/binutils-all/objdump.exp: Likewise.
246
1944212b
AM
2472021-02-14 Alan Modra <amodra@gmail.com>
248
249 * objdump.c (slurp_symtab): Don't add an extra entry for NULL
250 to the symbol array.
251 (slurp_dynamic_symtab): Likewise.
252 (dump_bfd): Formatting. Copy terminating NULL from extra_syms.
253
0d0a0d86
AM
2542021-02-14 Alan Modra <amodra@gmail.com>
255
256 * Makefile.in: Regenerate.
257 * doc/Makefile.in: Regenerate.
258
adeab0c5
MF
2592021-02-13 Mike Frysinger <vapier@gentoo.org>
260
261 * aclocal.m4: Regenerate.
262
c46b7066
NC
2632021-02-12 Nick Clifton <nickc@redhat.com>
264
265 * configure.ac (follow-debug-links): Add option to enable or
266 disable the following of debug links by default. Set the
267 default for the option to be 'follow'.
268 * dwarf.c (do_follow_links): Initialise with DEFAULT_FOR_FOLLOW_LINKS.
269 (dwarf_select_sections_by_names): Add no-follow-links option.
270 (dwarf_select_sections_by_letter): Add 'N' option.
271 * objdump.c (usage): Add conditional text describing the
272 follow links option.
273 (slurp_symtab): Ensure that there is a NULL entry at the end
274 of the symbol table.
275 (slurp_dynamic_symtab): Likewise.
276 (dump_bfd): When extending the symbol table, ensure that there
277 is still a NULL entry at the end.
278 * readelf.c (usage): Add conditional text describing the
279 follow links option.
280 * doc/binutils.texi: Update documentation for objcopy and
281 readelf.
282 * doc/debug.options.texi: Update documentation of the
283 follow-links option.
284 * config.in: Regenerate.
285 * configure: Regenerate.
286 * testsuite/binutils-all/compress.exp: Add the -WN option to
287 objdump command lines that are not expecting to follow links.
288 * testsuite/binutils-all/readelf.exp: Add the
289 --debug-dump=no-follow-links option to tests that are not
290 expecting to follow debug links.
291 * NEWS: Mention the new behaviour.
292
17e04eff
AM
2932021-02-12 Alan Modra <amodra@gmail.com>
294
295 * testsuite/binutils-all/objcopy.exp: Report "unsupported" when
296 gas or ld fails to build a testcase rather than "unresolved".
297 Report "fail" when readelf returns an error status rather than
298 "unresolved".
299 * testsuite/binutils-all/ar.exp: Likewise.
300 * testsuite/binutils-all/compress.exp: Likewise.
301 * testsuite/binutils-all/readelf.exp: Likewise.
302
8f054a7a
AM
3032021-02-12 Alan Modra <amodra@gmail.com>
304
305 * testsuite/binutils-all/pr25662.s: Replace "a" with "aaa" and
306 "c" with "ccc" labels.
307
528a4f87
TV
3082021-02-12 Tom de Vries <tdevries@suse.de>
309
310 * dwarf.h (debug_info): Fix typo in comment.
311
95abb394
TV
3122021-02-12 Tom de Vries <tdevries@suse.de>
313
314 * dwarf.c (display_debug_str_offsets): Handle multiple sets of
315 entries.
316
d60f7998
TV
3172021-02-12 Tom de Vries <tdevries@suse.de>
318
319 * dwarf.c (process_debug_info): Print DWO ID.
320
1cfcf300
AM
3212021-02-11 Alan Modra <amodra@gmail.com>
322
323 PR 27290
324 PR 27293
325 PR 27295
326 * od-elf32_avr.c (elf32_avr_get_note_section_contents): Formatting.
327 Use bfd_malloc_and_get_section.
328 (elf32_avr_get_note_desc): Formatting. Return descsz. Sanity
329 check namesz. Return NULL if descsz is too small. Ensure
330 string table is terminated.
331 (elf32_avr_get_device_info): Formatting. Add note_size param.
332 Sanity check note.
333 (elf32_avr_dump_mem_usage): Adjust to suit.
334
d9d9d8ef
TV
3352021-02-10 Tom de Vries <tdevries@suse.de>
336
337 PR binutils/27391
338 * dwarf.c (load_dwo_file): Handle case that name is absolute path.
339
52ff20fe
TV
3402021-02-10 Tom de Vries <tdevries@suse.de>
341
342 PR binutils/27371
343 * dwarf.c (display_debug_ranges): Filter range lists according to
344 section.
345
5f128a25
TV
3462021-02-09 Tom de Vries <tdevries@suse.de>
347
348 PR binutils/27370
349 * dwarf.c (get_type_abbrev_from_form): Handle DW_FORM_ref_sig8.
350
9b87f84a
TV
3512021-02-09 Tom de Vries <tdevries@suse.de>
352
353 PR binutils/27386
354 * dwarf.c (process_debug_info): Handling DW_UT_skeleton and
355 DW_UT_split_compile.
356
a57d1773
AM
3572021-02-09 Alan Modra <amodra@gmail.com>
358
359 * testsuite/lib/binutils-common.exp (supports_gnu_osabi): Remove
360 symbianelf.
361
de8d4203
AM
3622021-02-07 Alan Modra <amodra@gmail.com>
363
364 * unwind-ia64.c (unw_print_xyreg): Don't leave output buffer
365 uninitialised on invalid input.
366
51a25252
AM
3672021-02-06 Alan Modra <amodra@gmail.com>
368
369 PR 27349
370 * rename.c (smart_rename): Test for existence and type of output
371 file with lstat.
372
e37d88e5
NC
3732021-02-05 Nick Clifton <nickc@redhat.com>
374
375 * MAINTAINERS: Remove Richard Henderson as the ALPHA maintainer.
376
887854ba
EZ
3772021-02-05 Eli Zaretskii <eliz@gnu.org>
378
379 PR 27252
380 * elfedit.c (check_file):
381 * bucomm.c (get_file_size): Fix typos in comments.
382
c180f095
AM
3832021-02-05 Alan Modra <amodra@gmail.com>
384
385 PR 27345
386 * arsup.c (ar_save): Use stat rather than lstat.
387
95b91a04
AM
3882021-02-03 Alan Modra <amodra@gmail.com>
389
390 PR 27270
391 PR 27284
392 PR 26945
393 * ar.c: Don't include libbfd.h.
394 (write_archive): Replace xmalloc+strcpy with xstrdup. Use
395 bfd_stat rather than fstat on iostream. Move stat and fd tests
396 outside of _WIN32 ifdef. Delete skip_stat variable.
397 * arsup.c (temp_name, real_ofd): New static variables.
398 (ar_open): Use make_tempname and bfd_fdopenw.
399 (ar_save): Adjust to suit ar_open changes. Move stat output
400 of _WIN32 ifdef.
401 * objcopy.c: Don't include libbfd.h.
402 (copy_file): Use bfd_stat.
403
5424d7ed
L
4042021-02-02 H.J. Lu <hongjiu.lu@intel.com>
405
406 PR binutils/27281
407 * readelf.c (process_section_headers): Add 'R' and 'D' to
408 "Key to Flags:".
409 * testsuite/binutils-all/retain1a.d: Updated.
410
72a51a06
NC
4112021-01-30 Nick Clifton <nickc@redhat.com>
412
413 * README-how-to-make-a-release: Small updates after the 2.35.2
414 release.
415
cc3edc52
EZ
4162021-01-28 Eli Zaretskii <eliz@gnu.org>
417
418 PR 4356
419 * windres.c (quot): Use double quotes to protect strings on
420 Windows platforms.
421
a7ad3cb1
EZ
4222021-01-28 Eli Zaretskii <eliz@gnu.org>
423
424 PR 27252
425 * bucomm.c (get_file_size): Add code to handle /dev/null on
426 Windows systems.
427 * elfedit.c (check_file): Likewise.
428
67965ba2
NC
4292021-01-27 Nick Clifton <nickc@redhat.com>
430
431 * objcopy.c (copy_main): Remove conditional control of the calls
432 to free, simplifying the code and making it easier to detect
433 typos.
434
e37709f0
FC
4352021-01-26 Frederic Cambus <fred@statdns.com>
436
437 * objcopy.c (copy_main): Fix a double free happening when both
438 --localize-symbols and --globalize-symbols options are invoked
439 together.
440
9b351c9b
NC
4412021-01-24 Nick Clifton <nickc@redhat.com>
442
443 * README-how-to-make-a-release: Minor updates after the 2.36 release.
444
ad92f33d
AM
4452021-01-16 Alan Modra <amodra@gmail.com>
446
447 * readelf.c (uncompress_section_contents): Tidy inflateEnd result test.
448
3624a6c1
AM
4492021-01-15 Alan Modra <amodra@gmail.com>
450
451 PR 26539
452 * readelf.c (uncompress_section_contents): Always call inflateEnd.
453
c14dee84
AO
4542021-01-14 Alexandre Oliva <oliva@gnu.org>
455
456 * MAINTAINERS: Update my email address.
457
5a10699f
NC
4582021-01-14 Nick Clifton <nickc@redhat.com>
459
460 * po/sv.po: Updated Swedish translation.
461
5347ed60
AM
4622021-01-13 Alan Modra <amodra@gmail.com>
463
464 * Makefile.in: Regenerate.
465 * doc/Makefile.in: Regenerate.
466
2ce40d1a
ZF
4672021-01-13 Zebediah Figura <z.figura12@gmail.com>
468
469 PR 27037
470 * dlltool.c (i386_trampoline): Adjust %rsp immediately on entry
471 and before exit.
472 (i386_x64_trampoline): Add SEH annotations.
473 (struct mac): Add how_seh field.
474 (make_delay_head): If how_set field is true add SEh instructions.
475
d546b610
L
4762021-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
6d104cac
NC
4832021-01-12 Nick Clifton <nickc@redhat.com>
484
485 * po/fr.po: Updated French translation.
486
83b33c6c
L
4872021-01-11 H.J. Lu <hongjiu.lu@intel.com>
488
489 PR ld/27173
490 * configure: Regenerated.
491
a8aa72b9
NC
4922021-01-11 Nick Clifton <nickc@redhat.com>
493
494 * po/pt.po: Updated Portuguese translation.
495 * po/sr.po: Updated Serbian translation.
496 * po/uk.po: Updated Ukranian translation.
497
a4966cd9
L
4982021-01-09 H.J. Lu <hongjiu.lu@intel.com>
499
500 * configure: Regenerated.
501
573fe3fb
NC
5022021-01-09 Nick Clifton <nickc@redhat.com>
503
504 * configure: Regenerate.
505 * po/binutils.pot: Regenerate.
506
055bc77a
NC
5072021-01-09 Nick Clifton <nickc@redhat.com>
508
509 * 2.36 release branch crated.
573fe3fb
NC
510 * README-how-to-make-a-release: Add note about updating Makefiles
511 and libtool files.
512 * BRANCHES: Add binutils-2.36-branch.
055bc77a 513
64307045
AM
5142021-01-09 Alan Modra <amodra@gmail.com>
515
516 * configure: Regenerate.
517
f4782128
ST
5182021-01-07 Samuel Thibault <samuel.thibault@gnu.org>
519
520 * configure: Regenerate.
521
d1bcae83
L
5222021-01-07 H.J. Lu <hongjiu.lu@intel.com>
523
524 PR 27109
525 * objcopy.c (copy_object): Handle section symbols for
526 non-relocatable inputs.
527 * testsuite/binutils-all/readelf.exp (readelf_test): Check
528 is_elf_unused_section_symbols.
529 * testsuite/binutils-all/readelf.s-64: Updated.
530 * testsuite/binutils-all/readelf.ss: Likewise.
531 * testsuite/binutils-all/readelf.ss-64: Likewise.
532 * testsuite/binutils-all/readelf.s-64-unused: New file.
533 * testsuite/binutils-all/readelf.ss-64-unused: Likewise.
534 * testsuite/binutils-all/readelf.ss-unused: Likewise.
535 * testsuite/lib/binutils-common.exp
536 (is_elf_unused_section_symbols): New proc.
537
6987d5a1
RT
5382021-01-06 Reuben Thomas <rrt@sc3d.org>
539
540 * binutils/readelf.c: Correct grammar in comment.
541
f9a6a8f0
AM
5422021-01-01 Nicolas Boulenguez <nicolas@debian.org>
543
544 * coffgrok.c (do_type): Correct spelling of auxiliary in errors.
545 * doc/binutils.texi: Correct grammar.
546 * readelf.c (process_version_sections): Correct spelling of auxiliary
547 in warning.
548 * testsuite/binutils-all/vax/objdump.exp: Comment grammar fix.
549
250d07de
AM
5502021-01-01 Alan Modra <amodra@gmail.com>
551
552 Update year range in copyright notice of all files.
553
c2795844 554For older changes see ChangeLog-2020
3499769a 555\f
c2795844 556Copyright (C) 2021 Free Software Foundation, Inc.
3499769a
AM
557
558Copying and distribution of this file, with or without modification,
559are permitted in any medium without royalty provided the copyright
560notice and this notice are preserved.
561
562Local Variables:
563mode: change-log
564left-margin: 8
565fill-column: 74
566version-control: never
567End: