1 2021-05-13 Alan Modra <amodra@gmail.com>
4 * dwarf.c (display_debug_frames): Sanity check cie_off before
5 attempting to read cie.
7 2021-05-12 Alan Modra <amodra@gmail.com>
9 * dwarf.c (process_extended_line_op): Don't bump data pointer past
10 end when strnlen doesn't find string terminator.
11 (decode_location_expression): Remove dead code.
12 (skip_attr_bytes): Remove const from end param. Ensure data
13 pointer doesn't pass end.
14 (get_type_signedness): Remove const from end param.
15 (read_and_display_attr_value): Ensure data pointer doesn't pass end.
16 (display_debug_lines_raw, display_debug_lines_decoded): Likewise.
17 (display_debug_pubnames_worker): Likewise.
18 (display_debug_pubnames_worker): Use SAFE_BYTE_GET_AND INC rather
19 than blindly incrementing data pointer.
20 (display_debug_addr, display_debug_str_offsets): Likewise. Don't
21 compare pointers, compare lengths.
23 2021-05-12 Alan Modra <amodra@gmail.com>
25 * dwarf.c (SAFE_BYTE_GET_INTERNAL): Define.
26 (SAFE_BYTE_GET, SAFE_BYTE_GET_AND_INC): Define using the above.
27 (SAFE_SIGNED_BYTE_GET, SAFE_SIGNED_BYTE_GET_AND_INC): Likewise.
28 (display_discr_list): Use SAFE_BYTE_GET_AND_INC rather than
29 SAFE_BYTE_GET followed by increment.
30 (process_debug_info): Likewise, and test bytes remaining before
31 incrementing section_begin rather than using pointer comparison.
32 (display_debug_names): Pass lvalue as SAFE_BYTE_GET PTR.
33 (process_cu_tu_index): Likewise for SAFE_BYTE_GET_AND_INC.
35 2021-05-12 Alan Modra <amodra@gmail.com>
37 * dwarf.c (dwarf_vmatoa64, SAFE_BYTE_GET64, add64): Delete.
38 (skip_attr_bytes): Replace use of SAFE_BYTE_GET64 with
39 SAFE_BYTE_GET_AND_INC.
40 (read_and_display_attr_value): Likewise. Print using dwarf_vmatoa.
41 (process_debug_info, process_cu_tu_index): Likewise.
42 * elfcomm.c (byte_put, byte_put_little_endian, byte_put_big_endian),
43 (byte_get, byte_get_little_endian, byte_get_big_endian),
44 (byte_get_signed): Make size param unsigned. Remove code dealing
46 (byte_get_64): Delete.
47 * elfcomm.h (byte_put, byte_put_little_endian, byte_put_big_endian),
48 (byte_get, byte_get_little_endian, byte_get_big_endian),
49 (byte_get_signed): Update prototypes.
50 (byte_get_64): Delete.
52 2021-05-12 Alan Modra <amodra@gmail.com>
55 * dwarf.c (display_debug_frames): Don't compare pointers derived
56 from user input. Test offset against bounds instead.
58 2021-05-12 Alan Modra <amodra@gmail.com>
61 * dwarf.c (display_formatted_table): Test for data >= end rather
63 (process_extended_line_op): Likewise.
64 (display_debug_lines_raw): Likewise.
65 (display_debug_lines_decoded): Likewise.
67 2021-05-12 Alan Modra <amodra@gmail.com>
70 * dwarf.c (fetch_indexed_string): Correct length sanity checks.
71 Sanity check section size for version and padding too. Correct
72 index sanity check. Handle multiple tables in .debug_str_offsets.
74 2021-05-11 Hans-Peter Nilsson <hp@axis.com>
76 * dwarf.c (process_abbrev_set): Properly parenthesize before
77 casting to unsigned long.
79 2021-05-11 Alan Modra <amodra@gmail.com>
82 * dwarf.c (process_abbrev_set): Replace start and end parameters
83 with section, abbrev_base, abbrev_size, abbrev_offset. Update
84 all callers. Sanity check parameters correctly and emit warnings
86 (process_debug_info): ..here.
88 2021-05-10 Thomas Wolff <towo@towo.net>
93 * windres.c (quot): Revert previous delta. Do not use double
94 quotes when spaces are detected in options.
95 * doc/binutils.texi (windres): Remove suggestion that the
96 --preprocessor option can take arguments.
98 2021-05-10 Alan Modra <amodra@gmail.com>
100 * dwarf.c (SAFE_BYTE_GET): Check bounds by subtracting amount from
101 END rather than adding amount to PTR.
102 (SAFE_SIGNED_BYTE_GET, SAFE_BYTE_GET64): Likewise.
104 2021-05-09 Alan Modra <amodra@gmail.com>
106 * objcopy.c (eq_string): Delete.
107 (create_symbol_htab): Use htab_eq_string.
109 2021-05-08 Mike Frysinger <vapier@gentoo.org>
111 * README-how-to-make-a-release: Update html & pdf entries.
113 2021-05-08 Mike Frysinger <vapier@gentoo.org>
115 * doc/Makefile.am (html-local, binutils/index.html): New targets.
116 * doc/Makefile.in: Regenerate.
118 2021-05-08 Mike Frysinger <vapier@gentoo.org>
120 * doc/Makefile.am (AM_MAKEINFOFLAGS): Add --no-split.
121 * doc/Makefile.in: Regenerate.
123 2021-05-07 Nick Clifton <nickc@redhat.com>
125 * readelf.c (no_processor_specific_unwind): New function.
126 (process_unwind): Use no_processor_specific_unwind for X86
129 2021-05-07 Michael Forney <mforney@mforney.org>
131 * dwarf.c: Don't omit second operand of '?' operator.
133 2021-04-30 Nick Clifton <nickc@redhat.com>
136 * dwarf.c (load_debug_sup_file): Allocate memory for filename in
139 2021-04-29 Nick Clifton <nickc@redhat.com>
142 * doc/binutils.texi (windres): Correct the description of the
143 default value of the --preprocessor argument.
145 2021-04-27 Nick Clifton <nickc@redhat.com>
148 * dwarf.c (parse_gnu_debuglink): Reject empty names.
149 (parse_gnu_debugaltlink): Likewise.
151 2021-04-22 Clément Chigot <clement.chigot@atos.net>
153 * od-xcoff.c (dump_xcoff32_symbols): Adapt to new
156 2021-04-21 Nick Lott <nick.lott@gmail.com>
159 * readelf.c (sym_base): New variable.
160 (enum print_mode): Add more modes.
161 (print_vma): Add suport for new modes.
162 (options): Add sym-base.
163 (usage): Add sym-base.
164 (parse_args): Add support for --sym-base.
165 (print_dynamic_symbol_size): New function.
166 (print_dynamic_symbol): Use new function.
167 * doc/binutils.texi: Document the new feature.
168 * NEWS: Mention the new feature.
170 2021-04-21 Nick Clifton <nickc@redhat.com>
172 * testsuite/binutils-all/mips/global-local-symtab-sort-n64t.d:
173 Adjust expected output to allow for named section symbols.
174 * testsuite/binutils-all/mips/global-local-symtab-sort-o32t.d:
176 * testsuite/binutils-all/readelf.s-64: Likewise.
177 * testsuite/binutils-all/readelf.ss-64-unused: Likewise.
178 * testsuite/binutils-all/readelf.ss-tmips: Likewise.
179 * testsuite/binutils-all/readelf.ss-unused: Likewise.
181 2021-04-21 Luo Longjun <luolongjun@huawei.com>
183 * readelf.c (print_dynamic_symbol): Print the section name for
184 section symbols without a name of their own.
186 2021-04-20 Andreas Krebbel <krebbel@linux.ibm.com>
188 * MAINTAINERS: Remove Martin Schwidefsky as s390 maintainer and
189 add him to Past Maintainers.
190 Update my email address.
192 2021-04-19 Nick Clifton <nickc@redhat.com>
195 * arsup.c (ar_addmod): Enable plugin support, if available.
197 2021-04-19 Nick Clifton <nickc@redhat.com>
199 * rename.c: (get_stat_atime_ns): Add prototype.
200 (get_stat_mtime_ns): Add prototype.
202 2021-04-16 Alan Modra <amodra@gmail.com>
205 * rename.c (get_stat_atime, get_stat_mtime): Make static.
206 (get_stat_atime_ns, get_stat_mtime_ns): Likewise.
208 2021-04-15 Pekka Seppänen <pexu@sourceware.mail.kapsi.fi>
211 * rename.c (get_stat_atime_ns): Add ATTRIBUTE_UNUSED.
212 (get_stat_mtime_ns): Likewise.
214 2021-04-15 Alan Modra <amodra@gmail.com>
217 * configure.ac: Check for sys/time.h and utimensat. Use standard
218 checks for mkstemp and mkdtemp. Whitespace. Check for nanosecond
219 members of struct stat.
220 * rename.c: Prefer sys/time.h for utimes over utime.h for utime.
221 (STAT_TIMESPEC, STAT_TIMESPEC_NS): Define
222 (get_stat_atime_ns, get_stat_mtime_ns): New inline functions.
223 (get_stat_atime, get_stat_mtime): Likewise.
224 (set_times): Choose first available of utimensat, utimes, utime.
225 Use above inline functions to set timespec and timeval values.
226 * configure: Regenerate.
227 * config.in: Regenerate.
228 * testsuite/binutils-all/objcopy.exp (objcopy_test): Add test of
229 file timestamp when --preserve-dates is used.
231 2021-04-15 Alan Modra <amodra@gmail.com>
234 * rename.c (smart_rename): When TO and FROM are equal, just set
236 * objcopy.c (strip_main, copy_main): Always call smart_rename.
238 2021-04-14 H.J. Lu <hongjiu.lu@intel.com>
241 * testsuite/binutils-all/x86-64/pr27708.dump: New file.
242 * testsuite/binutils-all/x86-64/pr27708.exe.bz2: Likewise.
243 * testsuite/binutils-all/x86-64/x86-64.exp: Run binutils/27708
246 2021-04-14 Mark Harmstone <mark@harmstone.com>
249 * resbin.c (bin_to_res_version): Ignore any trailing bytes at the
250 end of the structure.
252 2021-04-14 Frederic Cambus <fred@statdns.com>
254 * readelf.c (get_netbsd_elfcore_note_type): Remove unneeded #ifdef
255 checks for NT_NETBSDCORE_AUXV and NT_NETBSDCORE_LWPSTATUS.
257 2021-04-14 Alan Modra <amodra@gmail.com>
260 * objdump.c (show_line): Don't limit paths to PATH_MAX.
261 * readelf.c (struct filedata): Change program_interpreter from
262 a char array to a char pointer.
263 (process_program_headers): Sanity check PT_INTERP p_filesz.
264 Malloc program_interpreter using p_filesz and read directly from
266 (process_dynamic_section): Check program_interpreter is non-NULL.
267 (free_filedata): New function, split out from..
268 (process_object): ..here.
269 (close_debug_file): Call free_filedata.
270 * sysdep.h: Don't include sys/param.h.
271 (PATH_MAX): Don't define.
272 * configure.ac: Don't check for sys/param.h.
273 * configure: Regenerate.
275 2021-04-13 Frederic Cambus <fred@statdns.com>
277 * readelf.c (process_netbsd_elf_note): Remove now unneeded #ifdef
278 check for NT_NETBSD_PAX.
280 2021-04-12 Alan Modra <amodra@gmail.com>
282 * configure.ac (--enable-checking): Add support.
283 * config.in: Regenerate.
284 * configure: Regenerate.
286 2021-04-09 Alan Modra <amodra@gmail.com>
288 * objdump.c (struct objdump_disasm_info): Delete dynrelbuf and
290 (find_symbol_for_address): Adjust for dynrelbuf and dynrelcount move.
291 (disassemble_section, disassemble_data): Likewise.
293 2021-04-06 Alan Modra <amodra@gmail.com>
295 * objdump.c (objdump_symbol_at_address): Return asymbol*.
297 2021-04-06 Alan Modra <amodra@gmail.com>
299 * NEWS: Mention C99 requirement.
300 * README: Likewise. Modernise examples and "Reporting bugs".
302 2021-04-05 Alan Modra <amodra@gmail.com>
304 * configure.ac: Assume long long is available. Don't test for
305 strings.h, stdlib.h, limits.h, locale.h, or wchar.h. Check
306 inttypes.h, stdint.h, sys/stat.h and sys/types.h. Don't check for
307 strcoll, setlocale, setmode or location of time_t. Don't check
308 for fprintf, getenv, snprintf, strnlen, strstr or vsnprintf decls.
309 (AC_ISC_POSIX, AXC_HEADER_STRING, AC_FUNC_ALLOCA): Don't invoke.
310 * sysdep.h: Don't include alloca-conf.h, include config.h instead.
311 Test HAVE_SYS_TYPES_H and reorder includes. Include limits.h,
312 locale.h, string.h and stdlib.h unconditionally. Remove various
313 fallback declarations. Assume long long is available.
314 * addr2line.c: Don't test HAVE_SETLOCALE.
316 * coffdump.c: Likewise.
317 * dlltool.c: Likewise.
318 * dllwrap.c: Likewise.
319 * elfedit.c: Likewise.
321 * objcopy.c: Likewise.
322 * objdump.c: Likewise.
323 * readelf.c: Likewise.
325 * srconv.c: Likewise.
326 * strings.c: Likewise.
327 * sysdump.c: Likewise.
328 * windmc.c: Likewise.
329 * windres.c: Likewise.
330 * bucomm.c: Don't test HAVE_TIME_T_IN_TIME_H or HAVE_TIME_T_IN_TYPES_H.
331 * dwarf.c: Include limits.h unconditionally. Assume long long
333 * nm.c: Don't test HAVE_STRCOLL.
334 * readelf.c: Don't test HAVE_WCHAR_H.
335 * strings.c: Assume long long is available.
336 * syslex.l: Include string.h unconditionally.
337 * aclocal.m4: Regenerate.
338 * config.in: Regenerate.
339 * configure: Regenerate.
340 * Makefile.in: Regenerate.
341 * doc/Makefile.in: Regenerate.
343 2021-04-01 Martin Liska <mliska@suse.cz>
345 * elfcomm.h (strneq): Remove strneq and use startswith.
346 * readelf.c (ia64_process_unwind): Likewise.
347 (process_note): Likewise.
349 2021-04-01 Martin Liska <mliska@suse.cz>
351 * dllwrap.c: Use startswith function.
352 * objcopy.c (is_dwo_section): Likewise.
353 (handle_remove_section_option): Likewise.
354 (copy_main): Likewise.
355 * objdump.c (is_significant_symbol_name): Likewise.
357 2021-04-01 Martin Liska <mliska@suse.cz>
359 * dwarf.c (display_debug_lines_raw): Replace const_strneq with
361 (display_debug_lines_decoded): Likewise.
362 (display_debug_links): Likewise.
363 * elfcomm.c (setup_archive): Likewise.
364 * elfcomm.h (const_strneq): Likewise.
365 * readelf.c (process_section_headers): Likewise.
366 (slurp_ia64_unwind_table): Likewise.
367 (slurp_hppa_unwind_table): Likewise.
368 (decode_arm_unwind): Likewise.
369 (display_debug_section): Likewise.
370 (process_note): Likewise.
372 2021-03-31 Alan Modra <amodra@gmail.com>
374 * sysdep.h (POISON_BFD_BOOLEAN): Define.
375 * addr2line.c, * ar.c, * arsup.c, * bfdtest2.c, * binemul.c,
376 * binemul.h, * bucomm.c, * bucomm.h, * budbg.h, * coffgrok.c,
377 * debug.c, * debug.h, * dlltool.c, * dwarf.c, * dwarf.h,
378 * elfedit.c, * emul_aix.c, * mclex.c, * nm.c, * objcopy.c,
379 * objdump.c, * od-macho.c, * prdbg.c, * rdcoff.c, * rddbg.c,
380 * readelf.c, * rename.c, * stabs.c, * strings.c, * windint.h,
381 * windmc.c, * windmc.h, * windres.c, * winduni.c,
382 * wrstabs.c: Replace bfd_boolean with bool, FALSE with false,
383 and TRUE with true throughout.
385 2021-03-31 Alan Modra <amodra@gmail.com>
387 * coffdump.c: Include stdint.h in place of bfd_stdint.h.
390 2021-03-31 Alan Modra <amodra@gmail.com>
392 * prdbg.c (pr_function_type): Replace LITSTTCPY with strcpy.
394 2021-03-29 Alan Modra <amodra@gmail.com>
396 * dlltool.c (main): Don't use "boolean_condition ? TRUE : FALSE".
397 * dwarf.c (read_and_display_attr_value): Likewise.
398 (display_debug_str_offsets): Likewise.
399 * objdump.c (dump_bfd): Likewise.
400 * readelf.c (dump_section_as_strings): Likewise.
401 (dump_section_as_bytes): Likewise.
403 2021-03-29 Alan Modra <amodra@gmail.com>
405 * objdump.c (process_links): Use type int.
406 * readelf.c (request_dump): Don't increment do_dump, set it.
407 * windint.h (target_is_bigendian): Use type bfd_boolean.
408 * windmc.c (target_is_bigendian): Likewise.
409 * windres.c (target_is_bigendian): Likewise.
411 2021-03-22 Martin Liska <mliska@suse.cz>
413 * dlltool.c (scan_drectve_symbols): Replace usage of CONST_STRNEQ
415 * emul_aix.c (ar_emul_aix_parse_arg): Likewise.
416 * objcopy.c (is_mergeable_note_section): Likewise.
417 * objdump.c (dump_dwarf_section): Likewise.
418 * prdbg.c (pr_method_type): Likewise.
419 (pr_class_baseclass): Likewise.
420 (tg_class_baseclass): Likewise.
421 * readelf.c (process_lto_symbol_tables): Likewise.
422 * stabs.c (ULLHIGH): Likewise.
423 (parse_stab_argtypes): Likewise.
424 (stab_demangle_function_name): Likewise.
426 2021-03-19 H.J. Lu <hongjiu.lu@intel.com>
428 * readelf.c (get_machine_name): Add EM_INTELGT.
430 2021-03-18 Nick Clifton <nickc@redhat.com>
433 * readelf.c (dump_section_as_strings): Mention separate filename.
434 (dump_section_as_bytes): Likewise.
435 (dump_section_as_ctf): Likewise.
436 (initialise_dumkps_byname): Only issue a warning for missing
437 sections if processing the main file.
438 (process_section_contents): Only issue a warning for unsumped
439 section numbers in the main file.
440 (initialise_dump_sects): New function. Contains code extracted
442 (process_object): ... here. Also call initialise_dump_sects for
445 2021-03-16 Nick Clifton <nickc@redhat.com>
448 * readelf.c (display_debug_section): Also retain .debug_addr
451 2021-03-16 Nick Clifton <nickc@redhat.com>
454 * readelf.c (process_section_contents): Only dump debug
455 information for separate files unless process_links is enabled.
456 (process_object): Always call process_section_contents for
459 2021-03-15 Nick Clifton <nickc@redhat.com>
462 * nm.c (FORMAT_JUST_SYMBOLS): Define.
463 (struct optput_fns): Add entry for FORMAT_JUST_SYMBOLS.
464 (long_options): Add just-symbols.
465 (set_output_format): Add support for just-symbols.
466 (get_print_format): Likewise.
467 (do_not_print_object_filename): New function.
468 (do_not_print_archive_filename): New function.
469 (do_not_print_archive_member): New function.
470 (do_not_print_symbol_filename): New function.
471 (just_print_symbol_name): New function.
472 (main): Handle --just-symbols.
473 * NEWS: Mention the new feature.
474 * doc/binutils.texi: Document the new feature.
476 2021-03-12 Clément Chigot <clement.chigot@atos.net>
478 * od-xcoff.c: Replace RTB by TRL entry.
480 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
481 Andrew Burgess <andrew.burgess@embecosm.com>
483 * readelf.c (get_note_type): Handle NT_RISCV_CSR.
485 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
486 Andrew Burgess <andrew.burgess@embecosm.com>
488 * readelf.c (get_note_type): Handle NT_GDB_TDESC.
490 2021-03-05 Nick Clifton <nickc@redhat.com>
493 * dwarf.c (display_debug_macro): Handle the displaying of
494 DW_MACRO_define_strp and DW_MACRO_undef_strp in v4
495 .debug_macro.dwo sections.
497 2021-03-04 Nick Clifton <nickc@redhat.com>
500 * objdump.c (process_links): New variable.
501 (usage): Add --process-links.
502 (long_options): Likewise.
503 (dump_bfd): Stop processing once the bfd has been loaded unless
504 this is the main file or process_links has been enabled.
505 (main): Handle the process-links option.
506 * readelf.c (process_links): New variable.
507 (struct filedata): Add is_separate field.
508 (options): Add --process-links.
510 (parse_args): Likewise.
511 (process_file_header): Include the filename when dumping
512 information for separate debuginfo files.
513 (process_program_headers): Likewise.
514 (process_section_headers): Likewise.
515 (process_section_groups): Likewise.
516 (process_relocs): Likewise.
517 (process_dynamic_section): Likewise.
518 (process_version_sections): Likewise.
519 (display_lto_symtab): Likewise.
520 (process_symbol_table): Likewise.
521 (process_syminfo): Likewise.
522 (initialise_dumps_by_name): Likewise.
523 (process_section_contents): Likewise.
524 (process_notes_at): Likewise.
525 (process_notes): Likewise.
526 (open_file): Add is_separate parameter. Use to initialise the
527 is_separate field in the filedata structure.
528 (open_deug): Update call to open_file.
529 (process_object): Add processing of the contents of separate
530 debuginfo files, gated by the process_links variable.
531 (process_archive): Update call to open_file.
532 (process_file): Initialise the is_separate field in the filedata
534 * dwarf.c (load_separate_debug_info_file): Only report the
535 loading of a separate file if debug links are being dumped.
536 * objcopy.c (keep_section_symbols): New variable.
537 (enum command_line_switch): Add OPTION_KEEP_SYMBOLS.
538 (strip_options): Add keep-section-symbols.
539 (copy_options): Likewise.
540 (copy_usage): Likewise.
541 (strip_usage): Likewise.
542 (copy_object): Keep section symbols if requested by command line
544 (strip_main): Handle --keep-section-symbols.
545 (copy_main): Likewise.
546 * doc/binutils.texi: Document the new options.
547 * NEWS: Mention the new features.
548 * testsuite/binutils-all/compress.exp (test_gnu_debuglink):
549 Update options passed to objdump. Use diff rather than cmp to
550 compare the dumped data.
551 * testsuite/binutils-all/objdump.WK2: Update regexp.
552 * testsuite/binutils-all/objdump.WK3: Update regexp.
553 * testsuite/binutils-all/objdump.exp: Use --process-links
554 instead of --dwarf=follow-links.
555 * testsuite/binutils-all/readelf.exp (readelf_test): Include
556 readelf's output in the log when the test fails.
557 Add the -P option to the -wKis test.
558 * testsuite/binutils-all/readelf.wKis: Update expected output.
560 2021-03-03 Alan Modra <amodra@gmail.com>
563 * objcopy.c (filter_symbols): Apply --weaken to undefined symbols.
564 * NEWS: Mention feature.
566 2021-03-01 H.J. Lu <hongjiu.lu@intel.com>
569 * dwarf.c (load_separate_debug_info): Issue warning only if
570 do_debug_links is set.
571 * testsuite/binutils-all/compress.exp: Run objdump and readelf
572 with missing debug file.
574 2021-03-01 Alan Modra <amodra@gmail.com>
577 * doc/binutils.texi: Add nm --with-symbol-versions and
578 --without-symbol-versions documentation.
579 * nm.c (with_symbol_versions): New variable.
580 (enum long_option_values): Delete OPTION_WITH_SYMBOL_VERSIONS.
581 (long_options): Make --with-symbol-versions entry twiddle the flag.
582 Add --without-symbol-versions.
583 (print_symname): Strip version when !with_symbol_versions. Add
584 dynamic version info under control of with_symbol_versions.
585 (main): Remove OPTION_WITH_SYMBOL_VERSIONS case.
587 2021-02-26 Fangrui Song <maskray@google.com>
590 * readelf.c (quiet): New option flag.
591 (enum long_option_values): New enum to hold long option value.
592 (long_options): Add --quiet.
593 (usage): Mention --quiet.
594 (display_rel_file): If quiet is enabled, suppress "no symbols".
595 (main): Handle the new option.
596 * NEWS: Mention --quiet.
597 * docs/binutils.texi: Document --quiet.
599 2021-02-26 Tom de Vries <tdevries@suse.de>
601 * dwarf.c (display_debug_addr): Handle dwarf-5 .debug_addr bits.
603 2021-02-26 Tom de Vries <tdevries@suse.de>
606 * dwarf.c: (skip_attr_bytes): Add support for DW_FORM_str* and
608 (read_and_display_attr_value): Likewise.
610 2021-02-25 Nick Clifton <nickc@redhat.com>
612 * dwarf.c (get_type_abbrev_from_form): Accept but ignore sup
614 (read_and_display_attr_value): Handle sup forms.
615 (display_debug_sup): New function. Displays the contents of a
617 (load_debug_sup_file): New function. Loads the contents of a file
618 referenced by a .debug_sup section.
619 (check_for_and_load_links): Call load_debug_sup_file.
620 (debug_displays): Add entry for .debug_sup.
621 * dwarf.h (enum dwarf_section_display_enum): Add debug_sup.
622 * readelf.c (process_section_headers): Add support for debug_sup.
623 * doc/debug.options.texi: Note that the =links option will display
624 the contents of .debug_sup sections.
625 * NEWS: Mention the new support.
627 2021-02-25 Alan Modra <amodra@gmail.com>
630 * rename.c (simple_copy): Mark target_stat ATTRIBUTE_UNUSED.
632 2021-02-24 Nick Clifton <nickc@redhat.com>
635 * od-elf32_avr.c (elf32_avr_get_memory_usage): Check for overflows
636 when adding together the section sizes.
638 2021-02-24 Nick Clifton <nickc@redhat.com>
640 * objcopy.c (merge_gnu_build_notes): Remove support for v1/v2 GNU
642 * readelf.c (print_gnu_build_attribute_description): Likewise.
644 2021-02-24 Alan Modra <amodra@gmail.com>
645 Siddhesh Poyarekar <siddhesh@gotplt.org>
648 * bucomm.h (smart_rename): Update prototype.
649 * rename.c (smart_rename): Add fromfd and preserve_dates params.
650 Pass fromfd and target_stat to simple_copy. Call set_times
652 (simple_copy): Accept fromfd rather than from filename. Add
653 target_stat param. Rewind fromfd rather than opening. Open
654 "to" file without O_CREAT. Try to preserve S_ISUID and S_ISGID.
655 * ar.c (write_archive): Rename ofd to tmpfd. Dup tmpfd before
656 closing output temp file, and pass tmpfd to smart_rename.
657 * arsup.c (temp_fd): Rename from real_fd.
658 (ar_save): Dup temp_fd and pass to smart_rename.
659 * objcopy.c (strip_main, copy_main): Likewise, and pass
662 2021-02-24 Alan Modra <amodra@gmail.com>
665 * rename.c: Tidy throughout.
666 (smart_rename): Always copy. Remove windows specific code.
668 2021-02-20 Alan Modra <amodra@gmail.com>
670 * testsuite/lib/binutils-common.exp: Whitespace fixes throughout.
671 (run_dump_test): Fail if expecting errors from a file like we do
672 for error strings, if no error is seen.
674 2021-02-19 Alan Modra <amodra@gmail.com>
676 * testsuite/binutils-all/readelf.exp (pr26548): Run for 32-bit too.
678 2021-02-19 Siddhesh Poyarekar <siddhesh@gotplt.org>
680 * ar.c (write_archive): Remove TARGET_STAT. Adjust call to
682 * arsup.c (ar_save): Likewise.
683 * objcopy (strip_main): Don't copy TMPFD. Don't set times on
684 temporary file and adjust call to SMART_RENAME.
685 (copy_main): Likewise.
686 * rename.c [!S_ISLNK]: Remove definitions.
687 (try_preserve_permissions): Remove function.
688 (smart_rename): Remove FD, PRESERVE_DATES arguments. Use
689 rename system call only if TO does not exist.
690 * bucomm.h (smart_rename): Adjust declaration.
692 2021-02-18 Nick Clifton <nickc@redhat.com>
694 * objcopy.c (merge_gnu_build_notes): Handle notes with a start
695 address that is higher than the end address.
697 2021-02-17 Alan Modra <amodra@gmail.com>
699 * dwarf.c: Include limits.h.
700 (CHAR_BIT): Provide backup define.
701 (read_leb128): Use CHAR_BIT to size "result" in bits. Correct
702 signed overflow checking.
703 * testsuite/binutils-all/pr26548.s,
704 * testsuite/binutils-all/pr26548.d,
705 * testsuite/binutils-all/pr26548e.d: New tests.
706 * testsuite/binutils-all/readelf.exp: Run them.
707 (readelf_test): Drop unused "xfails" parameter. Update all uses.
709 2021-02-16 Jan Beulich <jbeulich@suse.com>
711 * dwarf.c (process_debug_info): Initialize "dwo_id".
713 2021-02-15 Alan Modra <amodra@gmail.com>
715 * objdump.c (load_specific_debug_section): Don't call
716 bfd_cache_section_contents. Rearrange so that
717 bfd_get_full_section_contents is not called on path where
718 bfd_simple_get_relocated_section_contents is called.
719 Don't set section->user_data.
720 (free_debug_section): Always free section->start. Don't twiddle
722 * readelf.c (load_specific_debug_section): Don't set user_data.
723 * dwarf.h (struct dwarf_section): Remove use_data field.
724 * dwarf.c (NO_ABBREVS, ABBREV): Adjust to suit.
726 2021-02-15 Alan Modra <amodra@gmail.com>
728 * testsuite/binutils-all/compress.exp: Remove nds32 xfails.
729 * testsuite/binutils-all/objdump.exp: Likewise.
731 2021-02-14 Alan Modra <amodra@gmail.com>
733 * objdump.c (slurp_symtab): Don't add an extra entry for NULL
735 (slurp_dynamic_symtab): Likewise.
736 (dump_bfd): Formatting. Copy terminating NULL from extra_syms.
738 2021-02-14 Alan Modra <amodra@gmail.com>
740 * Makefile.in: Regenerate.
741 * doc/Makefile.in: Regenerate.
743 2021-02-13 Mike Frysinger <vapier@gentoo.org>
745 * aclocal.m4: Regenerate.
747 2021-02-12 Nick Clifton <nickc@redhat.com>
749 * configure.ac (follow-debug-links): Add option to enable or
750 disable the following of debug links by default. Set the
751 default for the option to be 'follow'.
752 * dwarf.c (do_follow_links): Initialise with DEFAULT_FOR_FOLLOW_LINKS.
753 (dwarf_select_sections_by_names): Add no-follow-links option.
754 (dwarf_select_sections_by_letter): Add 'N' option.
755 * objdump.c (usage): Add conditional text describing the
757 (slurp_symtab): Ensure that there is a NULL entry at the end
759 (slurp_dynamic_symtab): Likewise.
760 (dump_bfd): When extending the symbol table, ensure that there
761 is still a NULL entry at the end.
762 * readelf.c (usage): Add conditional text describing the
764 * doc/binutils.texi: Update documentation for objcopy and
766 * doc/debug.options.texi: Update documentation of the
768 * config.in: Regenerate.
769 * configure: Regenerate.
770 * testsuite/binutils-all/compress.exp: Add the -WN option to
771 objdump command lines that are not expecting to follow links.
772 * testsuite/binutils-all/readelf.exp: Add the
773 --debug-dump=no-follow-links option to tests that are not
774 expecting to follow debug links.
775 * NEWS: Mention the new behaviour.
777 2021-02-12 Alan Modra <amodra@gmail.com>
779 * testsuite/binutils-all/objcopy.exp: Report "unsupported" when
780 gas or ld fails to build a testcase rather than "unresolved".
781 Report "fail" when readelf returns an error status rather than
783 * testsuite/binutils-all/ar.exp: Likewise.
784 * testsuite/binutils-all/compress.exp: Likewise.
785 * testsuite/binutils-all/readelf.exp: Likewise.
787 2021-02-12 Alan Modra <amodra@gmail.com>
789 * testsuite/binutils-all/pr25662.s: Replace "a" with "aaa" and
790 "c" with "ccc" labels.
792 2021-02-12 Tom de Vries <tdevries@suse.de>
794 * dwarf.h (debug_info): Fix typo in comment.
796 2021-02-12 Tom de Vries <tdevries@suse.de>
798 * dwarf.c (display_debug_str_offsets): Handle multiple sets of
801 2021-02-12 Tom de Vries <tdevries@suse.de>
803 * dwarf.c (process_debug_info): Print DWO ID.
805 2021-02-11 Alan Modra <amodra@gmail.com>
810 * od-elf32_avr.c (elf32_avr_get_note_section_contents): Formatting.
811 Use bfd_malloc_and_get_section.
812 (elf32_avr_get_note_desc): Formatting. Return descsz. Sanity
813 check namesz. Return NULL if descsz is too small. Ensure
814 string table is terminated.
815 (elf32_avr_get_device_info): Formatting. Add note_size param.
817 (elf32_avr_dump_mem_usage): Adjust to suit.
819 2021-02-10 Tom de Vries <tdevries@suse.de>
822 * dwarf.c (load_dwo_file): Handle case that name is absolute path.
824 2021-02-10 Tom de Vries <tdevries@suse.de>
827 * dwarf.c (display_debug_ranges): Filter range lists according to
830 2021-02-09 Tom de Vries <tdevries@suse.de>
833 * dwarf.c (get_type_abbrev_from_form): Handle DW_FORM_ref_sig8.
835 2021-02-09 Tom de Vries <tdevries@suse.de>
838 * dwarf.c (process_debug_info): Handling DW_UT_skeleton and
841 2021-02-09 Alan Modra <amodra@gmail.com>
843 * testsuite/lib/binutils-common.exp (supports_gnu_osabi): Remove
846 2021-02-07 Alan Modra <amodra@gmail.com>
848 * unwind-ia64.c (unw_print_xyreg): Don't leave output buffer
849 uninitialised on invalid input.
851 2021-02-06 Alan Modra <amodra@gmail.com>
854 * rename.c (smart_rename): Test for existence and type of output
857 2021-02-05 Nick Clifton <nickc@redhat.com>
859 * MAINTAINERS: Remove Richard Henderson as the ALPHA maintainer.
861 2021-02-05 Eli Zaretskii <eliz@gnu.org>
864 * elfedit.c (check_file):
865 * bucomm.c (get_file_size): Fix typos in comments.
867 2021-02-05 Alan Modra <amodra@gmail.com>
870 * arsup.c (ar_save): Use stat rather than lstat.
872 2021-02-03 Alan Modra <amodra@gmail.com>
877 * ar.c: Don't include libbfd.h.
878 (write_archive): Replace xmalloc+strcpy with xstrdup. Use
879 bfd_stat rather than fstat on iostream. Move stat and fd tests
880 outside of _WIN32 ifdef. Delete skip_stat variable.
881 * arsup.c (temp_name, real_ofd): New static variables.
882 (ar_open): Use make_tempname and bfd_fdopenw.
883 (ar_save): Adjust to suit ar_open changes. Move stat output
885 * objcopy.c: Don't include libbfd.h.
886 (copy_file): Use bfd_stat.
888 2021-02-02 H.J. Lu <hongjiu.lu@intel.com>
891 * readelf.c (process_section_headers): Add 'R' and 'D' to
893 * testsuite/binutils-all/retain1a.d: Updated.
895 2021-01-30 Nick Clifton <nickc@redhat.com>
897 * README-how-to-make-a-release: Small updates after the 2.35.2
900 2021-01-28 Eli Zaretskii <eliz@gnu.org>
903 * windres.c (quot): Use double quotes to protect strings on
906 2021-01-28 Eli Zaretskii <eliz@gnu.org>
909 * bucomm.c (get_file_size): Add code to handle /dev/null on
911 * elfedit.c (check_file): Likewise.
913 2021-01-27 Nick Clifton <nickc@redhat.com>
915 * objcopy.c (copy_main): Remove conditional control of the calls
916 to free, simplifying the code and making it easier to detect
919 2021-01-26 Frederic Cambus <fred@statdns.com>
921 * objcopy.c (copy_main): Fix a double free happening when both
922 --localize-symbols and --globalize-symbols options are invoked
925 2021-01-24 Nick Clifton <nickc@redhat.com>
927 * README-how-to-make-a-release: Minor updates after the 2.36 release.
929 2021-01-16 Alan Modra <amodra@gmail.com>
931 * readelf.c (uncompress_section_contents): Tidy inflateEnd result test.
933 2021-01-15 Alan Modra <amodra@gmail.com>
936 * readelf.c (uncompress_section_contents): Always call inflateEnd.
938 2021-01-14 Alexandre Oliva <oliva@gnu.org>
940 * MAINTAINERS: Update my email address.
942 2021-01-14 Nick Clifton <nickc@redhat.com>
944 * po/sv.po: Updated Swedish translation.
946 2021-01-13 Alan Modra <amodra@gmail.com>
948 * Makefile.in: Regenerate.
949 * doc/Makefile.in: Regenerate.
951 2021-01-13 Zebediah Figura <z.figura12@gmail.com>
954 * dlltool.c (i386_trampoline): Adjust %rsp immediately on entry
956 (i386_x64_trampoline): Add SEH annotations.
957 (struct mac): Add how_seh field.
958 (make_delay_head): If how_set field is true add SEh instructions.
960 2021-01-12 H.J. Lu <hongjiu.lu@intel.com>
963 * configure.ac: Use GNU_MAKE_JOBSERVER.
964 * aclocal.m4: Regenerated.
965 * configure: Likewise.
967 2021-01-12 Nick Clifton <nickc@redhat.com>
969 * po/fr.po: Updated French translation.
971 2021-01-11 H.J. Lu <hongjiu.lu@intel.com>
974 * configure: Regenerated.
976 2021-01-11 Nick Clifton <nickc@redhat.com>
978 * po/pt.po: Updated Portuguese translation.
979 * po/sr.po: Updated Serbian translation.
980 * po/uk.po: Updated Ukranian translation.
982 2021-01-09 H.J. Lu <hongjiu.lu@intel.com>
984 * configure: Regenerated.
986 2021-01-09 Nick Clifton <nickc@redhat.com>
988 * configure: Regenerate.
989 * po/binutils.pot: Regenerate.
991 2021-01-09 Nick Clifton <nickc@redhat.com>
993 * 2.36 release branch crated.
994 * README-how-to-make-a-release: Add note about updating Makefiles
996 * BRANCHES: Add binutils-2.36-branch.
998 2021-01-09 Alan Modra <amodra@gmail.com>
1000 * configure: Regenerate.
1002 2021-01-07 Samuel Thibault <samuel.thibault@gnu.org>
1004 * configure: Regenerate.
1006 2021-01-07 H.J. Lu <hongjiu.lu@intel.com>
1009 * objcopy.c (copy_object): Handle section symbols for
1010 non-relocatable inputs.
1011 * testsuite/binutils-all/readelf.exp (readelf_test): Check
1012 is_elf_unused_section_symbols.
1013 * testsuite/binutils-all/readelf.s-64: Updated.
1014 * testsuite/binutils-all/readelf.ss: Likewise.
1015 * testsuite/binutils-all/readelf.ss-64: Likewise.
1016 * testsuite/binutils-all/readelf.s-64-unused: New file.
1017 * testsuite/binutils-all/readelf.ss-64-unused: Likewise.
1018 * testsuite/binutils-all/readelf.ss-unused: Likewise.
1019 * testsuite/lib/binutils-common.exp
1020 (is_elf_unused_section_symbols): New proc.
1022 2021-01-06 Reuben Thomas <rrt@sc3d.org>
1024 * binutils/readelf.c: Correct grammar in comment.
1026 2021-01-01 Nicolas Boulenguez <nicolas@debian.org>
1028 * coffgrok.c (do_type): Correct spelling of auxiliary in errors.
1029 * doc/binutils.texi: Correct grammar.
1030 * readelf.c (process_version_sections): Correct spelling of auxiliary
1032 * testsuite/binutils-all/vax/objdump.exp: Comment grammar fix.
1034 2021-01-01 Alan Modra <amodra@gmail.com>
1036 Update year range in copyright notice of all files.
1038 For older changes see ChangeLog-2020
1040 Copyright (C) 2021 Free Software Foundation, Inc.
1042 Copying and distribution of this file, with or without modification,
1043 are permitted in any medium without royalty provided the copyright
1044 notice and this notice are preserved.
1050 version-control: never