1 2021-03-31 Alan Modra <amodra@gmail.com>
3 * prdbg.c (pr_function_type): Replace LITSTTCPY with strcpy.
5 2021-03-29 Alan Modra <amodra@gmail.com>
7 * dlltool.c (main): Don't use "boolean_condition ? TRUE : FALSE".
8 * dwarf.c (read_and_display_attr_value): Likewise.
9 (display_debug_str_offsets): Likewise.
10 * objdump.c (dump_bfd): Likewise.
11 * readelf.c (dump_section_as_strings): Likewise.
12 (dump_section_as_bytes): Likewise.
14 2021-03-29 Alan Modra <amodra@gmail.com>
16 * objdump.c (process_links): Use type int.
17 * readelf.c (request_dump): Don't increment do_dump, set it.
18 * windint.h (target_is_bigendian): Use type bfd_boolean.
19 * windmc.c (target_is_bigendian): Likewise.
20 * windres.c (target_is_bigendian): Likewise.
22 2021-03-22 Martin Liska <mliska@suse.cz>
24 * dlltool.c (scan_drectve_symbols): Replace usage of CONST_STRNEQ
26 * emul_aix.c (ar_emul_aix_parse_arg): Likewise.
27 * objcopy.c (is_mergeable_note_section): Likewise.
28 * objdump.c (dump_dwarf_section): Likewise.
29 * prdbg.c (pr_method_type): Likewise.
30 (pr_class_baseclass): Likewise.
31 (tg_class_baseclass): Likewise.
32 * readelf.c (process_lto_symbol_tables): Likewise.
33 * stabs.c (ULLHIGH): Likewise.
34 (parse_stab_argtypes): Likewise.
35 (stab_demangle_function_name): Likewise.
37 2021-03-19 H.J. Lu <hongjiu.lu@intel.com>
39 * readelf.c (get_machine_name): Add EM_INTELGT.
41 2021-03-18 Nick Clifton <nickc@redhat.com>
44 * readelf.c (dump_section_as_strings): Mention separate filename.
45 (dump_section_as_bytes): Likewise.
46 (dump_section_as_ctf): Likewise.
47 (initialise_dumkps_byname): Only issue a warning for missing
48 sections if processing the main file.
49 (process_section_contents): Only issue a warning for unsumped
50 section numbers in the main file.
51 (initialise_dump_sects): New function. Contains code extracted
53 (process_object): ... here. Also call initialise_dump_sects for
56 2021-03-16 Nick Clifton <nickc@redhat.com>
59 * readelf.c (display_debug_section): Also retain .debug_addr
62 2021-03-16 Nick Clifton <nickc@redhat.com>
65 * readelf.c (process_section_contents): Only dump debug
66 information for separate files unless process_links is enabled.
67 (process_object): Always call process_section_contents for
70 2021-03-15 Nick Clifton <nickc@redhat.com>
73 * nm.c (FORMAT_JUST_SYMBOLS): Define.
74 (struct optput_fns): Add entry for FORMAT_JUST_SYMBOLS.
75 (long_options): Add just-symbols.
76 (set_output_format): Add support for just-symbols.
77 (get_print_format): Likewise.
78 (do_not_print_object_filename): New function.
79 (do_not_print_archive_filename): New function.
80 (do_not_print_archive_member): New function.
81 (do_not_print_symbol_filename): New function.
82 (just_print_symbol_name): New function.
83 (main): Handle --just-symbols.
84 * NEWS: Mention the new feature.
85 * doc/binutils.texi: Document the new feature.
87 2021-03-12 Clément Chigot <clement.chigot@atos.net>
89 * od-xcoff.c: Replace RTB by TRL entry.
91 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
92 Andrew Burgess <andrew.burgess@embecosm.com>
94 * readelf.c (get_note_type): Handle NT_RISCV_CSR.
96 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
97 Andrew Burgess <andrew.burgess@embecosm.com>
99 * readelf.c (get_note_type): Handle NT_GDB_TDESC.
101 2021-03-05 Nick Clifton <nickc@redhat.com>
104 * dwarf.c (display_debug_macro): Handle the displaying of
105 DW_MACRO_define_strp and DW_MACRO_undef_strp in v4
106 .debug_macro.dwo sections.
108 2021-03-04 Nick Clifton <nickc@redhat.com>
111 * objdump.c (process_links): New variable.
112 (usage): Add --process-links.
113 (long_options): Likewise.
114 (dump_bfd): Stop processing once the bfd has been loaded unless
115 this is the main file or process_links has been enabled.
116 (main): Handle the process-links option.
117 * readelf.c (process_links): New variable.
118 (struct filedata): Add is_separate field.
119 (options): Add --process-links.
121 (parse_args): Likewise.
122 (process_file_header): Include the filename when dumping
123 information for separate debuginfo files.
124 (process_program_headers): Likewise.
125 (process_section_headers): Likewise.
126 (process_section_groups): Likewise.
127 (process_relocs): Likewise.
128 (process_dynamic_section): Likewise.
129 (process_version_sections): Likewise.
130 (display_lto_symtab): Likewise.
131 (process_symbol_table): Likewise.
132 (process_syminfo): Likewise.
133 (initialise_dumps_by_name): Likewise.
134 (process_section_contents): Likewise.
135 (process_notes_at): Likewise.
136 (process_notes): Likewise.
137 (open_file): Add is_separate parameter. Use to initialise the
138 is_separate field in the filedata structure.
139 (open_deug): Update call to open_file.
140 (process_object): Add processing of the contents of separate
141 debuginfo files, gated by the process_links variable.
142 (process_archive): Update call to open_file.
143 (process_file): Initialise the is_separate field in the filedata
145 * dwarf.c (load_separate_debug_info_file): Only report the
146 loading of a separate file if debug links are being dumped.
147 * objcopy.c (keep_section_symbols): New variable.
148 (enum command_line_switch): Add OPTION_KEEP_SYMBOLS.
149 (strip_options): Add keep-section-symbols.
150 (copy_options): Likewise.
151 (copy_usage): Likewise.
152 (strip_usage): Likewise.
153 (copy_object): Keep section symbols if requested by command line
155 (strip_main): Handle --keep-section-symbols.
156 (copy_main): Likewise.
157 * doc/binutils.texi: Document the new options.
158 * NEWS: Mention the new features.
159 * testsuite/binutils-all/compress.exp (test_gnu_debuglink):
160 Update options passed to objdump. Use diff rather than cmp to
161 compare the dumped data.
162 * testsuite/binutils-all/objdump.WK2: Update regexp.
163 * testsuite/binutils-all/objdump.WK3: Update regexp.
164 * testsuite/binutils-all/objdump.exp: Use --process-links
165 instead of --dwarf=follow-links.
166 * testsuite/binutils-all/readelf.exp (readelf_test): Include
167 readelf's output in the log when the test fails.
168 Add the -P option to the -wKis test.
169 * testsuite/binutils-all/readelf.wKis: Update expected output.
171 2021-03-03 Alan Modra <amodra@gmail.com>
174 * objcopy.c (filter_symbols): Apply --weaken to undefined symbols.
175 * NEWS: Mention feature.
177 2021-03-01 H.J. Lu <hongjiu.lu@intel.com>
180 * dwarf.c (load_separate_debug_info): Issue warning only if
181 do_debug_links is set.
182 * testsuite/binutils-all/compress.exp: Run objdump and readelf
183 with missing debug file.
185 2021-03-01 Alan Modra <amodra@gmail.com>
188 * doc/binutils.texi: Add nm --with-symbol-versions and
189 --without-symbol-versions documentation.
190 * nm.c (with_symbol_versions): New variable.
191 (enum long_option_values): Delete OPTION_WITH_SYMBOL_VERSIONS.
192 (long_options): Make --with-symbol-versions entry twiddle the flag.
193 Add --without-symbol-versions.
194 (print_symname): Strip version when !with_symbol_versions. Add
195 dynamic version info under control of with_symbol_versions.
196 (main): Remove OPTION_WITH_SYMBOL_VERSIONS case.
198 2021-02-26 Fangrui Song <maskray@google.com>
201 * readelf.c (quiet): New option flag.
202 (enum long_option_values): New enum to hold long option value.
203 (long_options): Add --quiet.
204 (usage): Mention --quiet.
205 (display_rel_file): If quiet is enabled, suppress "no symbols".
206 (main): Handle the new option.
207 * NEWS: Mention --quiet.
208 * docs/binutils.texi: Document --quiet.
210 2021-02-26 Tom de Vries <tdevries@suse.de>
212 * dwarf.c (display_debug_addr): Handle dwarf-5 .debug_addr bits.
214 2021-02-26 Tom de Vries <tdevries@suse.de>
217 * dwarf.c: (skip_attr_bytes): Add support for DW_FORM_str* and
219 (read_and_display_attr_value): Likewise.
221 2021-02-25 Nick Clifton <nickc@redhat.com>
223 * dwarf.c (get_type_abbrev_from_form): Accept but ignore sup
225 (read_and_display_attr_value): Handle sup forms.
226 (display_debug_sup): New function. Displays the contents of a
228 (load_debug_sup_file): New function. Loads the contents of a file
229 referenced by a .debug_sup section.
230 (check_for_and_load_links): Call load_debug_sup_file.
231 (debug_displays): Add entry for .debug_sup.
232 * dwarf.h (enum dwarf_section_display_enum): Add debug_sup.
233 * readelf.c (process_section_headers): Add support for debug_sup.
234 * doc/debug.options.texi: Note that the =links option will display
235 the contents of .debug_sup sections.
236 * NEWS: Mention the new support.
238 2021-02-25 Alan Modra <amodra@gmail.com>
241 * rename.c (simple_copy): Mark target_stat ATTRIBUTE_UNUSED.
243 2021-02-24 Nick Clifton <nickc@redhat.com>
246 * od-elf32_avr.c (elf32_avr_get_memory_usage): Check for overflows
247 when adding together the section sizes.
249 2021-02-24 Nick Clifton <nickc@redhat.com>
251 * objcopy.c (merge_gnu_build_notes): Remove support for v1/v2 GNU
253 * readelf.c (print_gnu_build_attribute_description): Likewise.
255 2021-02-24 Alan Modra <amodra@gmail.com>
256 Siddhesh Poyarekar <siddhesh@gotplt.org>
259 * bucomm.h (smart_rename): Update prototype.
260 * rename.c (smart_rename): Add fromfd and preserve_dates params.
261 Pass fromfd and target_stat to simple_copy. Call set_times
263 (simple_copy): Accept fromfd rather than from filename. Add
264 target_stat param. Rewind fromfd rather than opening. Open
265 "to" file without O_CREAT. Try to preserve S_ISUID and S_ISGID.
266 * ar.c (write_archive): Rename ofd to tmpfd. Dup tmpfd before
267 closing output temp file, and pass tmpfd to smart_rename.
268 * arsup.c (temp_fd): Rename from real_fd.
269 (ar_save): Dup temp_fd and pass to smart_rename.
270 * objcopy.c (strip_main, copy_main): Likewise, and pass
273 2021-02-24 Alan Modra <amodra@gmail.com>
276 * rename.c: Tidy throughout.
277 (smart_rename): Always copy. Remove windows specific code.
279 2021-02-20 Alan Modra <amodra@gmail.com>
281 * testsuite/lib/binutils-common.exp: Whitespace fixes throughout.
282 (run_dump_test): Fail if expecting errors from a file like we do
283 for error strings, if no error is seen.
285 2021-02-19 Alan Modra <amodra@gmail.com>
287 * testsuite/binutils-all/readelf.exp (pr26548): Run for 32-bit too.
289 2021-02-19 Siddhesh Poyarekar <siddhesh@gotplt.org>
291 * ar.c (write_archive): Remove TARGET_STAT. Adjust call to
293 * arsup.c (ar_save): Likewise.
294 * objcopy (strip_main): Don't copy TMPFD. Don't set times on
295 temporary file and adjust call to SMART_RENAME.
296 (copy_main): Likewise.
297 * rename.c [!S_ISLNK]: Remove definitions.
298 (try_preserve_permissions): Remove function.
299 (smart_rename): Remove FD, PRESERVE_DATES arguments. Use
300 rename system call only if TO does not exist.
301 * bucomm.h (smart_rename): Adjust declaration.
303 2021-02-18 Nick Clifton <nickc@redhat.com>
305 * objcopy.c (merge_gnu_build_notes): Handle notes with a start
306 address that is higher than the end address.
308 2021-02-17 Alan Modra <amodra@gmail.com>
310 * dwarf.c: Include limits.h.
311 (CHAR_BIT): Provide backup define.
312 (read_leb128): Use CHAR_BIT to size "result" in bits. Correct
313 signed overflow checking.
314 * testsuite/binutils-all/pr26548.s,
315 * testsuite/binutils-all/pr26548.d,
316 * testsuite/binutils-all/pr26548e.d: New tests.
317 * testsuite/binutils-all/readelf.exp: Run them.
318 (readelf_test): Drop unused "xfails" parameter. Update all uses.
320 2021-02-16 Jan Beulich <jbeulich@suse.com>
322 * dwarf.c (process_debug_info): Initialize "dwo_id".
324 2021-02-15 Alan Modra <amodra@gmail.com>
326 * objdump.c (load_specific_debug_section): Don't call
327 bfd_cache_section_contents. Rearrange so that
328 bfd_get_full_section_contents is not called on path where
329 bfd_simple_get_relocated_section_contents is called.
330 Don't set section->user_data.
331 (free_debug_section): Always free section->start. Don't twiddle
333 * readelf.c (load_specific_debug_section): Don't set user_data.
334 * dwarf.h (struct dwarf_section): Remove use_data field.
335 * dwarf.c (NO_ABBREVS, ABBREV): Adjust to suit.
337 2021-02-15 Alan Modra <amodra@gmail.com>
339 * testsuite/binutils-all/compress.exp: Remove nds32 xfails.
340 * testsuite/binutils-all/objdump.exp: Likewise.
342 2021-02-14 Alan Modra <amodra@gmail.com>
344 * objdump.c (slurp_symtab): Don't add an extra entry for NULL
346 (slurp_dynamic_symtab): Likewise.
347 (dump_bfd): Formatting. Copy terminating NULL from extra_syms.
349 2021-02-14 Alan Modra <amodra@gmail.com>
351 * Makefile.in: Regenerate.
352 * doc/Makefile.in: Regenerate.
354 2021-02-13 Mike Frysinger <vapier@gentoo.org>
356 * aclocal.m4: Regenerate.
358 2021-02-12 Nick Clifton <nickc@redhat.com>
360 * configure.ac (follow-debug-links): Add option to enable or
361 disable the following of debug links by default. Set the
362 default for the option to be 'follow'.
363 * dwarf.c (do_follow_links): Initialise with DEFAULT_FOR_FOLLOW_LINKS.
364 (dwarf_select_sections_by_names): Add no-follow-links option.
365 (dwarf_select_sections_by_letter): Add 'N' option.
366 * objdump.c (usage): Add conditional text describing the
368 (slurp_symtab): Ensure that there is a NULL entry at the end
370 (slurp_dynamic_symtab): Likewise.
371 (dump_bfd): When extending the symbol table, ensure that there
372 is still a NULL entry at the end.
373 * readelf.c (usage): Add conditional text describing the
375 * doc/binutils.texi: Update documentation for objcopy and
377 * doc/debug.options.texi: Update documentation of the
379 * config.in: Regenerate.
380 * configure: Regenerate.
381 * testsuite/binutils-all/compress.exp: Add the -WN option to
382 objdump command lines that are not expecting to follow links.
383 * testsuite/binutils-all/readelf.exp: Add the
384 --debug-dump=no-follow-links option to tests that are not
385 expecting to follow debug links.
386 * NEWS: Mention the new behaviour.
388 2021-02-12 Alan Modra <amodra@gmail.com>
390 * testsuite/binutils-all/objcopy.exp: Report "unsupported" when
391 gas or ld fails to build a testcase rather than "unresolved".
392 Report "fail" when readelf returns an error status rather than
394 * testsuite/binutils-all/ar.exp: Likewise.
395 * testsuite/binutils-all/compress.exp: Likewise.
396 * testsuite/binutils-all/readelf.exp: Likewise.
398 2021-02-12 Alan Modra <amodra@gmail.com>
400 * testsuite/binutils-all/pr25662.s: Replace "a" with "aaa" and
401 "c" with "ccc" labels.
403 2021-02-12 Tom de Vries <tdevries@suse.de>
405 * dwarf.h (debug_info): Fix typo in comment.
407 2021-02-12 Tom de Vries <tdevries@suse.de>
409 * dwarf.c (display_debug_str_offsets): Handle multiple sets of
412 2021-02-12 Tom de Vries <tdevries@suse.de>
414 * dwarf.c (process_debug_info): Print DWO ID.
416 2021-02-11 Alan Modra <amodra@gmail.com>
421 * od-elf32_avr.c (elf32_avr_get_note_section_contents): Formatting.
422 Use bfd_malloc_and_get_section.
423 (elf32_avr_get_note_desc): Formatting. Return descsz. Sanity
424 check namesz. Return NULL if descsz is too small. Ensure
425 string table is terminated.
426 (elf32_avr_get_device_info): Formatting. Add note_size param.
428 (elf32_avr_dump_mem_usage): Adjust to suit.
430 2021-02-10 Tom de Vries <tdevries@suse.de>
433 * dwarf.c (load_dwo_file): Handle case that name is absolute path.
435 2021-02-10 Tom de Vries <tdevries@suse.de>
438 * dwarf.c (display_debug_ranges): Filter range lists according to
441 2021-02-09 Tom de Vries <tdevries@suse.de>
444 * dwarf.c (get_type_abbrev_from_form): Handle DW_FORM_ref_sig8.
446 2021-02-09 Tom de Vries <tdevries@suse.de>
449 * dwarf.c (process_debug_info): Handling DW_UT_skeleton and
452 2021-02-09 Alan Modra <amodra@gmail.com>
454 * testsuite/lib/binutils-common.exp (supports_gnu_osabi): Remove
457 2021-02-07 Alan Modra <amodra@gmail.com>
459 * unwind-ia64.c (unw_print_xyreg): Don't leave output buffer
460 uninitialised on invalid input.
462 2021-02-06 Alan Modra <amodra@gmail.com>
465 * rename.c (smart_rename): Test for existence and type of output
468 2021-02-05 Nick Clifton <nickc@redhat.com>
470 * MAINTAINERS: Remove Richard Henderson as the ALPHA maintainer.
472 2021-02-05 Eli Zaretskii <eliz@gnu.org>
475 * elfedit.c (check_file):
476 * bucomm.c (get_file_size): Fix typos in comments.
478 2021-02-05 Alan Modra <amodra@gmail.com>
481 * arsup.c (ar_save): Use stat rather than lstat.
483 2021-02-03 Alan Modra <amodra@gmail.com>
488 * ar.c: Don't include libbfd.h.
489 (write_archive): Replace xmalloc+strcpy with xstrdup. Use
490 bfd_stat rather than fstat on iostream. Move stat and fd tests
491 outside of _WIN32 ifdef. Delete skip_stat variable.
492 * arsup.c (temp_name, real_ofd): New static variables.
493 (ar_open): Use make_tempname and bfd_fdopenw.
494 (ar_save): Adjust to suit ar_open changes. Move stat output
496 * objcopy.c: Don't include libbfd.h.
497 (copy_file): Use bfd_stat.
499 2021-02-02 H.J. Lu <hongjiu.lu@intel.com>
502 * readelf.c (process_section_headers): Add 'R' and 'D' to
504 * testsuite/binutils-all/retain1a.d: Updated.
506 2021-01-30 Nick Clifton <nickc@redhat.com>
508 * README-how-to-make-a-release: Small updates after the 2.35.2
511 2021-01-28 Eli Zaretskii <eliz@gnu.org>
514 * windres.c (quot): Use double quotes to protect strings on
517 2021-01-28 Eli Zaretskii <eliz@gnu.org>
520 * bucomm.c (get_file_size): Add code to handle /dev/null on
522 * elfedit.c (check_file): Likewise.
524 2021-01-27 Nick Clifton <nickc@redhat.com>
526 * objcopy.c (copy_main): Remove conditional control of the calls
527 to free, simplifying the code and making it easier to detect
530 2021-01-26 Frederic Cambus <fred@statdns.com>
532 * objcopy.c (copy_main): Fix a double free happening when both
533 --localize-symbols and --globalize-symbols options are invoked
536 2021-01-24 Nick Clifton <nickc@redhat.com>
538 * README-how-to-make-a-release: Minor updates after the 2.36 release.
540 2021-01-16 Alan Modra <amodra@gmail.com>
542 * readelf.c (uncompress_section_contents): Tidy inflateEnd result test.
544 2021-01-15 Alan Modra <amodra@gmail.com>
547 * readelf.c (uncompress_section_contents): Always call inflateEnd.
549 2021-01-14 Alexandre Oliva <oliva@gnu.org>
551 * MAINTAINERS: Update my email address.
553 2021-01-14 Nick Clifton <nickc@redhat.com>
555 * po/sv.po: Updated Swedish translation.
557 2021-01-13 Alan Modra <amodra@gmail.com>
559 * Makefile.in: Regenerate.
560 * doc/Makefile.in: Regenerate.
562 2021-01-13 Zebediah Figura <z.figura12@gmail.com>
565 * dlltool.c (i386_trampoline): Adjust %rsp immediately on entry
567 (i386_x64_trampoline): Add SEH annotations.
568 (struct mac): Add how_seh field.
569 (make_delay_head): If how_set field is true add SEh instructions.
571 2021-01-12 H.J. Lu <hongjiu.lu@intel.com>
574 * configure.ac: Use GNU_MAKE_JOBSERVER.
575 * aclocal.m4: Regenerated.
576 * configure: Likewise.
578 2021-01-12 Nick Clifton <nickc@redhat.com>
580 * po/fr.po: Updated French translation.
582 2021-01-11 H.J. Lu <hongjiu.lu@intel.com>
585 * configure: Regenerated.
587 2021-01-11 Nick Clifton <nickc@redhat.com>
589 * po/pt.po: Updated Portuguese translation.
590 * po/sr.po: Updated Serbian translation.
591 * po/uk.po: Updated Ukranian translation.
593 2021-01-09 H.J. Lu <hongjiu.lu@intel.com>
595 * configure: Regenerated.
597 2021-01-09 Nick Clifton <nickc@redhat.com>
599 * configure: Regenerate.
600 * po/binutils.pot: Regenerate.
602 2021-01-09 Nick Clifton <nickc@redhat.com>
604 * 2.36 release branch crated.
605 * README-how-to-make-a-release: Add note about updating Makefiles
607 * BRANCHES: Add binutils-2.36-branch.
609 2021-01-09 Alan Modra <amodra@gmail.com>
611 * configure: Regenerate.
613 2021-01-07 Samuel Thibault <samuel.thibault@gnu.org>
615 * configure: Regenerate.
617 2021-01-07 H.J. Lu <hongjiu.lu@intel.com>
620 * objcopy.c (copy_object): Handle section symbols for
621 non-relocatable inputs.
622 * testsuite/binutils-all/readelf.exp (readelf_test): Check
623 is_elf_unused_section_symbols.
624 * testsuite/binutils-all/readelf.s-64: Updated.
625 * testsuite/binutils-all/readelf.ss: Likewise.
626 * testsuite/binutils-all/readelf.ss-64: Likewise.
627 * testsuite/binutils-all/readelf.s-64-unused: New file.
628 * testsuite/binutils-all/readelf.ss-64-unused: Likewise.
629 * testsuite/binutils-all/readelf.ss-unused: Likewise.
630 * testsuite/lib/binutils-common.exp
631 (is_elf_unused_section_symbols): New proc.
633 2021-01-06 Reuben Thomas <rrt@sc3d.org>
635 * binutils/readelf.c: Correct grammar in comment.
637 2021-01-01 Nicolas Boulenguez <nicolas@debian.org>
639 * coffgrok.c (do_type): Correct spelling of auxiliary in errors.
640 * doc/binutils.texi: Correct grammar.
641 * readelf.c (process_version_sections): Correct spelling of auxiliary
643 * testsuite/binutils-all/vax/objdump.exp: Comment grammar fix.
645 2021-01-01 Alan Modra <amodra@gmail.com>
647 Update year range in copyright notice of all files.
649 For older changes see ChangeLog-2020
651 Copyright (C) 2021 Free Software Foundation, Inc.
653 Copying and distribution of this file, with or without modification,
654 are permitted in any medium without royalty provided the copyright
655 notice and this notice are preserved.
661 version-control: never