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