1 2021-05-11 Hans-Peter Nilsson <hp@axis.com>
3 * dwarf.c (process_abbrev_set): Properly parenthesize before
4 casting to unsigned long.
6 2021-05-11 Alan Modra <amodra@gmail.com>
9 * dwarf.c (process_abbrev_set): Replace start and end parameters
10 with section, abbrev_base, abbrev_size, abbrev_offset. Update
11 all callers. Sanity check parameters correctly and emit warnings
13 (process_debug_info): ..here.
15 2021-05-10 Thomas Wolff <towo@towo.net>
20 * windres.c (quot): Revert previous delta. Do not use double
21 quotes when spaces are detected in options.
22 * doc/binutils.texi (windres): Remove suggestion that the
23 --preprocessor option can take arguments.
25 2021-05-10 Alan Modra <amodra@gmail.com>
27 * dwarf.c (SAFE_BYTE_GET): Check bounds by subtracting amount from
28 END rather than adding amount to PTR.
29 (SAFE_SIGNED_BYTE_GET, SAFE_BYTE_GET64): Likewise.
31 2021-05-09 Alan Modra <amodra@gmail.com>
33 * objcopy.c (eq_string): Delete.
34 (create_symbol_htab): Use htab_eq_string.
36 2021-05-08 Mike Frysinger <vapier@gentoo.org>
38 * README-how-to-make-a-release: Update html & pdf entries.
40 2021-05-08 Mike Frysinger <vapier@gentoo.org>
42 * doc/Makefile.am (html-local, binutils/index.html): New targets.
43 * doc/Makefile.in: Regenerate.
45 2021-05-08 Mike Frysinger <vapier@gentoo.org>
47 * doc/Makefile.am (AM_MAKEINFOFLAGS): Add --no-split.
48 * doc/Makefile.in: Regenerate.
50 2021-05-07 Nick Clifton <nickc@redhat.com>
52 * readelf.c (no_processor_specific_unwind): New function.
53 (process_unwind): Use no_processor_specific_unwind for X86
56 2021-05-07 Michael Forney <mforney@mforney.org>
58 * dwarf.c: Don't omit second operand of '?' operator.
60 2021-04-30 Nick Clifton <nickc@redhat.com>
63 * dwarf.c (load_debug_sup_file): Allocate memory for filename in
66 2021-04-29 Nick Clifton <nickc@redhat.com>
69 * doc/binutils.texi (windres): Correct the description of the
70 default value of the --preprocessor argument.
72 2021-04-27 Nick Clifton <nickc@redhat.com>
75 * dwarf.c (parse_gnu_debuglink): Reject empty names.
76 (parse_gnu_debugaltlink): Likewise.
78 2021-04-22 Clément Chigot <clement.chigot@atos.net>
80 * od-xcoff.c (dump_xcoff32_symbols): Adapt to new
83 2021-04-21 Nick Lott <nick.lott@gmail.com>
86 * readelf.c (sym_base): New variable.
87 (enum print_mode): Add more modes.
88 (print_vma): Add suport for new modes.
89 (options): Add sym-base.
90 (usage): Add sym-base.
91 (parse_args): Add support for --sym-base.
92 (print_dynamic_symbol_size): New function.
93 (print_dynamic_symbol): Use new function.
94 * doc/binutils.texi: Document the new feature.
95 * NEWS: Mention the new feature.
97 2021-04-21 Nick Clifton <nickc@redhat.com>
99 * testsuite/binutils-all/mips/global-local-symtab-sort-n64t.d:
100 Adjust expected output to allow for named section symbols.
101 * testsuite/binutils-all/mips/global-local-symtab-sort-o32t.d:
103 * testsuite/binutils-all/readelf.s-64: Likewise.
104 * testsuite/binutils-all/readelf.ss-64-unused: Likewise.
105 * testsuite/binutils-all/readelf.ss-tmips: Likewise.
106 * testsuite/binutils-all/readelf.ss-unused: Likewise.
108 2021-04-21 Luo Longjun <luolongjun@huawei.com>
110 * readelf.c (print_dynamic_symbol): Print the section name for
111 section symbols without a name of their own.
113 2021-04-20 Andreas Krebbel <krebbel@linux.ibm.com>
115 * MAINTAINERS: Remove Martin Schwidefsky as s390 maintainer and
116 add him to Past Maintainers.
117 Update my email address.
119 2021-04-19 Nick Clifton <nickc@redhat.com>
122 * arsup.c (ar_addmod): Enable plugin support, if available.
124 2021-04-19 Nick Clifton <nickc@redhat.com>
126 * rename.c: (get_stat_atime_ns): Add prototype.
127 (get_stat_mtime_ns): Add prototype.
129 2021-04-16 Alan Modra <amodra@gmail.com>
132 * rename.c (get_stat_atime, get_stat_mtime): Make static.
133 (get_stat_atime_ns, get_stat_mtime_ns): Likewise.
135 2021-04-15 Pekka Seppänen <pexu@sourceware.mail.kapsi.fi>
138 * rename.c (get_stat_atime_ns): Add ATTRIBUTE_UNUSED.
139 (get_stat_mtime_ns): Likewise.
141 2021-04-15 Alan Modra <amodra@gmail.com>
144 * configure.ac: Check for sys/time.h and utimensat. Use standard
145 checks for mkstemp and mkdtemp. Whitespace. Check for nanosecond
146 members of struct stat.
147 * rename.c: Prefer sys/time.h for utimes over utime.h for utime.
148 (STAT_TIMESPEC, STAT_TIMESPEC_NS): Define
149 (get_stat_atime_ns, get_stat_mtime_ns): New inline functions.
150 (get_stat_atime, get_stat_mtime): Likewise.
151 (set_times): Choose first available of utimensat, utimes, utime.
152 Use above inline functions to set timespec and timeval values.
153 * configure: Regenerate.
154 * config.in: Regenerate.
155 * testsuite/binutils-all/objcopy.exp (objcopy_test): Add test of
156 file timestamp when --preserve-dates is used.
158 2021-04-15 Alan Modra <amodra@gmail.com>
161 * rename.c (smart_rename): When TO and FROM are equal, just set
163 * objcopy.c (strip_main, copy_main): Always call smart_rename.
165 2021-04-14 H.J. Lu <hongjiu.lu@intel.com>
168 * testsuite/binutils-all/x86-64/pr27708.dump: New file.
169 * testsuite/binutils-all/x86-64/pr27708.exe.bz2: Likewise.
170 * testsuite/binutils-all/x86-64/x86-64.exp: Run binutils/27708
173 2021-04-14 Mark Harmstone <mark@harmstone.com>
176 * resbin.c (bin_to_res_version): Ignore any trailing bytes at the
177 end of the structure.
179 2021-04-14 Frederic Cambus <fred@statdns.com>
181 * readelf.c (get_netbsd_elfcore_note_type): Remove unneeded #ifdef
182 checks for NT_NETBSDCORE_AUXV and NT_NETBSDCORE_LWPSTATUS.
184 2021-04-14 Alan Modra <amodra@gmail.com>
187 * objdump.c (show_line): Don't limit paths to PATH_MAX.
188 * readelf.c (struct filedata): Change program_interpreter from
189 a char array to a char pointer.
190 (process_program_headers): Sanity check PT_INTERP p_filesz.
191 Malloc program_interpreter using p_filesz and read directly from
193 (process_dynamic_section): Check program_interpreter is non-NULL.
194 (free_filedata): New function, split out from..
195 (process_object): ..here.
196 (close_debug_file): Call free_filedata.
197 * sysdep.h: Don't include sys/param.h.
198 (PATH_MAX): Don't define.
199 * configure.ac: Don't check for sys/param.h.
200 * configure: Regenerate.
202 2021-04-13 Frederic Cambus <fred@statdns.com>
204 * readelf.c (process_netbsd_elf_note): Remove now unneeded #ifdef
205 check for NT_NETBSD_PAX.
207 2021-04-12 Alan Modra <amodra@gmail.com>
209 * configure.ac (--enable-checking): Add support.
210 * config.in: Regenerate.
211 * configure: Regenerate.
213 2021-04-09 Alan Modra <amodra@gmail.com>
215 * objdump.c (struct objdump_disasm_info): Delete dynrelbuf and
217 (find_symbol_for_address): Adjust for dynrelbuf and dynrelcount move.
218 (disassemble_section, disassemble_data): Likewise.
220 2021-04-06 Alan Modra <amodra@gmail.com>
222 * objdump.c (objdump_symbol_at_address): Return asymbol*.
224 2021-04-06 Alan Modra <amodra@gmail.com>
226 * NEWS: Mention C99 requirement.
227 * README: Likewise. Modernise examples and "Reporting bugs".
229 2021-04-05 Alan Modra <amodra@gmail.com>
231 * configure.ac: Assume long long is available. Don't test for
232 strings.h, stdlib.h, limits.h, locale.h, or wchar.h. Check
233 inttypes.h, stdint.h, sys/stat.h and sys/types.h. Don't check for
234 strcoll, setlocale, setmode or location of time_t. Don't check
235 for fprintf, getenv, snprintf, strnlen, strstr or vsnprintf decls.
236 (AC_ISC_POSIX, AXC_HEADER_STRING, AC_FUNC_ALLOCA): Don't invoke.
237 * sysdep.h: Don't include alloca-conf.h, include config.h instead.
238 Test HAVE_SYS_TYPES_H and reorder includes. Include limits.h,
239 locale.h, string.h and stdlib.h unconditionally. Remove various
240 fallback declarations. Assume long long is available.
241 * addr2line.c: Don't test HAVE_SETLOCALE.
243 * coffdump.c: Likewise.
244 * dlltool.c: Likewise.
245 * dllwrap.c: Likewise.
246 * elfedit.c: Likewise.
248 * objcopy.c: Likewise.
249 * objdump.c: Likewise.
250 * readelf.c: Likewise.
252 * srconv.c: Likewise.
253 * strings.c: Likewise.
254 * sysdump.c: Likewise.
255 * windmc.c: Likewise.
256 * windres.c: Likewise.
257 * bucomm.c: Don't test HAVE_TIME_T_IN_TIME_H or HAVE_TIME_T_IN_TYPES_H.
258 * dwarf.c: Include limits.h unconditionally. Assume long long
260 * nm.c: Don't test HAVE_STRCOLL.
261 * readelf.c: Don't test HAVE_WCHAR_H.
262 * strings.c: Assume long long is available.
263 * syslex.l: Include string.h unconditionally.
264 * aclocal.m4: Regenerate.
265 * config.in: Regenerate.
266 * configure: Regenerate.
267 * Makefile.in: Regenerate.
268 * doc/Makefile.in: Regenerate.
270 2021-04-01 Martin Liska <mliska@suse.cz>
272 * elfcomm.h (strneq): Remove strneq and use startswith.
273 * readelf.c (ia64_process_unwind): Likewise.
274 (process_note): Likewise.
276 2021-04-01 Martin Liska <mliska@suse.cz>
278 * dllwrap.c: Use startswith function.
279 * objcopy.c (is_dwo_section): Likewise.
280 (handle_remove_section_option): Likewise.
281 (copy_main): Likewise.
282 * objdump.c (is_significant_symbol_name): Likewise.
284 2021-04-01 Martin Liska <mliska@suse.cz>
286 * dwarf.c (display_debug_lines_raw): Replace const_strneq with
288 (display_debug_lines_decoded): Likewise.
289 (display_debug_links): Likewise.
290 * elfcomm.c (setup_archive): Likewise.
291 * elfcomm.h (const_strneq): Likewise.
292 * readelf.c (process_section_headers): Likewise.
293 (slurp_ia64_unwind_table): Likewise.
294 (slurp_hppa_unwind_table): Likewise.
295 (decode_arm_unwind): Likewise.
296 (display_debug_section): Likewise.
297 (process_note): Likewise.
299 2021-03-31 Alan Modra <amodra@gmail.com>
301 * sysdep.h (POISON_BFD_BOOLEAN): Define.
302 * addr2line.c, * ar.c, * arsup.c, * bfdtest2.c, * binemul.c,
303 * binemul.h, * bucomm.c, * bucomm.h, * budbg.h, * coffgrok.c,
304 * debug.c, * debug.h, * dlltool.c, * dwarf.c, * dwarf.h,
305 * elfedit.c, * emul_aix.c, * mclex.c, * nm.c, * objcopy.c,
306 * objdump.c, * od-macho.c, * prdbg.c, * rdcoff.c, * rddbg.c,
307 * readelf.c, * rename.c, * stabs.c, * strings.c, * windint.h,
308 * windmc.c, * windmc.h, * windres.c, * winduni.c,
309 * wrstabs.c: Replace bfd_boolean with bool, FALSE with false,
310 and TRUE with true throughout.
312 2021-03-31 Alan Modra <amodra@gmail.com>
314 * coffdump.c: Include stdint.h in place of bfd_stdint.h.
317 2021-03-31 Alan Modra <amodra@gmail.com>
319 * prdbg.c (pr_function_type): Replace LITSTTCPY with strcpy.
321 2021-03-29 Alan Modra <amodra@gmail.com>
323 * dlltool.c (main): Don't use "boolean_condition ? TRUE : FALSE".
324 * dwarf.c (read_and_display_attr_value): Likewise.
325 (display_debug_str_offsets): Likewise.
326 * objdump.c (dump_bfd): Likewise.
327 * readelf.c (dump_section_as_strings): Likewise.
328 (dump_section_as_bytes): Likewise.
330 2021-03-29 Alan Modra <amodra@gmail.com>
332 * objdump.c (process_links): Use type int.
333 * readelf.c (request_dump): Don't increment do_dump, set it.
334 * windint.h (target_is_bigendian): Use type bfd_boolean.
335 * windmc.c (target_is_bigendian): Likewise.
336 * windres.c (target_is_bigendian): Likewise.
338 2021-03-22 Martin Liska <mliska@suse.cz>
340 * dlltool.c (scan_drectve_symbols): Replace usage of CONST_STRNEQ
342 * emul_aix.c (ar_emul_aix_parse_arg): Likewise.
343 * objcopy.c (is_mergeable_note_section): Likewise.
344 * objdump.c (dump_dwarf_section): Likewise.
345 * prdbg.c (pr_method_type): Likewise.
346 (pr_class_baseclass): Likewise.
347 (tg_class_baseclass): Likewise.
348 * readelf.c (process_lto_symbol_tables): Likewise.
349 * stabs.c (ULLHIGH): Likewise.
350 (parse_stab_argtypes): Likewise.
351 (stab_demangle_function_name): Likewise.
353 2021-03-19 H.J. Lu <hongjiu.lu@intel.com>
355 * readelf.c (get_machine_name): Add EM_INTELGT.
357 2021-03-18 Nick Clifton <nickc@redhat.com>
360 * readelf.c (dump_section_as_strings): Mention separate filename.
361 (dump_section_as_bytes): Likewise.
362 (dump_section_as_ctf): Likewise.
363 (initialise_dumkps_byname): Only issue a warning for missing
364 sections if processing the main file.
365 (process_section_contents): Only issue a warning for unsumped
366 section numbers in the main file.
367 (initialise_dump_sects): New function. Contains code extracted
369 (process_object): ... here. Also call initialise_dump_sects for
372 2021-03-16 Nick Clifton <nickc@redhat.com>
375 * readelf.c (display_debug_section): Also retain .debug_addr
378 2021-03-16 Nick Clifton <nickc@redhat.com>
381 * readelf.c (process_section_contents): Only dump debug
382 information for separate files unless process_links is enabled.
383 (process_object): Always call process_section_contents for
386 2021-03-15 Nick Clifton <nickc@redhat.com>
389 * nm.c (FORMAT_JUST_SYMBOLS): Define.
390 (struct optput_fns): Add entry for FORMAT_JUST_SYMBOLS.
391 (long_options): Add just-symbols.
392 (set_output_format): Add support for just-symbols.
393 (get_print_format): Likewise.
394 (do_not_print_object_filename): New function.
395 (do_not_print_archive_filename): New function.
396 (do_not_print_archive_member): New function.
397 (do_not_print_symbol_filename): New function.
398 (just_print_symbol_name): New function.
399 (main): Handle --just-symbols.
400 * NEWS: Mention the new feature.
401 * doc/binutils.texi: Document the new feature.
403 2021-03-12 Clément Chigot <clement.chigot@atos.net>
405 * od-xcoff.c: Replace RTB by TRL entry.
407 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
408 Andrew Burgess <andrew.burgess@embecosm.com>
410 * readelf.c (get_note_type): Handle NT_RISCV_CSR.
412 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
413 Andrew Burgess <andrew.burgess@embecosm.com>
415 * readelf.c (get_note_type): Handle NT_GDB_TDESC.
417 2021-03-05 Nick Clifton <nickc@redhat.com>
420 * dwarf.c (display_debug_macro): Handle the displaying of
421 DW_MACRO_define_strp and DW_MACRO_undef_strp in v4
422 .debug_macro.dwo sections.
424 2021-03-04 Nick Clifton <nickc@redhat.com>
427 * objdump.c (process_links): New variable.
428 (usage): Add --process-links.
429 (long_options): Likewise.
430 (dump_bfd): Stop processing once the bfd has been loaded unless
431 this is the main file or process_links has been enabled.
432 (main): Handle the process-links option.
433 * readelf.c (process_links): New variable.
434 (struct filedata): Add is_separate field.
435 (options): Add --process-links.
437 (parse_args): Likewise.
438 (process_file_header): Include the filename when dumping
439 information for separate debuginfo files.
440 (process_program_headers): Likewise.
441 (process_section_headers): Likewise.
442 (process_section_groups): Likewise.
443 (process_relocs): Likewise.
444 (process_dynamic_section): Likewise.
445 (process_version_sections): Likewise.
446 (display_lto_symtab): Likewise.
447 (process_symbol_table): Likewise.
448 (process_syminfo): Likewise.
449 (initialise_dumps_by_name): Likewise.
450 (process_section_contents): Likewise.
451 (process_notes_at): Likewise.
452 (process_notes): Likewise.
453 (open_file): Add is_separate parameter. Use to initialise the
454 is_separate field in the filedata structure.
455 (open_deug): Update call to open_file.
456 (process_object): Add processing of the contents of separate
457 debuginfo files, gated by the process_links variable.
458 (process_archive): Update call to open_file.
459 (process_file): Initialise the is_separate field in the filedata
461 * dwarf.c (load_separate_debug_info_file): Only report the
462 loading of a separate file if debug links are being dumped.
463 * objcopy.c (keep_section_symbols): New variable.
464 (enum command_line_switch): Add OPTION_KEEP_SYMBOLS.
465 (strip_options): Add keep-section-symbols.
466 (copy_options): Likewise.
467 (copy_usage): Likewise.
468 (strip_usage): Likewise.
469 (copy_object): Keep section symbols if requested by command line
471 (strip_main): Handle --keep-section-symbols.
472 (copy_main): Likewise.
473 * doc/binutils.texi: Document the new options.
474 * NEWS: Mention the new features.
475 * testsuite/binutils-all/compress.exp (test_gnu_debuglink):
476 Update options passed to objdump. Use diff rather than cmp to
477 compare the dumped data.
478 * testsuite/binutils-all/objdump.WK2: Update regexp.
479 * testsuite/binutils-all/objdump.WK3: Update regexp.
480 * testsuite/binutils-all/objdump.exp: Use --process-links
481 instead of --dwarf=follow-links.
482 * testsuite/binutils-all/readelf.exp (readelf_test): Include
483 readelf's output in the log when the test fails.
484 Add the -P option to the -wKis test.
485 * testsuite/binutils-all/readelf.wKis: Update expected output.
487 2021-03-03 Alan Modra <amodra@gmail.com>
490 * objcopy.c (filter_symbols): Apply --weaken to undefined symbols.
491 * NEWS: Mention feature.
493 2021-03-01 H.J. Lu <hongjiu.lu@intel.com>
496 * dwarf.c (load_separate_debug_info): Issue warning only if
497 do_debug_links is set.
498 * testsuite/binutils-all/compress.exp: Run objdump and readelf
499 with missing debug file.
501 2021-03-01 Alan Modra <amodra@gmail.com>
504 * doc/binutils.texi: Add nm --with-symbol-versions and
505 --without-symbol-versions documentation.
506 * nm.c (with_symbol_versions): New variable.
507 (enum long_option_values): Delete OPTION_WITH_SYMBOL_VERSIONS.
508 (long_options): Make --with-symbol-versions entry twiddle the flag.
509 Add --without-symbol-versions.
510 (print_symname): Strip version when !with_symbol_versions. Add
511 dynamic version info under control of with_symbol_versions.
512 (main): Remove OPTION_WITH_SYMBOL_VERSIONS case.
514 2021-02-26 Fangrui Song <maskray@google.com>
517 * readelf.c (quiet): New option flag.
518 (enum long_option_values): New enum to hold long option value.
519 (long_options): Add --quiet.
520 (usage): Mention --quiet.
521 (display_rel_file): If quiet is enabled, suppress "no symbols".
522 (main): Handle the new option.
523 * NEWS: Mention --quiet.
524 * docs/binutils.texi: Document --quiet.
526 2021-02-26 Tom de Vries <tdevries@suse.de>
528 * dwarf.c (display_debug_addr): Handle dwarf-5 .debug_addr bits.
530 2021-02-26 Tom de Vries <tdevries@suse.de>
533 * dwarf.c: (skip_attr_bytes): Add support for DW_FORM_str* and
535 (read_and_display_attr_value): Likewise.
537 2021-02-25 Nick Clifton <nickc@redhat.com>
539 * dwarf.c (get_type_abbrev_from_form): Accept but ignore sup
541 (read_and_display_attr_value): Handle sup forms.
542 (display_debug_sup): New function. Displays the contents of a
544 (load_debug_sup_file): New function. Loads the contents of a file
545 referenced by a .debug_sup section.
546 (check_for_and_load_links): Call load_debug_sup_file.
547 (debug_displays): Add entry for .debug_sup.
548 * dwarf.h (enum dwarf_section_display_enum): Add debug_sup.
549 * readelf.c (process_section_headers): Add support for debug_sup.
550 * doc/debug.options.texi: Note that the =links option will display
551 the contents of .debug_sup sections.
552 * NEWS: Mention the new support.
554 2021-02-25 Alan Modra <amodra@gmail.com>
557 * rename.c (simple_copy): Mark target_stat ATTRIBUTE_UNUSED.
559 2021-02-24 Nick Clifton <nickc@redhat.com>
562 * od-elf32_avr.c (elf32_avr_get_memory_usage): Check for overflows
563 when adding together the section sizes.
565 2021-02-24 Nick Clifton <nickc@redhat.com>
567 * objcopy.c (merge_gnu_build_notes): Remove support for v1/v2 GNU
569 * readelf.c (print_gnu_build_attribute_description): Likewise.
571 2021-02-24 Alan Modra <amodra@gmail.com>
572 Siddhesh Poyarekar <siddhesh@gotplt.org>
575 * bucomm.h (smart_rename): Update prototype.
576 * rename.c (smart_rename): Add fromfd and preserve_dates params.
577 Pass fromfd and target_stat to simple_copy. Call set_times
579 (simple_copy): Accept fromfd rather than from filename. Add
580 target_stat param. Rewind fromfd rather than opening. Open
581 "to" file without O_CREAT. Try to preserve S_ISUID and S_ISGID.
582 * ar.c (write_archive): Rename ofd to tmpfd. Dup tmpfd before
583 closing output temp file, and pass tmpfd to smart_rename.
584 * arsup.c (temp_fd): Rename from real_fd.
585 (ar_save): Dup temp_fd and pass to smart_rename.
586 * objcopy.c (strip_main, copy_main): Likewise, and pass
589 2021-02-24 Alan Modra <amodra@gmail.com>
592 * rename.c: Tidy throughout.
593 (smart_rename): Always copy. Remove windows specific code.
595 2021-02-20 Alan Modra <amodra@gmail.com>
597 * testsuite/lib/binutils-common.exp: Whitespace fixes throughout.
598 (run_dump_test): Fail if expecting errors from a file like we do
599 for error strings, if no error is seen.
601 2021-02-19 Alan Modra <amodra@gmail.com>
603 * testsuite/binutils-all/readelf.exp (pr26548): Run for 32-bit too.
605 2021-02-19 Siddhesh Poyarekar <siddhesh@gotplt.org>
607 * ar.c (write_archive): Remove TARGET_STAT. Adjust call to
609 * arsup.c (ar_save): Likewise.
610 * objcopy (strip_main): Don't copy TMPFD. Don't set times on
611 temporary file and adjust call to SMART_RENAME.
612 (copy_main): Likewise.
613 * rename.c [!S_ISLNK]: Remove definitions.
614 (try_preserve_permissions): Remove function.
615 (smart_rename): Remove FD, PRESERVE_DATES arguments. Use
616 rename system call only if TO does not exist.
617 * bucomm.h (smart_rename): Adjust declaration.
619 2021-02-18 Nick Clifton <nickc@redhat.com>
621 * objcopy.c (merge_gnu_build_notes): Handle notes with a start
622 address that is higher than the end address.
624 2021-02-17 Alan Modra <amodra@gmail.com>
626 * dwarf.c: Include limits.h.
627 (CHAR_BIT): Provide backup define.
628 (read_leb128): Use CHAR_BIT to size "result" in bits. Correct
629 signed overflow checking.
630 * testsuite/binutils-all/pr26548.s,
631 * testsuite/binutils-all/pr26548.d,
632 * testsuite/binutils-all/pr26548e.d: New tests.
633 * testsuite/binutils-all/readelf.exp: Run them.
634 (readelf_test): Drop unused "xfails" parameter. Update all uses.
636 2021-02-16 Jan Beulich <jbeulich@suse.com>
638 * dwarf.c (process_debug_info): Initialize "dwo_id".
640 2021-02-15 Alan Modra <amodra@gmail.com>
642 * objdump.c (load_specific_debug_section): Don't call
643 bfd_cache_section_contents. Rearrange so that
644 bfd_get_full_section_contents is not called on path where
645 bfd_simple_get_relocated_section_contents is called.
646 Don't set section->user_data.
647 (free_debug_section): Always free section->start. Don't twiddle
649 * readelf.c (load_specific_debug_section): Don't set user_data.
650 * dwarf.h (struct dwarf_section): Remove use_data field.
651 * dwarf.c (NO_ABBREVS, ABBREV): Adjust to suit.
653 2021-02-15 Alan Modra <amodra@gmail.com>
655 * testsuite/binutils-all/compress.exp: Remove nds32 xfails.
656 * testsuite/binutils-all/objdump.exp: Likewise.
658 2021-02-14 Alan Modra <amodra@gmail.com>
660 * objdump.c (slurp_symtab): Don't add an extra entry for NULL
662 (slurp_dynamic_symtab): Likewise.
663 (dump_bfd): Formatting. Copy terminating NULL from extra_syms.
665 2021-02-14 Alan Modra <amodra@gmail.com>
667 * Makefile.in: Regenerate.
668 * doc/Makefile.in: Regenerate.
670 2021-02-13 Mike Frysinger <vapier@gentoo.org>
672 * aclocal.m4: Regenerate.
674 2021-02-12 Nick Clifton <nickc@redhat.com>
676 * configure.ac (follow-debug-links): Add option to enable or
677 disable the following of debug links by default. Set the
678 default for the option to be 'follow'.
679 * dwarf.c (do_follow_links): Initialise with DEFAULT_FOR_FOLLOW_LINKS.
680 (dwarf_select_sections_by_names): Add no-follow-links option.
681 (dwarf_select_sections_by_letter): Add 'N' option.
682 * objdump.c (usage): Add conditional text describing the
684 (slurp_symtab): Ensure that there is a NULL entry at the end
686 (slurp_dynamic_symtab): Likewise.
687 (dump_bfd): When extending the symbol table, ensure that there
688 is still a NULL entry at the end.
689 * readelf.c (usage): Add conditional text describing the
691 * doc/binutils.texi: Update documentation for objcopy and
693 * doc/debug.options.texi: Update documentation of the
695 * config.in: Regenerate.
696 * configure: Regenerate.
697 * testsuite/binutils-all/compress.exp: Add the -WN option to
698 objdump command lines that are not expecting to follow links.
699 * testsuite/binutils-all/readelf.exp: Add the
700 --debug-dump=no-follow-links option to tests that are not
701 expecting to follow debug links.
702 * NEWS: Mention the new behaviour.
704 2021-02-12 Alan Modra <amodra@gmail.com>
706 * testsuite/binutils-all/objcopy.exp: Report "unsupported" when
707 gas or ld fails to build a testcase rather than "unresolved".
708 Report "fail" when readelf returns an error status rather than
710 * testsuite/binutils-all/ar.exp: Likewise.
711 * testsuite/binutils-all/compress.exp: Likewise.
712 * testsuite/binutils-all/readelf.exp: Likewise.
714 2021-02-12 Alan Modra <amodra@gmail.com>
716 * testsuite/binutils-all/pr25662.s: Replace "a" with "aaa" and
717 "c" with "ccc" labels.
719 2021-02-12 Tom de Vries <tdevries@suse.de>
721 * dwarf.h (debug_info): Fix typo in comment.
723 2021-02-12 Tom de Vries <tdevries@suse.de>
725 * dwarf.c (display_debug_str_offsets): Handle multiple sets of
728 2021-02-12 Tom de Vries <tdevries@suse.de>
730 * dwarf.c (process_debug_info): Print DWO ID.
732 2021-02-11 Alan Modra <amodra@gmail.com>
737 * od-elf32_avr.c (elf32_avr_get_note_section_contents): Formatting.
738 Use bfd_malloc_and_get_section.
739 (elf32_avr_get_note_desc): Formatting. Return descsz. Sanity
740 check namesz. Return NULL if descsz is too small. Ensure
741 string table is terminated.
742 (elf32_avr_get_device_info): Formatting. Add note_size param.
744 (elf32_avr_dump_mem_usage): Adjust to suit.
746 2021-02-10 Tom de Vries <tdevries@suse.de>
749 * dwarf.c (load_dwo_file): Handle case that name is absolute path.
751 2021-02-10 Tom de Vries <tdevries@suse.de>
754 * dwarf.c (display_debug_ranges): Filter range lists according to
757 2021-02-09 Tom de Vries <tdevries@suse.de>
760 * dwarf.c (get_type_abbrev_from_form): Handle DW_FORM_ref_sig8.
762 2021-02-09 Tom de Vries <tdevries@suse.de>
765 * dwarf.c (process_debug_info): Handling DW_UT_skeleton and
768 2021-02-09 Alan Modra <amodra@gmail.com>
770 * testsuite/lib/binutils-common.exp (supports_gnu_osabi): Remove
773 2021-02-07 Alan Modra <amodra@gmail.com>
775 * unwind-ia64.c (unw_print_xyreg): Don't leave output buffer
776 uninitialised on invalid input.
778 2021-02-06 Alan Modra <amodra@gmail.com>
781 * rename.c (smart_rename): Test for existence and type of output
784 2021-02-05 Nick Clifton <nickc@redhat.com>
786 * MAINTAINERS: Remove Richard Henderson as the ALPHA maintainer.
788 2021-02-05 Eli Zaretskii <eliz@gnu.org>
791 * elfedit.c (check_file):
792 * bucomm.c (get_file_size): Fix typos in comments.
794 2021-02-05 Alan Modra <amodra@gmail.com>
797 * arsup.c (ar_save): Use stat rather than lstat.
799 2021-02-03 Alan Modra <amodra@gmail.com>
804 * ar.c: Don't include libbfd.h.
805 (write_archive): Replace xmalloc+strcpy with xstrdup. Use
806 bfd_stat rather than fstat on iostream. Move stat and fd tests
807 outside of _WIN32 ifdef. Delete skip_stat variable.
808 * arsup.c (temp_name, real_ofd): New static variables.
809 (ar_open): Use make_tempname and bfd_fdopenw.
810 (ar_save): Adjust to suit ar_open changes. Move stat output
812 * objcopy.c: Don't include libbfd.h.
813 (copy_file): Use bfd_stat.
815 2021-02-02 H.J. Lu <hongjiu.lu@intel.com>
818 * readelf.c (process_section_headers): Add 'R' and 'D' to
820 * testsuite/binutils-all/retain1a.d: Updated.
822 2021-01-30 Nick Clifton <nickc@redhat.com>
824 * README-how-to-make-a-release: Small updates after the 2.35.2
827 2021-01-28 Eli Zaretskii <eliz@gnu.org>
830 * windres.c (quot): Use double quotes to protect strings on
833 2021-01-28 Eli Zaretskii <eliz@gnu.org>
836 * bucomm.c (get_file_size): Add code to handle /dev/null on
838 * elfedit.c (check_file): Likewise.
840 2021-01-27 Nick Clifton <nickc@redhat.com>
842 * objcopy.c (copy_main): Remove conditional control of the calls
843 to free, simplifying the code and making it easier to detect
846 2021-01-26 Frederic Cambus <fred@statdns.com>
848 * objcopy.c (copy_main): Fix a double free happening when both
849 --localize-symbols and --globalize-symbols options are invoked
852 2021-01-24 Nick Clifton <nickc@redhat.com>
854 * README-how-to-make-a-release: Minor updates after the 2.36 release.
856 2021-01-16 Alan Modra <amodra@gmail.com>
858 * readelf.c (uncompress_section_contents): Tidy inflateEnd result test.
860 2021-01-15 Alan Modra <amodra@gmail.com>
863 * readelf.c (uncompress_section_contents): Always call inflateEnd.
865 2021-01-14 Alexandre Oliva <oliva@gnu.org>
867 * MAINTAINERS: Update my email address.
869 2021-01-14 Nick Clifton <nickc@redhat.com>
871 * po/sv.po: Updated Swedish translation.
873 2021-01-13 Alan Modra <amodra@gmail.com>
875 * Makefile.in: Regenerate.
876 * doc/Makefile.in: Regenerate.
878 2021-01-13 Zebediah Figura <z.figura12@gmail.com>
881 * dlltool.c (i386_trampoline): Adjust %rsp immediately on entry
883 (i386_x64_trampoline): Add SEH annotations.
884 (struct mac): Add how_seh field.
885 (make_delay_head): If how_set field is true add SEh instructions.
887 2021-01-12 H.J. Lu <hongjiu.lu@intel.com>
890 * configure.ac: Use GNU_MAKE_JOBSERVER.
891 * aclocal.m4: Regenerated.
892 * configure: Likewise.
894 2021-01-12 Nick Clifton <nickc@redhat.com>
896 * po/fr.po: Updated French translation.
898 2021-01-11 H.J. Lu <hongjiu.lu@intel.com>
901 * configure: Regenerated.
903 2021-01-11 Nick Clifton <nickc@redhat.com>
905 * po/pt.po: Updated Portuguese translation.
906 * po/sr.po: Updated Serbian translation.
907 * po/uk.po: Updated Ukranian translation.
909 2021-01-09 H.J. Lu <hongjiu.lu@intel.com>
911 * configure: Regenerated.
913 2021-01-09 Nick Clifton <nickc@redhat.com>
915 * configure: Regenerate.
916 * po/binutils.pot: Regenerate.
918 2021-01-09 Nick Clifton <nickc@redhat.com>
920 * 2.36 release branch crated.
921 * README-how-to-make-a-release: Add note about updating Makefiles
923 * BRANCHES: Add binutils-2.36-branch.
925 2021-01-09 Alan Modra <amodra@gmail.com>
927 * configure: Regenerate.
929 2021-01-07 Samuel Thibault <samuel.thibault@gnu.org>
931 * configure: Regenerate.
933 2021-01-07 H.J. Lu <hongjiu.lu@intel.com>
936 * objcopy.c (copy_object): Handle section symbols for
937 non-relocatable inputs.
938 * testsuite/binutils-all/readelf.exp (readelf_test): Check
939 is_elf_unused_section_symbols.
940 * testsuite/binutils-all/readelf.s-64: Updated.
941 * testsuite/binutils-all/readelf.ss: Likewise.
942 * testsuite/binutils-all/readelf.ss-64: Likewise.
943 * testsuite/binutils-all/readelf.s-64-unused: New file.
944 * testsuite/binutils-all/readelf.ss-64-unused: Likewise.
945 * testsuite/binutils-all/readelf.ss-unused: Likewise.
946 * testsuite/lib/binutils-common.exp
947 (is_elf_unused_section_symbols): New proc.
949 2021-01-06 Reuben Thomas <rrt@sc3d.org>
951 * binutils/readelf.c: Correct grammar in comment.
953 2021-01-01 Nicolas Boulenguez <nicolas@debian.org>
955 * coffgrok.c (do_type): Correct spelling of auxiliary in errors.
956 * doc/binutils.texi: Correct grammar.
957 * readelf.c (process_version_sections): Correct spelling of auxiliary
959 * testsuite/binutils-all/vax/objdump.exp: Comment grammar fix.
961 2021-01-01 Alan Modra <amodra@gmail.com>
963 Update year range in copyright notice of all files.
965 For older changes see ChangeLog-2020
967 Copyright (C) 2021 Free Software Foundation, Inc.
969 Copying and distribution of this file, with or without modification,
970 are permitted in any medium without royalty provided the copyright
971 notice and this notice are preserved.
977 version-control: never