1 2021-05-12 Alan Modra <amodra@gmail.com>
4 * dwarf.c (fetch_indexed_string): Correct length sanity checks.
5 Sanity check section size for version and padding too. Correct
6 index sanity check. Handle multiple tables in .debug_str_offsets.
8 2021-05-11 Hans-Peter Nilsson <hp@axis.com>
10 * dwarf.c (process_abbrev_set): Properly parenthesize before
11 casting to unsigned long.
13 2021-05-11 Alan Modra <amodra@gmail.com>
16 * dwarf.c (process_abbrev_set): Replace start and end parameters
17 with section, abbrev_base, abbrev_size, abbrev_offset. Update
18 all callers. Sanity check parameters correctly and emit warnings
20 (process_debug_info): ..here.
22 2021-05-10 Thomas Wolff <towo@towo.net>
27 * windres.c (quot): Revert previous delta. Do not use double
28 quotes when spaces are detected in options.
29 * doc/binutils.texi (windres): Remove suggestion that the
30 --preprocessor option can take arguments.
32 2021-05-10 Alan Modra <amodra@gmail.com>
34 * dwarf.c (SAFE_BYTE_GET): Check bounds by subtracting amount from
35 END rather than adding amount to PTR.
36 (SAFE_SIGNED_BYTE_GET, SAFE_BYTE_GET64): Likewise.
38 2021-05-09 Alan Modra <amodra@gmail.com>
40 * objcopy.c (eq_string): Delete.
41 (create_symbol_htab): Use htab_eq_string.
43 2021-05-08 Mike Frysinger <vapier@gentoo.org>
45 * README-how-to-make-a-release: Update html & pdf entries.
47 2021-05-08 Mike Frysinger <vapier@gentoo.org>
49 * doc/Makefile.am (html-local, binutils/index.html): New targets.
50 * doc/Makefile.in: Regenerate.
52 2021-05-08 Mike Frysinger <vapier@gentoo.org>
54 * doc/Makefile.am (AM_MAKEINFOFLAGS): Add --no-split.
55 * doc/Makefile.in: Regenerate.
57 2021-05-07 Nick Clifton <nickc@redhat.com>
59 * readelf.c (no_processor_specific_unwind): New function.
60 (process_unwind): Use no_processor_specific_unwind for X86
63 2021-05-07 Michael Forney <mforney@mforney.org>
65 * dwarf.c: Don't omit second operand of '?' operator.
67 2021-04-30 Nick Clifton <nickc@redhat.com>
70 * dwarf.c (load_debug_sup_file): Allocate memory for filename in
73 2021-04-29 Nick Clifton <nickc@redhat.com>
76 * doc/binutils.texi (windres): Correct the description of the
77 default value of the --preprocessor argument.
79 2021-04-27 Nick Clifton <nickc@redhat.com>
82 * dwarf.c (parse_gnu_debuglink): Reject empty names.
83 (parse_gnu_debugaltlink): Likewise.
85 2021-04-22 Clément Chigot <clement.chigot@atos.net>
87 * od-xcoff.c (dump_xcoff32_symbols): Adapt to new
90 2021-04-21 Nick Lott <nick.lott@gmail.com>
93 * readelf.c (sym_base): New variable.
94 (enum print_mode): Add more modes.
95 (print_vma): Add suport for new modes.
96 (options): Add sym-base.
97 (usage): Add sym-base.
98 (parse_args): Add support for --sym-base.
99 (print_dynamic_symbol_size): New function.
100 (print_dynamic_symbol): Use new function.
101 * doc/binutils.texi: Document the new feature.
102 * NEWS: Mention the new feature.
104 2021-04-21 Nick Clifton <nickc@redhat.com>
106 * testsuite/binutils-all/mips/global-local-symtab-sort-n64t.d:
107 Adjust expected output to allow for named section symbols.
108 * testsuite/binutils-all/mips/global-local-symtab-sort-o32t.d:
110 * testsuite/binutils-all/readelf.s-64: Likewise.
111 * testsuite/binutils-all/readelf.ss-64-unused: Likewise.
112 * testsuite/binutils-all/readelf.ss-tmips: Likewise.
113 * testsuite/binutils-all/readelf.ss-unused: Likewise.
115 2021-04-21 Luo Longjun <luolongjun@huawei.com>
117 * readelf.c (print_dynamic_symbol): Print the section name for
118 section symbols without a name of their own.
120 2021-04-20 Andreas Krebbel <krebbel@linux.ibm.com>
122 * MAINTAINERS: Remove Martin Schwidefsky as s390 maintainer and
123 add him to Past Maintainers.
124 Update my email address.
126 2021-04-19 Nick Clifton <nickc@redhat.com>
129 * arsup.c (ar_addmod): Enable plugin support, if available.
131 2021-04-19 Nick Clifton <nickc@redhat.com>
133 * rename.c: (get_stat_atime_ns): Add prototype.
134 (get_stat_mtime_ns): Add prototype.
136 2021-04-16 Alan Modra <amodra@gmail.com>
139 * rename.c (get_stat_atime, get_stat_mtime): Make static.
140 (get_stat_atime_ns, get_stat_mtime_ns): Likewise.
142 2021-04-15 Pekka Seppänen <pexu@sourceware.mail.kapsi.fi>
145 * rename.c (get_stat_atime_ns): Add ATTRIBUTE_UNUSED.
146 (get_stat_mtime_ns): Likewise.
148 2021-04-15 Alan Modra <amodra@gmail.com>
151 * configure.ac: Check for sys/time.h and utimensat. Use standard
152 checks for mkstemp and mkdtemp. Whitespace. Check for nanosecond
153 members of struct stat.
154 * rename.c: Prefer sys/time.h for utimes over utime.h for utime.
155 (STAT_TIMESPEC, STAT_TIMESPEC_NS): Define
156 (get_stat_atime_ns, get_stat_mtime_ns): New inline functions.
157 (get_stat_atime, get_stat_mtime): Likewise.
158 (set_times): Choose first available of utimensat, utimes, utime.
159 Use above inline functions to set timespec and timeval values.
160 * configure: Regenerate.
161 * config.in: Regenerate.
162 * testsuite/binutils-all/objcopy.exp (objcopy_test): Add test of
163 file timestamp when --preserve-dates is used.
165 2021-04-15 Alan Modra <amodra@gmail.com>
168 * rename.c (smart_rename): When TO and FROM are equal, just set
170 * objcopy.c (strip_main, copy_main): Always call smart_rename.
172 2021-04-14 H.J. Lu <hongjiu.lu@intel.com>
175 * testsuite/binutils-all/x86-64/pr27708.dump: New file.
176 * testsuite/binutils-all/x86-64/pr27708.exe.bz2: Likewise.
177 * testsuite/binutils-all/x86-64/x86-64.exp: Run binutils/27708
180 2021-04-14 Mark Harmstone <mark@harmstone.com>
183 * resbin.c (bin_to_res_version): Ignore any trailing bytes at the
184 end of the structure.
186 2021-04-14 Frederic Cambus <fred@statdns.com>
188 * readelf.c (get_netbsd_elfcore_note_type): Remove unneeded #ifdef
189 checks for NT_NETBSDCORE_AUXV and NT_NETBSDCORE_LWPSTATUS.
191 2021-04-14 Alan Modra <amodra@gmail.com>
194 * objdump.c (show_line): Don't limit paths to PATH_MAX.
195 * readelf.c (struct filedata): Change program_interpreter from
196 a char array to a char pointer.
197 (process_program_headers): Sanity check PT_INTERP p_filesz.
198 Malloc program_interpreter using p_filesz and read directly from
200 (process_dynamic_section): Check program_interpreter is non-NULL.
201 (free_filedata): New function, split out from..
202 (process_object): ..here.
203 (close_debug_file): Call free_filedata.
204 * sysdep.h: Don't include sys/param.h.
205 (PATH_MAX): Don't define.
206 * configure.ac: Don't check for sys/param.h.
207 * configure: Regenerate.
209 2021-04-13 Frederic Cambus <fred@statdns.com>
211 * readelf.c (process_netbsd_elf_note): Remove now unneeded #ifdef
212 check for NT_NETBSD_PAX.
214 2021-04-12 Alan Modra <amodra@gmail.com>
216 * configure.ac (--enable-checking): Add support.
217 * config.in: Regenerate.
218 * configure: Regenerate.
220 2021-04-09 Alan Modra <amodra@gmail.com>
222 * objdump.c (struct objdump_disasm_info): Delete dynrelbuf and
224 (find_symbol_for_address): Adjust for dynrelbuf and dynrelcount move.
225 (disassemble_section, disassemble_data): Likewise.
227 2021-04-06 Alan Modra <amodra@gmail.com>
229 * objdump.c (objdump_symbol_at_address): Return asymbol*.
231 2021-04-06 Alan Modra <amodra@gmail.com>
233 * NEWS: Mention C99 requirement.
234 * README: Likewise. Modernise examples and "Reporting bugs".
236 2021-04-05 Alan Modra <amodra@gmail.com>
238 * configure.ac: Assume long long is available. Don't test for
239 strings.h, stdlib.h, limits.h, locale.h, or wchar.h. Check
240 inttypes.h, stdint.h, sys/stat.h and sys/types.h. Don't check for
241 strcoll, setlocale, setmode or location of time_t. Don't check
242 for fprintf, getenv, snprintf, strnlen, strstr or vsnprintf decls.
243 (AC_ISC_POSIX, AXC_HEADER_STRING, AC_FUNC_ALLOCA): Don't invoke.
244 * sysdep.h: Don't include alloca-conf.h, include config.h instead.
245 Test HAVE_SYS_TYPES_H and reorder includes. Include limits.h,
246 locale.h, string.h and stdlib.h unconditionally. Remove various
247 fallback declarations. Assume long long is available.
248 * addr2line.c: Don't test HAVE_SETLOCALE.
250 * coffdump.c: Likewise.
251 * dlltool.c: Likewise.
252 * dllwrap.c: Likewise.
253 * elfedit.c: Likewise.
255 * objcopy.c: Likewise.
256 * objdump.c: Likewise.
257 * readelf.c: Likewise.
259 * srconv.c: Likewise.
260 * strings.c: Likewise.
261 * sysdump.c: Likewise.
262 * windmc.c: Likewise.
263 * windres.c: Likewise.
264 * bucomm.c: Don't test HAVE_TIME_T_IN_TIME_H or HAVE_TIME_T_IN_TYPES_H.
265 * dwarf.c: Include limits.h unconditionally. Assume long long
267 * nm.c: Don't test HAVE_STRCOLL.
268 * readelf.c: Don't test HAVE_WCHAR_H.
269 * strings.c: Assume long long is available.
270 * syslex.l: Include string.h unconditionally.
271 * aclocal.m4: Regenerate.
272 * config.in: Regenerate.
273 * configure: Regenerate.
274 * Makefile.in: Regenerate.
275 * doc/Makefile.in: Regenerate.
277 2021-04-01 Martin Liska <mliska@suse.cz>
279 * elfcomm.h (strneq): Remove strneq and use startswith.
280 * readelf.c (ia64_process_unwind): Likewise.
281 (process_note): Likewise.
283 2021-04-01 Martin Liska <mliska@suse.cz>
285 * dllwrap.c: Use startswith function.
286 * objcopy.c (is_dwo_section): Likewise.
287 (handle_remove_section_option): Likewise.
288 (copy_main): Likewise.
289 * objdump.c (is_significant_symbol_name): Likewise.
291 2021-04-01 Martin Liska <mliska@suse.cz>
293 * dwarf.c (display_debug_lines_raw): Replace const_strneq with
295 (display_debug_lines_decoded): Likewise.
296 (display_debug_links): Likewise.
297 * elfcomm.c (setup_archive): Likewise.
298 * elfcomm.h (const_strneq): Likewise.
299 * readelf.c (process_section_headers): Likewise.
300 (slurp_ia64_unwind_table): Likewise.
301 (slurp_hppa_unwind_table): Likewise.
302 (decode_arm_unwind): Likewise.
303 (display_debug_section): Likewise.
304 (process_note): Likewise.
306 2021-03-31 Alan Modra <amodra@gmail.com>
308 * sysdep.h (POISON_BFD_BOOLEAN): Define.
309 * addr2line.c, * ar.c, * arsup.c, * bfdtest2.c, * binemul.c,
310 * binemul.h, * bucomm.c, * bucomm.h, * budbg.h, * coffgrok.c,
311 * debug.c, * debug.h, * dlltool.c, * dwarf.c, * dwarf.h,
312 * elfedit.c, * emul_aix.c, * mclex.c, * nm.c, * objcopy.c,
313 * objdump.c, * od-macho.c, * prdbg.c, * rdcoff.c, * rddbg.c,
314 * readelf.c, * rename.c, * stabs.c, * strings.c, * windint.h,
315 * windmc.c, * windmc.h, * windres.c, * winduni.c,
316 * wrstabs.c: Replace bfd_boolean with bool, FALSE with false,
317 and TRUE with true throughout.
319 2021-03-31 Alan Modra <amodra@gmail.com>
321 * coffdump.c: Include stdint.h in place of bfd_stdint.h.
324 2021-03-31 Alan Modra <amodra@gmail.com>
326 * prdbg.c (pr_function_type): Replace LITSTTCPY with strcpy.
328 2021-03-29 Alan Modra <amodra@gmail.com>
330 * dlltool.c (main): Don't use "boolean_condition ? TRUE : FALSE".
331 * dwarf.c (read_and_display_attr_value): Likewise.
332 (display_debug_str_offsets): Likewise.
333 * objdump.c (dump_bfd): Likewise.
334 * readelf.c (dump_section_as_strings): Likewise.
335 (dump_section_as_bytes): Likewise.
337 2021-03-29 Alan Modra <amodra@gmail.com>
339 * objdump.c (process_links): Use type int.
340 * readelf.c (request_dump): Don't increment do_dump, set it.
341 * windint.h (target_is_bigendian): Use type bfd_boolean.
342 * windmc.c (target_is_bigendian): Likewise.
343 * windres.c (target_is_bigendian): Likewise.
345 2021-03-22 Martin Liska <mliska@suse.cz>
347 * dlltool.c (scan_drectve_symbols): Replace usage of CONST_STRNEQ
349 * emul_aix.c (ar_emul_aix_parse_arg): Likewise.
350 * objcopy.c (is_mergeable_note_section): Likewise.
351 * objdump.c (dump_dwarf_section): Likewise.
352 * prdbg.c (pr_method_type): Likewise.
353 (pr_class_baseclass): Likewise.
354 (tg_class_baseclass): Likewise.
355 * readelf.c (process_lto_symbol_tables): Likewise.
356 * stabs.c (ULLHIGH): Likewise.
357 (parse_stab_argtypes): Likewise.
358 (stab_demangle_function_name): Likewise.
360 2021-03-19 H.J. Lu <hongjiu.lu@intel.com>
362 * readelf.c (get_machine_name): Add EM_INTELGT.
364 2021-03-18 Nick Clifton <nickc@redhat.com>
367 * readelf.c (dump_section_as_strings): Mention separate filename.
368 (dump_section_as_bytes): Likewise.
369 (dump_section_as_ctf): Likewise.
370 (initialise_dumkps_byname): Only issue a warning for missing
371 sections if processing the main file.
372 (process_section_contents): Only issue a warning for unsumped
373 section numbers in the main file.
374 (initialise_dump_sects): New function. Contains code extracted
376 (process_object): ... here. Also call initialise_dump_sects for
379 2021-03-16 Nick Clifton <nickc@redhat.com>
382 * readelf.c (display_debug_section): Also retain .debug_addr
385 2021-03-16 Nick Clifton <nickc@redhat.com>
388 * readelf.c (process_section_contents): Only dump debug
389 information for separate files unless process_links is enabled.
390 (process_object): Always call process_section_contents for
393 2021-03-15 Nick Clifton <nickc@redhat.com>
396 * nm.c (FORMAT_JUST_SYMBOLS): Define.
397 (struct optput_fns): Add entry for FORMAT_JUST_SYMBOLS.
398 (long_options): Add just-symbols.
399 (set_output_format): Add support for just-symbols.
400 (get_print_format): Likewise.
401 (do_not_print_object_filename): New function.
402 (do_not_print_archive_filename): New function.
403 (do_not_print_archive_member): New function.
404 (do_not_print_symbol_filename): New function.
405 (just_print_symbol_name): New function.
406 (main): Handle --just-symbols.
407 * NEWS: Mention the new feature.
408 * doc/binutils.texi: Document the new feature.
410 2021-03-12 Clément Chigot <clement.chigot@atos.net>
412 * od-xcoff.c: Replace RTB by TRL entry.
414 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
415 Andrew Burgess <andrew.burgess@embecosm.com>
417 * readelf.c (get_note_type): Handle NT_RISCV_CSR.
419 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
420 Andrew Burgess <andrew.burgess@embecosm.com>
422 * readelf.c (get_note_type): Handle NT_GDB_TDESC.
424 2021-03-05 Nick Clifton <nickc@redhat.com>
427 * dwarf.c (display_debug_macro): Handle the displaying of
428 DW_MACRO_define_strp and DW_MACRO_undef_strp in v4
429 .debug_macro.dwo sections.
431 2021-03-04 Nick Clifton <nickc@redhat.com>
434 * objdump.c (process_links): New variable.
435 (usage): Add --process-links.
436 (long_options): Likewise.
437 (dump_bfd): Stop processing once the bfd has been loaded unless
438 this is the main file or process_links has been enabled.
439 (main): Handle the process-links option.
440 * readelf.c (process_links): New variable.
441 (struct filedata): Add is_separate field.
442 (options): Add --process-links.
444 (parse_args): Likewise.
445 (process_file_header): Include the filename when dumping
446 information for separate debuginfo files.
447 (process_program_headers): Likewise.
448 (process_section_headers): Likewise.
449 (process_section_groups): Likewise.
450 (process_relocs): Likewise.
451 (process_dynamic_section): Likewise.
452 (process_version_sections): Likewise.
453 (display_lto_symtab): Likewise.
454 (process_symbol_table): Likewise.
455 (process_syminfo): Likewise.
456 (initialise_dumps_by_name): Likewise.
457 (process_section_contents): Likewise.
458 (process_notes_at): Likewise.
459 (process_notes): Likewise.
460 (open_file): Add is_separate parameter. Use to initialise the
461 is_separate field in the filedata structure.
462 (open_deug): Update call to open_file.
463 (process_object): Add processing of the contents of separate
464 debuginfo files, gated by the process_links variable.
465 (process_archive): Update call to open_file.
466 (process_file): Initialise the is_separate field in the filedata
468 * dwarf.c (load_separate_debug_info_file): Only report the
469 loading of a separate file if debug links are being dumped.
470 * objcopy.c (keep_section_symbols): New variable.
471 (enum command_line_switch): Add OPTION_KEEP_SYMBOLS.
472 (strip_options): Add keep-section-symbols.
473 (copy_options): Likewise.
474 (copy_usage): Likewise.
475 (strip_usage): Likewise.
476 (copy_object): Keep section symbols if requested by command line
478 (strip_main): Handle --keep-section-symbols.
479 (copy_main): Likewise.
480 * doc/binutils.texi: Document the new options.
481 * NEWS: Mention the new features.
482 * testsuite/binutils-all/compress.exp (test_gnu_debuglink):
483 Update options passed to objdump. Use diff rather than cmp to
484 compare the dumped data.
485 * testsuite/binutils-all/objdump.WK2: Update regexp.
486 * testsuite/binutils-all/objdump.WK3: Update regexp.
487 * testsuite/binutils-all/objdump.exp: Use --process-links
488 instead of --dwarf=follow-links.
489 * testsuite/binutils-all/readelf.exp (readelf_test): Include
490 readelf's output in the log when the test fails.
491 Add the -P option to the -wKis test.
492 * testsuite/binutils-all/readelf.wKis: Update expected output.
494 2021-03-03 Alan Modra <amodra@gmail.com>
497 * objcopy.c (filter_symbols): Apply --weaken to undefined symbols.
498 * NEWS: Mention feature.
500 2021-03-01 H.J. Lu <hongjiu.lu@intel.com>
503 * dwarf.c (load_separate_debug_info): Issue warning only if
504 do_debug_links is set.
505 * testsuite/binutils-all/compress.exp: Run objdump and readelf
506 with missing debug file.
508 2021-03-01 Alan Modra <amodra@gmail.com>
511 * doc/binutils.texi: Add nm --with-symbol-versions and
512 --without-symbol-versions documentation.
513 * nm.c (with_symbol_versions): New variable.
514 (enum long_option_values): Delete OPTION_WITH_SYMBOL_VERSIONS.
515 (long_options): Make --with-symbol-versions entry twiddle the flag.
516 Add --without-symbol-versions.
517 (print_symname): Strip version when !with_symbol_versions. Add
518 dynamic version info under control of with_symbol_versions.
519 (main): Remove OPTION_WITH_SYMBOL_VERSIONS case.
521 2021-02-26 Fangrui Song <maskray@google.com>
524 * readelf.c (quiet): New option flag.
525 (enum long_option_values): New enum to hold long option value.
526 (long_options): Add --quiet.
527 (usage): Mention --quiet.
528 (display_rel_file): If quiet is enabled, suppress "no symbols".
529 (main): Handle the new option.
530 * NEWS: Mention --quiet.
531 * docs/binutils.texi: Document --quiet.
533 2021-02-26 Tom de Vries <tdevries@suse.de>
535 * dwarf.c (display_debug_addr): Handle dwarf-5 .debug_addr bits.
537 2021-02-26 Tom de Vries <tdevries@suse.de>
540 * dwarf.c: (skip_attr_bytes): Add support for DW_FORM_str* and
542 (read_and_display_attr_value): Likewise.
544 2021-02-25 Nick Clifton <nickc@redhat.com>
546 * dwarf.c (get_type_abbrev_from_form): Accept but ignore sup
548 (read_and_display_attr_value): Handle sup forms.
549 (display_debug_sup): New function. Displays the contents of a
551 (load_debug_sup_file): New function. Loads the contents of a file
552 referenced by a .debug_sup section.
553 (check_for_and_load_links): Call load_debug_sup_file.
554 (debug_displays): Add entry for .debug_sup.
555 * dwarf.h (enum dwarf_section_display_enum): Add debug_sup.
556 * readelf.c (process_section_headers): Add support for debug_sup.
557 * doc/debug.options.texi: Note that the =links option will display
558 the contents of .debug_sup sections.
559 * NEWS: Mention the new support.
561 2021-02-25 Alan Modra <amodra@gmail.com>
564 * rename.c (simple_copy): Mark target_stat ATTRIBUTE_UNUSED.
566 2021-02-24 Nick Clifton <nickc@redhat.com>
569 * od-elf32_avr.c (elf32_avr_get_memory_usage): Check for overflows
570 when adding together the section sizes.
572 2021-02-24 Nick Clifton <nickc@redhat.com>
574 * objcopy.c (merge_gnu_build_notes): Remove support for v1/v2 GNU
576 * readelf.c (print_gnu_build_attribute_description): Likewise.
578 2021-02-24 Alan Modra <amodra@gmail.com>
579 Siddhesh Poyarekar <siddhesh@gotplt.org>
582 * bucomm.h (smart_rename): Update prototype.
583 * rename.c (smart_rename): Add fromfd and preserve_dates params.
584 Pass fromfd and target_stat to simple_copy. Call set_times
586 (simple_copy): Accept fromfd rather than from filename. Add
587 target_stat param. Rewind fromfd rather than opening. Open
588 "to" file without O_CREAT. Try to preserve S_ISUID and S_ISGID.
589 * ar.c (write_archive): Rename ofd to tmpfd. Dup tmpfd before
590 closing output temp file, and pass tmpfd to smart_rename.
591 * arsup.c (temp_fd): Rename from real_fd.
592 (ar_save): Dup temp_fd and pass to smart_rename.
593 * objcopy.c (strip_main, copy_main): Likewise, and pass
596 2021-02-24 Alan Modra <amodra@gmail.com>
599 * rename.c: Tidy throughout.
600 (smart_rename): Always copy. Remove windows specific code.
602 2021-02-20 Alan Modra <amodra@gmail.com>
604 * testsuite/lib/binutils-common.exp: Whitespace fixes throughout.
605 (run_dump_test): Fail if expecting errors from a file like we do
606 for error strings, if no error is seen.
608 2021-02-19 Alan Modra <amodra@gmail.com>
610 * testsuite/binutils-all/readelf.exp (pr26548): Run for 32-bit too.
612 2021-02-19 Siddhesh Poyarekar <siddhesh@gotplt.org>
614 * ar.c (write_archive): Remove TARGET_STAT. Adjust call to
616 * arsup.c (ar_save): Likewise.
617 * objcopy (strip_main): Don't copy TMPFD. Don't set times on
618 temporary file and adjust call to SMART_RENAME.
619 (copy_main): Likewise.
620 * rename.c [!S_ISLNK]: Remove definitions.
621 (try_preserve_permissions): Remove function.
622 (smart_rename): Remove FD, PRESERVE_DATES arguments. Use
623 rename system call only if TO does not exist.
624 * bucomm.h (smart_rename): Adjust declaration.
626 2021-02-18 Nick Clifton <nickc@redhat.com>
628 * objcopy.c (merge_gnu_build_notes): Handle notes with a start
629 address that is higher than the end address.
631 2021-02-17 Alan Modra <amodra@gmail.com>
633 * dwarf.c: Include limits.h.
634 (CHAR_BIT): Provide backup define.
635 (read_leb128): Use CHAR_BIT to size "result" in bits. Correct
636 signed overflow checking.
637 * testsuite/binutils-all/pr26548.s,
638 * testsuite/binutils-all/pr26548.d,
639 * testsuite/binutils-all/pr26548e.d: New tests.
640 * testsuite/binutils-all/readelf.exp: Run them.
641 (readelf_test): Drop unused "xfails" parameter. Update all uses.
643 2021-02-16 Jan Beulich <jbeulich@suse.com>
645 * dwarf.c (process_debug_info): Initialize "dwo_id".
647 2021-02-15 Alan Modra <amodra@gmail.com>
649 * objdump.c (load_specific_debug_section): Don't call
650 bfd_cache_section_contents. Rearrange so that
651 bfd_get_full_section_contents is not called on path where
652 bfd_simple_get_relocated_section_contents is called.
653 Don't set section->user_data.
654 (free_debug_section): Always free section->start. Don't twiddle
656 * readelf.c (load_specific_debug_section): Don't set user_data.
657 * dwarf.h (struct dwarf_section): Remove use_data field.
658 * dwarf.c (NO_ABBREVS, ABBREV): Adjust to suit.
660 2021-02-15 Alan Modra <amodra@gmail.com>
662 * testsuite/binutils-all/compress.exp: Remove nds32 xfails.
663 * testsuite/binutils-all/objdump.exp: Likewise.
665 2021-02-14 Alan Modra <amodra@gmail.com>
667 * objdump.c (slurp_symtab): Don't add an extra entry for NULL
669 (slurp_dynamic_symtab): Likewise.
670 (dump_bfd): Formatting. Copy terminating NULL from extra_syms.
672 2021-02-14 Alan Modra <amodra@gmail.com>
674 * Makefile.in: Regenerate.
675 * doc/Makefile.in: Regenerate.
677 2021-02-13 Mike Frysinger <vapier@gentoo.org>
679 * aclocal.m4: Regenerate.
681 2021-02-12 Nick Clifton <nickc@redhat.com>
683 * configure.ac (follow-debug-links): Add option to enable or
684 disable the following of debug links by default. Set the
685 default for the option to be 'follow'.
686 * dwarf.c (do_follow_links): Initialise with DEFAULT_FOR_FOLLOW_LINKS.
687 (dwarf_select_sections_by_names): Add no-follow-links option.
688 (dwarf_select_sections_by_letter): Add 'N' option.
689 * objdump.c (usage): Add conditional text describing the
691 (slurp_symtab): Ensure that there is a NULL entry at the end
693 (slurp_dynamic_symtab): Likewise.
694 (dump_bfd): When extending the symbol table, ensure that there
695 is still a NULL entry at the end.
696 * readelf.c (usage): Add conditional text describing the
698 * doc/binutils.texi: Update documentation for objcopy and
700 * doc/debug.options.texi: Update documentation of the
702 * config.in: Regenerate.
703 * configure: Regenerate.
704 * testsuite/binutils-all/compress.exp: Add the -WN option to
705 objdump command lines that are not expecting to follow links.
706 * testsuite/binutils-all/readelf.exp: Add the
707 --debug-dump=no-follow-links option to tests that are not
708 expecting to follow debug links.
709 * NEWS: Mention the new behaviour.
711 2021-02-12 Alan Modra <amodra@gmail.com>
713 * testsuite/binutils-all/objcopy.exp: Report "unsupported" when
714 gas or ld fails to build a testcase rather than "unresolved".
715 Report "fail" when readelf returns an error status rather than
717 * testsuite/binutils-all/ar.exp: Likewise.
718 * testsuite/binutils-all/compress.exp: Likewise.
719 * testsuite/binutils-all/readelf.exp: Likewise.
721 2021-02-12 Alan Modra <amodra@gmail.com>
723 * testsuite/binutils-all/pr25662.s: Replace "a" with "aaa" and
724 "c" with "ccc" labels.
726 2021-02-12 Tom de Vries <tdevries@suse.de>
728 * dwarf.h (debug_info): Fix typo in comment.
730 2021-02-12 Tom de Vries <tdevries@suse.de>
732 * dwarf.c (display_debug_str_offsets): Handle multiple sets of
735 2021-02-12 Tom de Vries <tdevries@suse.de>
737 * dwarf.c (process_debug_info): Print DWO ID.
739 2021-02-11 Alan Modra <amodra@gmail.com>
744 * od-elf32_avr.c (elf32_avr_get_note_section_contents): Formatting.
745 Use bfd_malloc_and_get_section.
746 (elf32_avr_get_note_desc): Formatting. Return descsz. Sanity
747 check namesz. Return NULL if descsz is too small. Ensure
748 string table is terminated.
749 (elf32_avr_get_device_info): Formatting. Add note_size param.
751 (elf32_avr_dump_mem_usage): Adjust to suit.
753 2021-02-10 Tom de Vries <tdevries@suse.de>
756 * dwarf.c (load_dwo_file): Handle case that name is absolute path.
758 2021-02-10 Tom de Vries <tdevries@suse.de>
761 * dwarf.c (display_debug_ranges): Filter range lists according to
764 2021-02-09 Tom de Vries <tdevries@suse.de>
767 * dwarf.c (get_type_abbrev_from_form): Handle DW_FORM_ref_sig8.
769 2021-02-09 Tom de Vries <tdevries@suse.de>
772 * dwarf.c (process_debug_info): Handling DW_UT_skeleton and
775 2021-02-09 Alan Modra <amodra@gmail.com>
777 * testsuite/lib/binutils-common.exp (supports_gnu_osabi): Remove
780 2021-02-07 Alan Modra <amodra@gmail.com>
782 * unwind-ia64.c (unw_print_xyreg): Don't leave output buffer
783 uninitialised on invalid input.
785 2021-02-06 Alan Modra <amodra@gmail.com>
788 * rename.c (smart_rename): Test for existence and type of output
791 2021-02-05 Nick Clifton <nickc@redhat.com>
793 * MAINTAINERS: Remove Richard Henderson as the ALPHA maintainer.
795 2021-02-05 Eli Zaretskii <eliz@gnu.org>
798 * elfedit.c (check_file):
799 * bucomm.c (get_file_size): Fix typos in comments.
801 2021-02-05 Alan Modra <amodra@gmail.com>
804 * arsup.c (ar_save): Use stat rather than lstat.
806 2021-02-03 Alan Modra <amodra@gmail.com>
811 * ar.c: Don't include libbfd.h.
812 (write_archive): Replace xmalloc+strcpy with xstrdup. Use
813 bfd_stat rather than fstat on iostream. Move stat and fd tests
814 outside of _WIN32 ifdef. Delete skip_stat variable.
815 * arsup.c (temp_name, real_ofd): New static variables.
816 (ar_open): Use make_tempname and bfd_fdopenw.
817 (ar_save): Adjust to suit ar_open changes. Move stat output
819 * objcopy.c: Don't include libbfd.h.
820 (copy_file): Use bfd_stat.
822 2021-02-02 H.J. Lu <hongjiu.lu@intel.com>
825 * readelf.c (process_section_headers): Add 'R' and 'D' to
827 * testsuite/binutils-all/retain1a.d: Updated.
829 2021-01-30 Nick Clifton <nickc@redhat.com>
831 * README-how-to-make-a-release: Small updates after the 2.35.2
834 2021-01-28 Eli Zaretskii <eliz@gnu.org>
837 * windres.c (quot): Use double quotes to protect strings on
840 2021-01-28 Eli Zaretskii <eliz@gnu.org>
843 * bucomm.c (get_file_size): Add code to handle /dev/null on
845 * elfedit.c (check_file): Likewise.
847 2021-01-27 Nick Clifton <nickc@redhat.com>
849 * objcopy.c (copy_main): Remove conditional control of the calls
850 to free, simplifying the code and making it easier to detect
853 2021-01-26 Frederic Cambus <fred@statdns.com>
855 * objcopy.c (copy_main): Fix a double free happening when both
856 --localize-symbols and --globalize-symbols options are invoked
859 2021-01-24 Nick Clifton <nickc@redhat.com>
861 * README-how-to-make-a-release: Minor updates after the 2.36 release.
863 2021-01-16 Alan Modra <amodra@gmail.com>
865 * readelf.c (uncompress_section_contents): Tidy inflateEnd result test.
867 2021-01-15 Alan Modra <amodra@gmail.com>
870 * readelf.c (uncompress_section_contents): Always call inflateEnd.
872 2021-01-14 Alexandre Oliva <oliva@gnu.org>
874 * MAINTAINERS: Update my email address.
876 2021-01-14 Nick Clifton <nickc@redhat.com>
878 * po/sv.po: Updated Swedish translation.
880 2021-01-13 Alan Modra <amodra@gmail.com>
882 * Makefile.in: Regenerate.
883 * doc/Makefile.in: Regenerate.
885 2021-01-13 Zebediah Figura <z.figura12@gmail.com>
888 * dlltool.c (i386_trampoline): Adjust %rsp immediately on entry
890 (i386_x64_trampoline): Add SEH annotations.
891 (struct mac): Add how_seh field.
892 (make_delay_head): If how_set field is true add SEh instructions.
894 2021-01-12 H.J. Lu <hongjiu.lu@intel.com>
897 * configure.ac: Use GNU_MAKE_JOBSERVER.
898 * aclocal.m4: Regenerated.
899 * configure: Likewise.
901 2021-01-12 Nick Clifton <nickc@redhat.com>
903 * po/fr.po: Updated French translation.
905 2021-01-11 H.J. Lu <hongjiu.lu@intel.com>
908 * configure: Regenerated.
910 2021-01-11 Nick Clifton <nickc@redhat.com>
912 * po/pt.po: Updated Portuguese translation.
913 * po/sr.po: Updated Serbian translation.
914 * po/uk.po: Updated Ukranian translation.
916 2021-01-09 H.J. Lu <hongjiu.lu@intel.com>
918 * configure: Regenerated.
920 2021-01-09 Nick Clifton <nickc@redhat.com>
922 * configure: Regenerate.
923 * po/binutils.pot: Regenerate.
925 2021-01-09 Nick Clifton <nickc@redhat.com>
927 * 2.36 release branch crated.
928 * README-how-to-make-a-release: Add note about updating Makefiles
930 * BRANCHES: Add binutils-2.36-branch.
932 2021-01-09 Alan Modra <amodra@gmail.com>
934 * configure: Regenerate.
936 2021-01-07 Samuel Thibault <samuel.thibault@gnu.org>
938 * configure: Regenerate.
940 2021-01-07 H.J. Lu <hongjiu.lu@intel.com>
943 * objcopy.c (copy_object): Handle section symbols for
944 non-relocatable inputs.
945 * testsuite/binutils-all/readelf.exp (readelf_test): Check
946 is_elf_unused_section_symbols.
947 * testsuite/binutils-all/readelf.s-64: Updated.
948 * testsuite/binutils-all/readelf.ss: Likewise.
949 * testsuite/binutils-all/readelf.ss-64: Likewise.
950 * testsuite/binutils-all/readelf.s-64-unused: New file.
951 * testsuite/binutils-all/readelf.ss-64-unused: Likewise.
952 * testsuite/binutils-all/readelf.ss-unused: Likewise.
953 * testsuite/lib/binutils-common.exp
954 (is_elf_unused_section_symbols): New proc.
956 2021-01-06 Reuben Thomas <rrt@sc3d.org>
958 * binutils/readelf.c: Correct grammar in comment.
960 2021-01-01 Nicolas Boulenguez <nicolas@debian.org>
962 * coffgrok.c (do_type): Correct spelling of auxiliary in errors.
963 * doc/binutils.texi: Correct grammar.
964 * readelf.c (process_version_sections): Correct spelling of auxiliary
966 * testsuite/binutils-all/vax/objdump.exp: Comment grammar fix.
968 2021-01-01 Alan Modra <amodra@gmail.com>
970 Update year range in copyright notice of all files.
972 For older changes see ChangeLog-2020
974 Copyright (C) 2021 Free Software Foundation, Inc.
976 Copying and distribution of this file, with or without modification,
977 are permitted in any medium without royalty provided the copyright
978 notice and this notice are preserved.
984 version-control: never