1 2021-03-22 Martin Liska <mliska@suse.cz>
3 * dlltool.c (scan_drectve_symbols): Replace usage of CONST_STRNEQ with startswith.
4 * emul_aix.c (ar_emul_aix_parse_arg): Likewise.
5 * objcopy.c (is_mergeable_note_section): Likewise.
6 * objdump.c (dump_dwarf_section): Likewise.
7 * prdbg.c (pr_method_type): Likewise.
8 (pr_class_baseclass): Likewise.
9 (tg_class_baseclass): Likewise.
10 * readelf.c (process_lto_symbol_tables): Likewise.
11 * stabs.c (ULLHIGH): Likewise.
12 (parse_stab_argtypes): Likewise.
13 (stab_demangle_function_name): Likewise.
15 2021-03-19 H.J. Lu <hongjiu.lu@intel.com>
17 * readelf.c (get_machine_name): Add EM_INTELGT.
19 2021-03-18 Nick Clifton <nickc@redhat.com>
22 * readelf.c (dump_section_as_strings): Mention separate filename.
23 (dump_section_as_bytes): Likewise.
24 (dump_section_as_ctf): Likewise.
25 (initialise_dumkps_byname): Only issue a warning for missing
26 sections if processing the main file.
27 (process_section_contents): Only issue a warning for unsumped
28 section numbers in the main file.
29 (initialise_dump_sects): New function. Contains code extracted
31 (process_object): ... here. Also call initialise_dump_sects for
34 2021-03-16 Nick Clifton <nickc@redhat.com>
37 * readelf.c (display_debug_section): Also retain .debug_addr
40 2021-03-16 Nick Clifton <nickc@redhat.com>
43 * readelf.c (process_section_contents): Only dump debug
44 information for separate files unless process_links is enabled.
45 (process_object): Always call process_section_contents for
48 2021-03-15 Nick Clifton <nickc@redhat.com>
51 * nm.c (FORMAT_JUST_SYMBOLS): Define.
52 (struct optput_fns): Add entry for FORMAT_JUST_SYMBOLS.
53 (long_options): Add just-symbols.
54 (set_output_format): Add support for just-symbols.
55 (get_print_format): Likewise.
56 (do_not_print_object_filename): New function.
57 (do_not_print_archive_filename): New function.
58 (do_not_print_archive_member): New function.
59 (do_not_print_symbol_filename): New function.
60 (just_print_symbol_name): New function.
61 (main): Handle --just-symbols.
62 * NEWS: Mention the new feature.
63 * doc/binutils.texi: Document the new feature.
65 2021-03-12 Clément Chigot <clement.chigot@atos.net>
67 * od-xcoff.c: Replace RTB by TRL entry.
69 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
70 Andrew Burgess <andrew.burgess@embecosm.com>
72 * readelf.c (get_note_type): Handle NT_RISCV_CSR.
74 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
75 Andrew Burgess <andrew.burgess@embecosm.com>
77 * readelf.c (get_note_type): Handle NT_GDB_TDESC.
79 2021-03-05 Nick Clifton <nickc@redhat.com>
82 * dwarf.c (display_debug_macro): Handle the displaying of
83 DW_MACRO_define_strp and DW_MACRO_undef_strp in v4
84 .debug_macro.dwo sections.
86 2021-03-04 Nick Clifton <nickc@redhat.com>
89 * objdump.c (process_links): New variable.
90 (usage): Add --process-links.
91 (long_options): Likewise.
92 (dump_bfd): Stop processing once the bfd has been loaded unless
93 this is the main file or process_links has been enabled.
94 (main): Handle the process-links option.
95 * readelf.c (process_links): New variable.
96 (struct filedata): Add is_separate field.
97 (options): Add --process-links.
99 (parse_args): Likewise.
100 (process_file_header): Include the filename when dumping
101 information for separate debuginfo files.
102 (process_program_headers): Likewise.
103 (process_section_headers): Likewise.
104 (process_section_groups): Likewise.
105 (process_relocs): Likewise.
106 (process_dynamic_section): Likewise.
107 (process_version_sections): Likewise.
108 (display_lto_symtab): Likewise.
109 (process_symbol_table): Likewise.
110 (process_syminfo): Likewise.
111 (initialise_dumps_by_name): Likewise.
112 (process_section_contents): Likewise.
113 (process_notes_at): Likewise.
114 (process_notes): Likewise.
115 (open_file): Add is_separate parameter. Use to initialise the
116 is_separate field in the filedata structure.
117 (open_deug): Update call to open_file.
118 (process_object): Add processing of the contents of separate
119 debuginfo files, gated by the process_links variable.
120 (process_archive): Update call to open_file.
121 (process_file): Initialise the is_separate field in the filedata
123 * dwarf.c (load_separate_debug_info_file): Only report the
124 loading of a separate file if debug links are being dumped.
125 * objcopy.c (keep_section_symbols): New variable.
126 (enum command_line_switch): Add OPTION_KEEP_SYMBOLS.
127 (strip_options): Add keep-section-symbols.
128 (copy_options): Likewise.
129 (copy_usage): Likewise.
130 (strip_usage): Likewise.
131 (copy_object): Keep section symbols if requested by command line
133 (strip_main): Handle --keep-section-symbols.
134 (copy_main): Likewise.
135 * doc/binutils.texi: Document the new options.
136 * NEWS: Mention the new features.
137 * testsuite/binutils-all/compress.exp (test_gnu_debuglink):
138 Update options passed to objdump. Use diff rather than cmp to
139 compare the dumped data.
140 * testsuite/binutils-all/objdump.WK2: Update regexp.
141 * testsuite/binutils-all/objdump.WK3: Update regexp.
142 * testsuite/binutils-all/objdump.exp: Use --process-links
143 instead of --dwarf=follow-links.
144 * testsuite/binutils-all/readelf.exp (readelf_test): Include
145 readelf's output in the log when the test fails.
146 Add the -P option to the -wKis test.
147 * testsuite/binutils-all/readelf.wKis: Update expected output.
149 2021-03-03 Alan Modra <amodra@gmail.com>
152 * objcopy.c (filter_symbols): Apply --weaken to undefined symbols.
153 * NEWS: Mention feature.
155 2021-03-01 H.J. Lu <hongjiu.lu@intel.com>
158 * dwarf.c (load_separate_debug_info): Issue warning only if
159 do_debug_links is set.
160 * testsuite/binutils-all/compress.exp: Run objdump and readelf
161 with missing debug file.
163 2021-03-01 Alan Modra <amodra@gmail.com>
166 * doc/binutils.texi: Add nm --with-symbol-versions and
167 --without-symbol-versions documentation.
168 * nm.c (with_symbol_versions): New variable.
169 (enum long_option_values): Delete OPTION_WITH_SYMBOL_VERSIONS.
170 (long_options): Make --with-symbol-versions entry twiddle the flag.
171 Add --without-symbol-versions.
172 (print_symname): Strip version when !with_symbol_versions. Add
173 dynamic version info under control of with_symbol_versions.
174 (main): Remove OPTION_WITH_SYMBOL_VERSIONS case.
176 2021-02-26 Fangrui Song <maskray@google.com>
179 * readelf.c (quiet): New option flag.
180 (enum long_option_values): New enum to hold long option value.
181 (long_options): Add --quiet.
182 (usage): Mention --quiet.
183 (display_rel_file): If quiet is enabled, suppress "no symbols".
184 (main): Handle the new option.
185 * NEWS: Mention --quiet.
186 * docs/binutils.texi: Document --quiet.
188 2021-02-26 Tom de Vries <tdevries@suse.de>
190 * dwarf.c (display_debug_addr): Handle dwarf-5 .debug_addr bits.
192 2021-02-26 Tom de Vries <tdevries@suse.de>
195 * dwarf.c: (skip_attr_bytes): Add support for DW_FORM_str* and
197 (read_and_display_attr_value): Likewise.
199 2021-02-25 Nick Clifton <nickc@redhat.com>
201 * dwarf.c (get_type_abbrev_from_form): Accept but ignore sup
203 (read_and_display_attr_value): Handle sup forms.
204 (display_debug_sup): New function. Displays the contents of a
206 (load_debug_sup_file): New function. Loads the contents of a file
207 referenced by a .debug_sup section.
208 (check_for_and_load_links): Call load_debug_sup_file.
209 (debug_displays): Add entry for .debug_sup.
210 * dwarf.h (enum dwarf_section_display_enum): Add debug_sup.
211 * readelf.c (process_section_headers): Add support for debug_sup.
212 * doc/debug.options.texi: Note that the =links option will display
213 the contents of .debug_sup sections.
214 * NEWS: Mention the new support.
216 2021-02-25 Alan Modra <amodra@gmail.com>
219 * rename.c (simple_copy): Mark target_stat ATTRIBUTE_UNUSED.
221 2021-02-24 Nick Clifton <nickc@redhat.com>
224 * od-elf32_avr.c (elf32_avr_get_memory_usage): Check for overflows
225 when adding together the section sizes.
227 2021-02-24 Nick Clifton <nickc@redhat.com>
229 * objcopy.c (merge_gnu_build_notes): Remove support for v1/v2 GNU
231 * readelf.c (print_gnu_build_attribute_description): Likewise.
233 2021-02-24 Alan Modra <amodra@gmail.com>
234 Siddhesh Poyarekar <siddhesh@gotplt.org>
237 * bucomm.h (smart_rename): Update prototype.
238 * rename.c (smart_rename): Add fromfd and preserve_dates params.
239 Pass fromfd and target_stat to simple_copy. Call set_times
241 (simple_copy): Accept fromfd rather than from filename. Add
242 target_stat param. Rewind fromfd rather than opening. Open
243 "to" file without O_CREAT. Try to preserve S_ISUID and S_ISGID.
244 * ar.c (write_archive): Rename ofd to tmpfd. Dup tmpfd before
245 closing output temp file, and pass tmpfd to smart_rename.
246 * arsup.c (temp_fd): Rename from real_fd.
247 (ar_save): Dup temp_fd and pass to smart_rename.
248 * objcopy.c (strip_main, copy_main): Likewise, and pass
251 2021-02-24 Alan Modra <amodra@gmail.com>
254 * rename.c: Tidy throughout.
255 (smart_rename): Always copy. Remove windows specific code.
257 2021-02-20 Alan Modra <amodra@gmail.com>
259 * testsuite/lib/binutils-common.exp: Whitespace fixes throughout.
260 (run_dump_test): Fail if expecting errors from a file like we do
261 for error strings, if no error is seen.
263 2021-02-19 Alan Modra <amodra@gmail.com>
265 * testsuite/binutils-all/readelf.exp (pr26548): Run for 32-bit too.
267 2021-02-19 Siddhesh Poyarekar <siddhesh@gotplt.org>
269 * ar.c (write_archive): Remove TARGET_STAT. Adjust call to
271 * arsup.c (ar_save): Likewise.
272 * objcopy (strip_main): Don't copy TMPFD. Don't set times on
273 temporary file and adjust call to SMART_RENAME.
274 (copy_main): Likewise.
275 * rename.c [!S_ISLNK]: Remove definitions.
276 (try_preserve_permissions): Remove function.
277 (smart_rename): Remove FD, PRESERVE_DATES arguments. Use
278 rename system call only if TO does not exist.
279 * bucomm.h (smart_rename): Adjust declaration.
281 2021-02-18 Nick Clifton <nickc@redhat.com>
283 * objcopy.c (merge_gnu_build_notes): Handle notes with a start
284 address that is higher than the end address.
286 2021-02-17 Alan Modra <amodra@gmail.com>
288 * dwarf.c: Include limits.h.
289 (CHAR_BIT): Provide backup define.
290 (read_leb128): Use CHAR_BIT to size "result" in bits. Correct
291 signed overflow checking.
292 * testsuite/binutils-all/pr26548.s,
293 * testsuite/binutils-all/pr26548.d,
294 * testsuite/binutils-all/pr26548e.d: New tests.
295 * testsuite/binutils-all/readelf.exp: Run them.
296 (readelf_test): Drop unused "xfails" parameter. Update all uses.
298 2021-02-16 Jan Beulich <jbeulich@suse.com>
300 * dwarf.c (process_debug_info): Initialize "dwo_id".
302 2021-02-15 Alan Modra <amodra@gmail.com>
304 * objdump.c (load_specific_debug_section): Don't call
305 bfd_cache_section_contents. Rearrange so that
306 bfd_get_full_section_contents is not called on path where
307 bfd_simple_get_relocated_section_contents is called.
308 Don't set section->user_data.
309 (free_debug_section): Always free section->start. Don't twiddle
311 * readelf.c (load_specific_debug_section): Don't set user_data.
312 * dwarf.h (struct dwarf_section): Remove use_data field.
313 * dwarf.c (NO_ABBREVS, ABBREV): Adjust to suit.
315 2021-02-15 Alan Modra <amodra@gmail.com>
317 * testsuite/binutils-all/compress.exp: Remove nds32 xfails.
318 * testsuite/binutils-all/objdump.exp: Likewise.
320 2021-02-14 Alan Modra <amodra@gmail.com>
322 * objdump.c (slurp_symtab): Don't add an extra entry for NULL
324 (slurp_dynamic_symtab): Likewise.
325 (dump_bfd): Formatting. Copy terminating NULL from extra_syms.
327 2021-02-14 Alan Modra <amodra@gmail.com>
329 * Makefile.in: Regenerate.
330 * doc/Makefile.in: Regenerate.
332 2021-02-13 Mike Frysinger <vapier@gentoo.org>
334 * aclocal.m4: Regenerate.
336 2021-02-12 Nick Clifton <nickc@redhat.com>
338 * configure.ac (follow-debug-links): Add option to enable or
339 disable the following of debug links by default. Set the
340 default for the option to be 'follow'.
341 * dwarf.c (do_follow_links): Initialise with DEFAULT_FOR_FOLLOW_LINKS.
342 (dwarf_select_sections_by_names): Add no-follow-links option.
343 (dwarf_select_sections_by_letter): Add 'N' option.
344 * objdump.c (usage): Add conditional text describing the
346 (slurp_symtab): Ensure that there is a NULL entry at the end
348 (slurp_dynamic_symtab): Likewise.
349 (dump_bfd): When extending the symbol table, ensure that there
350 is still a NULL entry at the end.
351 * readelf.c (usage): Add conditional text describing the
353 * doc/binutils.texi: Update documentation for objcopy and
355 * doc/debug.options.texi: Update documentation of the
357 * config.in: Regenerate.
358 * configure: Regenerate.
359 * testsuite/binutils-all/compress.exp: Add the -WN option to
360 objdump command lines that are not expecting to follow links.
361 * testsuite/binutils-all/readelf.exp: Add the
362 --debug-dump=no-follow-links option to tests that are not
363 expecting to follow debug links.
364 * NEWS: Mention the new behaviour.
366 2021-02-12 Alan Modra <amodra@gmail.com>
368 * testsuite/binutils-all/objcopy.exp: Report "unsupported" when
369 gas or ld fails to build a testcase rather than "unresolved".
370 Report "fail" when readelf returns an error status rather than
372 * testsuite/binutils-all/ar.exp: Likewise.
373 * testsuite/binutils-all/compress.exp: Likewise.
374 * testsuite/binutils-all/readelf.exp: Likewise.
376 2021-02-12 Alan Modra <amodra@gmail.com>
378 * testsuite/binutils-all/pr25662.s: Replace "a" with "aaa" and
379 "c" with "ccc" labels.
381 2021-02-12 Tom de Vries <tdevries@suse.de>
383 * dwarf.h (debug_info): Fix typo in comment.
385 2021-02-12 Tom de Vries <tdevries@suse.de>
387 * dwarf.c (display_debug_str_offsets): Handle multiple sets of
390 2021-02-12 Tom de Vries <tdevries@suse.de>
392 * dwarf.c (process_debug_info): Print DWO ID.
394 2021-02-11 Alan Modra <amodra@gmail.com>
399 * od-elf32_avr.c (elf32_avr_get_note_section_contents): Formatting.
400 Use bfd_malloc_and_get_section.
401 (elf32_avr_get_note_desc): Formatting. Return descsz. Sanity
402 check namesz. Return NULL if descsz is too small. Ensure
403 string table is terminated.
404 (elf32_avr_get_device_info): Formatting. Add note_size param.
406 (elf32_avr_dump_mem_usage): Adjust to suit.
408 2021-02-10 Tom de Vries <tdevries@suse.de>
411 * dwarf.c (load_dwo_file): Handle case that name is absolute path.
413 2021-02-10 Tom de Vries <tdevries@suse.de>
416 * dwarf.c (display_debug_ranges): Filter range lists according to
419 2021-02-09 Tom de Vries <tdevries@suse.de>
422 * dwarf.c (get_type_abbrev_from_form): Handle DW_FORM_ref_sig8.
424 2021-02-09 Tom de Vries <tdevries@suse.de>
427 * dwarf.c (process_debug_info): Handling DW_UT_skeleton and
430 2021-02-09 Alan Modra <amodra@gmail.com>
432 * testsuite/lib/binutils-common.exp (supports_gnu_osabi): Remove
435 2021-02-07 Alan Modra <amodra@gmail.com>
437 * unwind-ia64.c (unw_print_xyreg): Don't leave output buffer
438 uninitialised on invalid input.
440 2021-02-06 Alan Modra <amodra@gmail.com>
443 * rename.c (smart_rename): Test for existence and type of output
446 2021-02-05 Nick Clifton <nickc@redhat.com>
448 * MAINTAINERS: Remove Richard Henderson as the ALPHA maintainer.
450 2021-02-05 Eli Zaretskii <eliz@gnu.org>
453 * elfedit.c (check_file):
454 * bucomm.c (get_file_size): Fix typos in comments.
456 2021-02-05 Alan Modra <amodra@gmail.com>
459 * arsup.c (ar_save): Use stat rather than lstat.
461 2021-02-03 Alan Modra <amodra@gmail.com>
466 * ar.c: Don't include libbfd.h.
467 (write_archive): Replace xmalloc+strcpy with xstrdup. Use
468 bfd_stat rather than fstat on iostream. Move stat and fd tests
469 outside of _WIN32 ifdef. Delete skip_stat variable.
470 * arsup.c (temp_name, real_ofd): New static variables.
471 (ar_open): Use make_tempname and bfd_fdopenw.
472 (ar_save): Adjust to suit ar_open changes. Move stat output
474 * objcopy.c: Don't include libbfd.h.
475 (copy_file): Use bfd_stat.
477 2021-02-02 H.J. Lu <hongjiu.lu@intel.com>
480 * readelf.c (process_section_headers): Add 'R' and 'D' to
482 * testsuite/binutils-all/retain1a.d: Updated.
484 2021-01-30 Nick Clifton <nickc@redhat.com>
486 * README-how-to-make-a-release: Small updates after the 2.35.2
489 2021-01-28 Eli Zaretskii <eliz@gnu.org>
492 * windres.c (quot): Use double quotes to protect strings on
495 2021-01-28 Eli Zaretskii <eliz@gnu.org>
498 * bucomm.c (get_file_size): Add code to handle /dev/null on
500 * elfedit.c (check_file): Likewise.
502 2021-01-27 Nick Clifton <nickc@redhat.com>
504 * objcopy.c (copy_main): Remove conditional control of the calls
505 to free, simplifying the code and making it easier to detect
508 2021-01-26 Frederic Cambus <fred@statdns.com>
510 * objcopy.c (copy_main): Fix a double free happening when both
511 --localize-symbols and --globalize-symbols options are invoked
514 2021-01-24 Nick Clifton <nickc@redhat.com>
516 * README-how-to-make-a-release: Minor updates after the 2.36 release.
518 2021-01-16 Alan Modra <amodra@gmail.com>
520 * readelf.c (uncompress_section_contents): Tidy inflateEnd result test.
522 2021-01-15 Alan Modra <amodra@gmail.com>
525 * readelf.c (uncompress_section_contents): Always call inflateEnd.
527 2021-01-14 Alexandre Oliva <oliva@gnu.org>
529 * MAINTAINERS: Update my email address.
531 2021-01-14 Nick Clifton <nickc@redhat.com>
533 * po/sv.po: Updated Swedish translation.
535 2021-01-13 Alan Modra <amodra@gmail.com>
537 * Makefile.in: Regenerate.
538 * doc/Makefile.in: Regenerate.
540 2021-01-13 Zebediah Figura <z.figura12@gmail.com>
543 * dlltool.c (i386_trampoline): Adjust %rsp immediately on entry
545 (i386_x64_trampoline): Add SEH annotations.
546 (struct mac): Add how_seh field.
547 (make_delay_head): If how_set field is true add SEh instructions.
549 2021-01-12 H.J. Lu <hongjiu.lu@intel.com>
552 * configure.ac: Use GNU_MAKE_JOBSERVER.
553 * aclocal.m4: Regenerated.
554 * configure: Likewise.
556 2021-01-12 Nick Clifton <nickc@redhat.com>
558 * po/fr.po: Updated French translation.
560 2021-01-11 H.J. Lu <hongjiu.lu@intel.com>
563 * configure: Regenerated.
565 2021-01-11 Nick Clifton <nickc@redhat.com>
567 * po/pt.po: Updated Portuguese translation.
568 * po/sr.po: Updated Serbian translation.
569 * po/uk.po: Updated Ukranian translation.
571 2021-01-09 H.J. Lu <hongjiu.lu@intel.com>
573 * configure: Regenerated.
575 2021-01-09 Nick Clifton <nickc@redhat.com>
577 * configure: Regenerate.
578 * po/binutils.pot: Regenerate.
580 2021-01-09 Nick Clifton <nickc@redhat.com>
582 * 2.36 release branch crated.
583 * README-how-to-make-a-release: Add note about updating Makefiles
585 * BRANCHES: Add binutils-2.36-branch.
587 2021-01-09 Alan Modra <amodra@gmail.com>
589 * configure: Regenerate.
591 2021-01-07 Samuel Thibault <samuel.thibault@gnu.org>
593 * configure: Regenerate.
595 2021-01-07 H.J. Lu <hongjiu.lu@intel.com>
598 * objcopy.c (copy_object): Handle section symbols for
599 non-relocatable inputs.
600 * testsuite/binutils-all/readelf.exp (readelf_test): Check
601 is_elf_unused_section_symbols.
602 * testsuite/binutils-all/readelf.s-64: Updated.
603 * testsuite/binutils-all/readelf.ss: Likewise.
604 * testsuite/binutils-all/readelf.ss-64: Likewise.
605 * testsuite/binutils-all/readelf.s-64-unused: New file.
606 * testsuite/binutils-all/readelf.ss-64-unused: Likewise.
607 * testsuite/binutils-all/readelf.ss-unused: Likewise.
608 * testsuite/lib/binutils-common.exp
609 (is_elf_unused_section_symbols): New proc.
611 2021-01-06 Reuben Thomas <rrt@sc3d.org>
613 * binutils/readelf.c: Correct grammar in comment.
615 2021-01-01 Nicolas Boulenguez <nicolas@debian.org>
617 * coffgrok.c (do_type): Correct spelling of auxiliary in errors.
618 * doc/binutils.texi: Correct grammar.
619 * readelf.c (process_version_sections): Correct spelling of auxiliary
621 * testsuite/binutils-all/vax/objdump.exp: Comment grammar fix.
623 2021-01-01 Alan Modra <amodra@gmail.com>
625 Update year range in copyright notice of all files.
627 For older changes see ChangeLog-2020
629 Copyright (C) 2021 Free Software Foundation, Inc.
631 Copying and distribution of this file, with or without modification,
632 are permitted in any medium without royalty provided the copyright
633 notice and this notice are preserved.
639 version-control: never