1 2023-07-03 Nick Clifton <nickc@redhat.com>
3 * README-how-to-make-a-release: Change some version numbers.
4 * configure: Regenerate.
5 * po/binutils.pot: Regenerate.
7 2023-07-03 Nick Clifton <nickc@redhat.com>
11 2023-06-30 Nick Clifton <nickc@redhat.com>
14 * strings.c (set_string_min): New function.
16 (print_unicode_stream): Calculate buffer size using a size_t.
18 2023-06-30 Nick Clifton <nickc@redhat.com>
21 * strings.c (main): Check for an excessively large minimum string
24 2023-06-21 Nick Clifton <nickc@redhat.com>
26 * testsuite/lib/binutils-common.exp (prune_warnings_extra): Prune
27 warnings about -z execstack creating an executable stack.
29 2023-05-30 Nick Clifton <nickc@redhat.com>
31 * od-pe.c (targ_info): New array.
32 (get_target_specific_info): New function
33 (decode_machine_number): Retire. Use get_target_specific_info
35 (is_pe_object_magic): Likewise.
36 (dump_pe_file_header): Display more information.
37 Rework layout to be similar to that from 'objdump -p'.
38 Add code to handle larger than normnal AOUT headers.
40 2023-05-30 Nick Clifton <nickc@redhat.com>
42 * od-pe.c (decode_machine_number): Add ARMMAGIC value of 0xa00.
43 (is_pe_object_magic): Likewise.
45 2023-05-26 Nick Clifton <nickc@redhat.com>
47 * od-pe.c: New file: Dumps fields in PE format headers.
48 * configure.ac (od_vectors): Add objdump_private_desc_pe for PE
50 (od_files): Add od-pe for PE format targets.
51 * configure: Regenerate.
52 * Makefile.am (CFILES): Add od-pe.c
53 (EXTRA_objdump_SOURCE): Likewise.
54 * Makefile.in: Generate.
55 * NEWS: Mention the new feature.
56 * doc/binutils.texi: Document the new support.
57 * objdump.c (wide_output): Change from local to global.
58 * objdump.h (wide_output): Prototype.
59 (objdump_private_desc_pe): Prototype.
60 * testsuite/binutils-all/objdump.exp: Add a test of the new feature.
62 2023-05-09 Enze Li <enze.li@gmx.com>
64 * README: Correct a typo.
66 2023-05-02 Nick Clifton <nickc@redhat.com>
68 * MAINTAINERS: Remove Dimity Diky as MSP430 maintainer.
70 2023-04-20 Nick Clifton <nickc@redhat.com>
72 * SECURITY.txt: New file.
74 2023-04-19 Nick Clifton <nickc@redhat.com>
77 * dwarf.c (read_and_display_attr_value): Correctly handle
78 DW_loclistx attributes that index a version 5 .debug_loclists
81 2023-04-17 Nick Clifton <nickc@redhat.com>
84 * rescoff.c (write_coff_file): Add the SEC_READONLY flag to the
87 2023-04-11 Nick Clifton <nickc@redhat.com>
90 * dwarf.c (read_and_display_attr_value): Warn if the number of
91 views is greater than the number of locations.
94 * dwarf.c (display_debug_lines_decoded): Check for an overlarge
95 number of files or directories.
98 * dwarf.c (prealloc_cu_tu_list): Always allocate at least one
102 * readelf.c (uncompress_section_contents): Check for a
103 suspiciously large uncompressed size.
105 2023-03-30 Nick Clifton <nickc@redhat.com>
108 * dwarf.c (read_and_display_attr_value): Detect and ignore
109 negative base values.
111 2023-03-23 Frederic Cambus <fred@statdns.com>
113 * readelf.c (get_segment_type): Handle PT_OPENBSD_MUTABLE segment
116 2023-03-14 Nick Clifton <nickc@redhat.com>
119 * dwarf.c (process_cu_tu_index): Prevent excessive memory
120 allocation when nused is large and ncols is zero.
122 2023-02-09 Tom Tromey <tromey@adacore.com>
124 * dwarf-mode.el: Bump version to 1.8.
125 (dwarf-insert-substructure): Tighten regexp.
126 (dwarf-refresh-all): New defun.
127 (dwarf-mode-map): Bind "A" to dwarf-refresh-all.
128 (dwarf-mode): Remove old FIXME.
130 2023-02-07 Nick Clifton <nickc@redhat.com>
133 * doc/binutils.texi (nm): Update description of the 'n' symbol
136 2023-01-31 Nick Clifton <nickc@redhat.com>
138 * po/sv.po: Updated Swedish translation.
140 2023-01-23 Nick Clifton <nickc@redhat.com>
142 * po/sv.po: Updated Swedish translation.
144 2023-01-18 Nick Clifton <nickc@redhat.com>
147 * objcopy.c (merge_gnu_build_notes): Remember the last non-deleted
148 note in order to speed up the scan for matching notes.
150 2023-01-16 Nick Clifton <nickc@redhat.com>
152 * po/sv.po: Updated Swedish translation.
154 2023-01-09 Nick Clifton <nickc@redhat.com>
156 * po/bg.po: Updated Bulgarian translation.
157 * po/ro.po: Updated Romainian translation.
159 2023-01-05 Nick Clifton <nickc@redhat.com>
161 * MAINTAINERS: Remove Stephen Casner as the PDP11 maintainer.
163 2023-01-03 Nick Clifton <nickc@redhat.com>
165 * po/fr.po: Updated French translation.
166 * po/uk.po: Updated Ukrainian translation.
168 2023-01-03 Luis Machado <luis.machado@arm.com>
170 * readelf.c (get_note_type): Add support for NT_ARM_SSVE and
171 NT_ARM_ZA note types.
173 2022-12-31 Nick Clifton <nickc@redhat.com>
175 * 2.40 branch created.
177 2022-12-31 Nick Clifton <nickc@redhat.com>
179 * po/ro.po: Updated Romanian translation.
181 2022-12-21 Nick Clifton <nickc@redhat.com>
184 * objdump.c (load_specific_debug_section): Check for excessively
187 2022-12-19 Tom Tromey <tromey@adacore.com>
189 * dwarf-mode.el (dwarf-do-refresh): Avoid compiler warning.
191 2022-12-19 Nick Clifton <nickc@redhat.com>
194 * dwarf.c (fetch_indexed_value): Fail if the section is not big
195 enough to contain a header size field.
196 (display_debug_addr): Fail if the computed address size is too big
199 2022-12-16 Nick Clifton <nickc@redhat.com>
202 * dwarf.c (display_debug_addr): Check for corrupt header lengths.
204 2022-12-01 Nick Clifton <nickc@redhat.com>
207 * objcopy.c (copy_object): Set VerilogDataEndianness to the
208 endianness of the input file.
209 (copy_main): Verifiy the value set by the --verilog-data-width
211 * testsuite/binutils-all/objcopy.exp: Add tests of the new behaviour.
212 * testsuite/binutils-all/verilog-I4.hex: New file.
214 2022-11-21 Nick Clifton <nickc@redhat.com>
217 * doc/binutils.texi (objdump): Note that the -m option supports
218 the <architecture>:<machine> syntax.
220 2022-11-04 Nick Clifton <nickc@redhat.com>
222 * README-how-to-make-a-release: Add instructions for uploading the
223 gprofng documentation.
225 2022-10-31 Nick Clifton <nickc@redhat.com>
228 * configure.ac: Add --enable-colored-disassembly.
229 * objdump.c: Add --disassembler-color=terminal.
230 * doc/binutils.texi (objdump): Document the new option.
231 * NEWS: Mention new feature.
232 * config.in: Regenerate in.
233 * configure: Regenerate.
235 2022-10-19 Nick Clifton <nickc@redhat.com>
237 * MAINTAINERS: Add section on patches, copyright and DCO.
239 2022-10-12 Nick Clifton <nickc@redhat.com>
242 * objcopy.c (copy_object): Use the input filename when
243 reporting that a .gnu_debuglink section already exists.
245 2022-10-03 Nick Clifton <nickc@redhat.com>
247 * readelf.c (get_32bit_section_headers): Return false if the
248 e_shoff field is zero.
249 (get_64bit_section_headers): Likewise.
251 2022-09-28 Nick Clifton <nickc@redhat.com>
254 * size.c (usage): Add -f.
255 * doc/binutils.texi (size): Add -f.
257 2022-09-20 Nick Clifton <nickc@redhat.com>
259 * objcopy.c (copy_object): Do not issue a warning message when
260 encountering empty .gnu.build.attribute sections.
262 2022-09-14 Rupesh Potharla <Rupesh.Potharla@amd.com>
264 * testsuite/binutils-all/readelf.exp (readelf_wi_test): Extend
265 regexps to allow for output genreated by the Clang compiler.
267 2022-09-12 Aaron Merey <amerey@redhat.com>
269 * objcopy.c (might_need_separate_debug_info): Add with_source_code to
270 the options that cause this function to return true.
271 (main.c): Add with_source_code to the options that enable
274 2022-09-09 Nick Clifton <nickc@redhat.com>
277 * objcopy.c (setup_section): Leave group sections intact when
278 creating separate debuginfo files.
280 2022-09-08 Nick Clifton <nickc@redhat.com>
283 * dwarf.c (display_debug_lines_decoded): Correctly handle DWARF-5
284 directory and filename tables.
286 2022-09-02 Aaron Merey <amerey@redhat.com>
289 * objdump.c (find_separate_debug): New function. Finds the bfd
290 corresponding to the separate debuginfod of a given bfd.
291 (find_alt_debug): New function. Finds the bfd corresponding to the
292 .gnu_debugaltlink of a given bfd.
293 (slurp_file): Add bfd parameter. If a source file cannot be found
294 attempt to download it from debuginfod, if enabled.
295 (try_print_file_open): Add bfd parameter and pass it to slurp_file.
296 (show_line): If debuginfod is enabled, call
297 bfd_find_nearest_line_with_alt instead of bfd_find_nearest_line.
299 2022-09-01 Nick Clifton <nickc@redhat.com>
302 * dllwrap.c: Replace uses of choose_temp_base() with
304 * dlltool.c: Likewise.
307 2022-08-23 Nick Clifton <nickc@redhat.com>
310 * dlltool.c (deterministic): New variable.
311 (gen_lib_file): If deterministic is true set the
312 BFD_DETERMINISTIC_OUTPUT flag.
313 (usage): Mention --deterministic-libraries and
314 --non-deterministic-libraries.
315 (long_options): Add new options.
316 (main): Parse new options.
317 * doc/binutils.texi: Document the new options.
318 * NEWS: Mention the new feature.
320 2022-08-22 Nick Clifton <nickc@redhat.com>
322 * readelf.c (check_magic_number): New function. Checks the magic
323 bytes at the start of a file. If they are not the ELF format
324 magic values, then attempts to generate a helpful error message.
325 (process_file_header): Call check_magic_number.
327 2022-08-09 Nick Clifton <nickc@redhat.com>
330 * objdump.c (disassembler_color): Change type to an enum.
331 (disassembler_extended_color): Remove.
333 (objdump_color_for_assembler_style): Update.
334 (main): Update initialisation of disassembler_color. If not
335 initialised via a command line option, set based upon terminal
337 * doc/binutils.texi: Update description of disassmbler-color
339 * testsuite/binutils-all/arc/objdump.exp: Add
340 --disassembler-color=off option when disassembling.
341 * testsuite/binutils-all/arm/objdump.exp: Likewise.
343 2022-08-08 Nick Clifton <nickc@redhat.com>
345 * README-how-to-make-a-release: Add a link to the NEWS files in
346 the release announcement email.
348 2022-07-08 Nick Clifton <nickc@redhat.com>
350 * 2.39 branch created.
352 2022-07-01 Nick Clifton <nickc@redhat.com>
354 * dwarf.c (display_debug_rnglists): Add newline at end of listing.
356 2022-06-30 Nick Clifton <nickc@redhat.com>
358 * dwarf.c (dwarf_select_sections_by_name): If the entry's value is
359 zero then clear the corresponding variable.
360 (dwarf_select_sections_by_letters): Likewise.
361 * testsuite/binutils-all/debuginfo.exp: Expect -WE and -wE
362 debuginfod tests to fail.
364 2022-06-28 Nick Clifton <nickc@redhat.com>
367 * dwarf.c (display_debug_rnglists): New function, broken out of..
368 (display_debug_ranges): ... here.
369 (read_and_display_attr_value): Correct calculation of index
370 displayed for DW_FORM_loclistx and DW_FORM_rnglistx.
371 * testsuite/binutils-all/x86-64/pr26808.dump: Update expected
374 2022-06-27 Nick Clifton <nickc@redhat.com>
377 * dwarf.c (display_debug_names): Replace assert with a warning
380 2022-06-27 Nick Clifton <nickc@redhat.com>
383 * dwarf.c (read_and_display_attr_value): Check that debug_info_p
384 is set before dereferencing it.
386 2022-06-27 Nick Clifton <nickc@redhat.com>
388 * dwarf.c (fetch_indexed_string): Do not use length of first table
389 in string section as the length of every table in the section.
391 * testsuite/binutils-all/pr26112.r: Update expected output.
393 2022-06-22 Kumar N, Bhuvanendra <Kavitha.Natarajan@amd.com>
395 * dwarf.c (fetch_indexed_string): Added new parameter
396 str_offsets_base to calculate the string offset.
397 (read_and_display_attr_value): Read DW_AT_str_offsets_base
399 (process_debug_info): While allocating memory and initializing
400 debug_information, do it for do_debug_info also, if its true.
401 (load_separate_debug_files): Load .debug_str_offsets if exists.
402 * dwarf.h (struct debug_info): Add str_offsets_base field.
404 2022-06-22 Marcus Nilsson <brainbomb@gmail.com>
406 * readelf.c: (slurp_relr_relocs) Use malloc instead of xmalloc
407 when allocating space for relocations.
409 2022-06-21 Kumar N, Bhuvanendra <Kavitha.Natarajan@amd.com>
411 * dwarf.h (struct debug_info): Add rnglists_base field.
412 * dwarf.c (read_and_display_attr_value): Read attribute DW_AT_rnglists_base.
413 (display_debug_rnglists_list): While handling DW_RLE_base_addressx,
414 DW_RLE_startx_endx, DW_RLE_startx_length items, pass the proper parameter
415 value to fetch_indexed_addr(), i.e. fetch the proper entry in .debug_addr section.
416 (display_debug_ranges): Add rnglists_base to the .debug_rnglists base address.
417 (load_separate_debug_files): Load .debug_addr section, if exists.
419 2022-05-20 Nick Clifton <nickc@redhat.com>
421 * dwarf.c (dwarf_select_sections_by_names): Return zero if no
422 sections were selected.
423 (dwarf_select_sections_by_letters): Likewise.
424 * dwarf.h: (dwarf_select_sections_by_names): Update prototype.
425 (dwarf_select_sections_by_letters): Update prototype.
426 * objdump.c (might_need_separate_debug_info): New function.
427 (dump_bfd): Call new function before attempting to load separate
429 (main): Do not enable dwarf section dumping for -WK or -WN.
430 * readelf.c (parse_args): Do not enable dwarf section dumping for
432 (might_need_separate_debug_info): New function.
433 (process_object): Call new function before attempting to load
434 separate debug info files.
435 * testsuite/binutils-all/debuginfo.exp: Expect -WE and -wE
436 debuginfod tests to pass.
437 * testsuite/binutils-all/objdump.Wk: Add extra regexps.
438 * testsuite/binutils-all/readelf.k: Add extra regexps.
440 2022-05-19 Nick Clifton <nickc@redhat.com>
442 * dlltool.c (run): Initialise errmsg_fmt.
443 * dllwrap.c (run): Likewise.
444 * resrc.c (run_cmd): Likewise.
445 * mclex.c (mc_add_keyword): Initialise usz.
446 * srconv.c (wd_hd): Initialise hd.spare2.
447 * windmc.c (mc_add_node_lang): Initialise s.
448 (mc_generate_bin_item): Initialise cvt_txt.
449 (main): Initialise u.
451 2022-05-18 Nick Clifton <nickc@redhat.com>
454 * nm.c (non_weak): New variable.
455 (filter_symbols): When non-weak is true, ignore weak symbols.
456 (long_options): Add --no-weak.
457 (usage): Mention --no-weak.
458 (main): Handle -W/--no-weak.
459 * doc/binutils.texi: Document new feature.
460 * NEWS: Mention the new feature.
461 * testsuite/binutils-all/nm.exp: Add test of new feature.
462 * testsuite/binutils-all/no-weak.s: New test source file.
464 2022-04-25 Nick Clifton <nickc@redhat.com>
467 * testsuite/lib/binutils-common.exp (prune_warnings_extra): Filter
468 out notes about the executable stacjk behaviour beign deprecated.
470 2022-04-12 Nick Clifton <nickc@redhat.com>
473 * objcopy.c (is_strip_section_1): Do not delete debuglink sections
474 when stripping debug information.
476 2022-04-06 Nick Clifton <nickc@redhat.com>
479 * dwarf.c (fetch_indexed_value): Rename to fecth_indexed_addr and
480 return the address, rather than a string.
481 (fetch_indexed_value): New function - returns a value indexed by a
482 DW_FORM_loclistx or DW_FORM_rnglistx form.
483 (read_and_display_attr_value): Add support for DW_FORM_loclistx
484 and DW_FORM_rnglistx.
485 (process_debug_info): Load the loclists and rnglists sections.
486 (display_loclists_list): Add support for DW_LLE_base_addressx,
487 DW_LLE_startx_endx, DW_LLE_startx_length and
488 DW_LLE_default_location.
489 (display_offset_entry_loclists): New function. Displays a
490 .debug_loclists section that contains offset entry tables.
491 (display_debug_loc): Call the new function.
492 (display_debug_rnglists_list): Add support for
493 DW_RLE_base_addressx, DW_RLE_startx_endx and DW_RLE_startx_length.
494 (display_debug_ranges): Display the contents of the section's
496 * dwarf.h (struct debug_info): Add loclists_base field.
497 * testsuite/binutils-all/dw5.W: Update expected output.
498 * testsuite/binutils-all/x86-64/pr26808.dump: Likewise.
500 2022-04-01 John Baldwin <jhb@FreeBSD.org>
502 * readelf.c (get_freebsd_elfcore_note_type): Handle
503 NT_FREEBSD_X86_SEGBASES.
505 2022-03-31 Nick Clifton <nickc@redhat.com>
507 * arlex.l: Accept the plus character as part of a filename.
509 2022-03-16 Fangrui Song <maskray@google.com>
512 * objcopy.c (filter_symbols): Apply weaken to STB_GNU_UNIQUE symbols
513 * NEWS: Mention feature.
514 * testsuite/binutils-all/objcopy.exp (objcopy_test_symbol_manipulation): New test.
515 * testsuite/binutils-all/weaken-gnu-unique.s: New.
517 2022-03-16 Martin Storsjö <martin@martin.st>
520 * dlltool.c (main): use imp_name rather than dll_name when
521 generating a temporary file name.
523 2022-03-16 Simon Marchi <simon.marchi@efficios.com>
525 * readelf.c (dump_relocations): Handle EM_AMDGPU.
527 2022-03-16 Simon Marchi <simon.marchi@efficios.com>
529 * Makefile.am (readelf_CFLAGS): New.
530 (readelf_LDADD): Add MSGPACK_LIBS.
531 * Makefile.in: Re-generate.
532 * config.in: Re-generate.
533 * configure: Re-generate.
534 * configure.ac: Add --with-msgpack flag and check for msgpack
536 * readelf.c: Include msgpack.h if HAVE_MSGPACK.
537 (print_note_contents_hex): New.
538 (print_indents): New.
539 (dump_msgpack_obj): New.
541 (print_amdgpu_note): New.
542 (process_note): Handle NT_AMDGPU_METADATA note contents.
543 Use print_note_contents_hex.
545 2022-03-16 Simon Marchi <simon.marchi@efficios.com>
547 * readelf.c (get_amdgpu_elf_note_type): New.
548 (process_note): Handle "AMDGPU" notes.
550 2022-03-16 Simon Marchi <simon.marchi@efficios.com>
552 * readelf.c: Include elf/amdgcn.h.
553 (decode_AMDGPU_machine_flags): New.
554 (get_machine_flags): Handle flags for EM_AMDGPU machine type.
556 2022-03-16 Simon Marchi <simon.marchi@efficios.com>
558 * readelf.c (get_osabi_name): Handle EM_AMDGPU OS ABIs.
560 2022-03-16 Nick Clifton <nickc@redhat.com>
562 * po/sr.po: Updated Serbian translation.
564 2022-03-15 Tom Tromey <tromey@adacore.com>
566 * dwarf-mode.el: Now 1.7.
567 (dwarf--sentinel): Switch to the process buffer.
569 2022-03-11 Vladimir Mezentsev <vladimir.mezentsev@oracle.com>
571 * MAINTAINERS: Add gprofng maintainer.
572 * README-how-to-make-a-release: Add gprofng.
574 2022-03-10 Nick Clifton <nickc@redhat.com>
576 * dwarf.c (use_debuginfod): New variable. Set to 1.
577 (load_separate_debug_info): Only call
578 debuginfod_fetch_separate_debug_info is use_debuginfod is true.
579 (dwarf_select_sections_by_names): Add do-not-use-debuginfod and
580 use-debuginfod options.
581 (dwarf_select_sections_by_letters): Add D and E options.
582 * dwarf.h (use_debuginfod): New extern.
583 * objdump.c (usage): Mention the new options.
584 * readelf.c (usage): Likewise.
585 * doc/binutils.texi: Document the new options.
586 * doc/debug-options.texi: Describe the new options.
587 * NEWS: Mention the new feature.
588 * testsuite/binutils-all/debuginfod.exp: Add tests of the new
591 2021-03-06 Maciej W. Rozycki <macro@orcam.me.uk>
593 * testsuite/binutils-all/mips/mips1-branch-alias.d: New test.
594 * testsuite/binutils-all/mips/mips1-branch-noalias.d: New test.
595 * testsuite/binutils-all/mips/mips2-branch-alias.d: New test.
596 * testsuite/binutils-all/mips/mips2-branch-noalias.d: New test.
597 * testsuite/binutils-all/mips/mips32r6-branch-alias.d: New test.
598 * testsuite/binutils-all/mips/mips32r6-branch-noalias.d: New
600 * testsuite/binutils-all/mips/micromips-branch-alias.d: New
602 * testsuite/binutils-all/mips/micromips-branch-noalias.d: New
604 * testsuite/binutils-all/mips/mips-branch-alias.s: New test
606 * testsuite/binutils-all/mips/micromips-branch-alias.s: New test
608 * testsuite/binutils-all/mips/mips.exp: Run the new tests.
610 2022-03-04 Simon Marchi <simon.marchi@polymtl.ca>
612 * readelf.c (process_dynamic_section): Fix indentation.
614 2022-02-09 Nick Clifton <nickc@redhat.com>
616 * README-how-to-make-a-release: Update after the 2.38 release.
618 2022-01-27 Nick Clifton <nickc@redhat.com>
620 * po/sv.po: Updated Swedish translation.
622 2022-01-24 Nick Clifton <nickc@redhat.com>
624 * po/bg.po: Updated Bulgarian translation.
625 * po/fr.po: Updated French translation.
626 * po/ro.po: Updated Romanian translation.
627 * po/uk.po: Updated Ukranian translation.
629 2022-01-22 Martin Storsjö <martin@martin.st>
631 * dlltool.c (main): Allow inferring tmp_prefix from the dll name
634 2022-01-22 Nick Clifton <nickc@redhat.com>
636 * configure: Regenerate.
637 * po/binutils.pot: Regenerate.
639 2022-01-22 Nick Clifton <nickc@redhat.com>
641 * 2.38 release branch created.
643 2022-01-17 Nick Clifton <nickc@redhat.com>
645 * Makefile.in: Regenerate.
647 2022-01-11 Fangrui Song <maskray@google.com>
650 * ar.c (long_options): Add --thin.
651 (usage) Add --thin. Deprecate -T without diagnostics.
652 * doc/binutils.texi: Add doc.
653 * NEWS: Mention --thin.
654 * binutils/testsuite/binutils-all/ar.exp: Add tests.
656 2022-01-11 Martin Storsjö <martin@martin.st>
658 * dlltool.c (main): If a prefix has not been provided, attempt to
659 use a deterministic one based upon the dll name.
661 2022-01-07 Pavel Mayorov <pmayorov@cloudlinux.com>
664 * dwarf.c: Revert previous delta.
665 (debug_get_real_type): Reject indirect types that point to
667 (debug_get_type_name, debug_get_type_size, debug_write_type):
670 2022-01-06 Nick Clifton <nickc@redhat.com>
672 * debug.c (debug_write_type): Allow for malicious recursion via
673 indirect debug types.
675 2022-01-04 Nick Clifton <nickc@redhat.com>
678 * dwarf.c (load_build_id_debug_file): Remove spurious printf.
680 2021-12-16 Nick Clifton <nickc@redhat.com>
683 * dwarf.c (load_build_id_debug_file): New function.
684 (try_build_id_prefix): New function.
685 (check_for_and_load_links): Call load_build_id_debug_file.
686 (debug_displays): Add entry for .note.gnu.build-id.
687 * dwarf.h (enum dwarf_section_display_enum): Add
689 * testsuite/binutils-all/debuginfod.exp (test_fetch_debuglink):
690 Fix regexp for loads via debuglink section.
692 2021-12-03 Chenghua Xu <xuchenghua@loongson.cn>
694 * MAINTAINERS: Add myself and Zhensong Liu
695 as the LoongArch maintainer.
697 2021-12-02 Nick Clifton <nickc@redhat.com>
700 * dwarf.c (process_cu_tu_index): Add test for overruning section
701 whilst processing slots.
703 2021-11-30 Roland McGrath <mcgrathr@google.com>
705 * doc/local.mk: Give each man page target its missing dependency on
708 2021-11-30 Nick Clifton <nickc@redhat.com>
710 * dwarf.c (find_debug_info_for_offset): Use dwarf_vma type for
711 offsets, sizes and ranges.
712 (display_loc_list): Likewise. Also use print_dwarf_vma to print
714 (display_loclists_list): Likewise.
715 (display_loc_list_dwo): Likewise.
716 (display_debug_str): Likewise.
717 (display_debug_aranges): Likewise.
718 (display_debug_ranges_list): Likewise.
719 (display_debug_rnglists_list): Likewise.
720 (display_debug_ranges): Likewise.
722 2021-11-29 Nick Clifton <nickc@redhat.com>
725 * strings.c (usage): Update desciption of -n option.
726 * doc/binutils.texi: Likewise.
728 2021-11-24 Nick Clifton <nickc@redhat.com>
731 * sysdump.c (getCHARS): Check for an out of bounds read.
733 2021-11-16 Fangrui Song <maskray@google.com>
735 * readelf.c (enum relocation_type): New.
736 (slurp_relr_relocs): New.
737 (dump_relocations): Change is_rela to rel_type.
739 (dynamic_relocations): Add DT_RELR.
740 (process_relocs): Check SHT_RELR and DT_RELR.
741 (process_dynamic_section): Store into dynamic_info for
742 DT_RELR/DT_RELRENT/DT_RELRSZ.
744 2021-11-09 Nick Clifton <nickc@redhat.com>
746 * nm.c: Add --unicode option to control how unicode characters are
748 * objdump.c: Likewise.
749 * readelf.c: Likewise.
750 * strings.c: Likewise.
751 * binutils.texi: Document the new feature.
752 * NEWS: Document the new feature.
753 * testsuite/binutils-all/unicode.exp: New file.
754 * testsuite/binutils-all/nm.hex.unicode
755 * testsuite/binutils-all/strings.escape.unicode
756 * testsuite/binutils-all/objdump.highlight.unicode
757 * testsuite/binutils-all/readelf.invalid.unicode
759 2021-11-03 Tom Tromey <tromey@adacore.com>
761 * dwarf.c (display_debug_loc): Use section name in warnings.
763 2021-10-25 Nick Alcock <nick.alcock@oracle.com>
765 * objdump.c (usage): --ctf now has an optional argument.
766 (main): Adjust accordingly.
767 (dump_ctf): Default it.
768 * doc/ctf.options.texi: Adjust.
770 2021-10-25 Nick Alcock <nick.alcock@oracle.com>
772 * objdump.c (usage): --ctf-parent now takes a name, not a section.
773 (dump_ctf): Don't open a separate section; use the parent_name in
774 ctf_dict_open instead. Use ctf_archive_next, not ctf_archive_iter,
775 so we can pass down a member count.
776 (dump_ctf_archive_member): Add the member count; don't return
777 anything. Import parents into children no matter what the
778 parent's name, while still avoiding displaying the header for the
779 common parent name of ".ctf".
780 * readelf.c (usage): Adjust similarly.
781 (dump_section_as_ctf): Likewise.
782 (dump_ctf_archive_member): Likewise. Never stop iterating over
783 archive members, even if ctf_dump of one member fails.
784 * doc/ctf.options.texi: Adjust.
786 2021-10-19 Nick Clifton <nickc@redhat.com>
788 * nm.c (filter_symbols): Test for a NULL name before checking to
789 see if the symbol is __gnu_lto_slim.
790 * objcopy.c (filter_symbols): Likewise.
792 2021-09-30 Nick Clifton <nickc@redhat.com>
794 * objcopy.c (filter_symbols): Fail if attempting to dredefine
795 symbols in an LTO object file.
797 2021-09-27 Nick Alcock <nick.alcock@oracle.com>
799 * configure: Regenerate.
801 2021-09-20 Andrew Burgess <andrew.burgess@embecosm.com>
803 * testsuite/binutils-all/riscv/riscv.exp: New file.
804 * testsuite/binutils-all/riscv/unknown.d: New file.
805 * testsuite/binutils-all/riscv/unknown.s: New file.
807 2021-09-07 Luis Machado <luis.machado@linaro.org>
809 Revert: [AArch64] MTE corefile support
811 2021-05-21 Luis Machado <luis.machado@linaro.org>
813 * readelf.c (get_note_type): Handle NT_MEMTAG note types.
815 2021-08-11 Nick Clifton <nickc@redhat.com>
817 * po/pt.po: Updated Portuguese translation.
819 2021-08-10 Nick Clifton <nickc@redhat.com>
821 * po/sr.po: Updated Serbian translation.
823 2021-07-16 Nick Clifton <nickc@redhat.com>
825 * po/sv.po: Updated Swedish translation.
827 2021-07-14 Clément Chigot <clement.chigot@atos.net>
829 * dwarf.h (struct dwarf_section): Add XCOFF name.
830 * dwarf.c (struct dwarf_section_display): Update.
831 * objdump.c (load_debug_section): Add XCOFF name handler.
832 (dump_dwarf_section): Likewise.
834 2021-07-12 Nick Clifton <nickc@redhat.com>
836 * po/fr.po: Updated French translation.
838 2021-07-10 Alan Modra <amodra@gmail.com>
841 * dwarf.c (display_discr_list): Remove assertions. Delete "end"
842 parameter, use initial "data" pointer as the end. Formatting.
843 Don't count down bytes as they are read.
844 (read_and_display_attr_value): Adjust display_discr_list call.
845 (read_and_print_leb128): Don't pass __FILE__ and __LINE__ to
847 * dwarf.h (report_leb_status): Don't report file and line
848 numbers. Delete file and lnum parameters,
849 (READ_ULEB, READ_SLEB): Adjust.
851 2021-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
853 * configure.ac: Check for strnlen declaration.
854 * configure, config.in: Regenerate.
856 2021-07-05 Alan Modra <amodra@gmail.com>
859 * dwarf.c (get_type_abbrev_from_form): Add cu_end parameter.
860 Check DW_FORM_ref1 etc. arg against cu_end rather than end of
861 section. Adjust all callers.
863 2021-07-03 Nick Clifton <nickc@redhat.com>
865 * configure: Regenerate.
866 * po/opcodes.pot: Regenerate.
867 * README-how-to-make-a-release: Update.
869 2021-07-03 Nick Clifton <nickc@redhat.com>
871 * 2.37 release branch created.
873 2021-07-02 Alan Modra <amodra@gmail.com>
876 * dwarf.c (get_type_signedness): Don't run off end of buffer
877 printing DW_FORM_string attribute.
879 2021-07-01 Nick Clifton <nickc@redhat.com>
882 * testsuite/binutils-all/debuginfod.exp: Replace -wK with -wk.
884 2021-07-01 Andrei Homescu <ah@immunant.com>
886 * readelf.c (process_archive): Reset file position to the
887 beginning when calling process_object for thin archive members.
888 * testsuite/binutils-all/readelf.exp: Add test.
889 * testsuite/binutils-all/readelf.h.thin: New file.
891 2021-06-30 Tom Tromey <tom@tromey.com>
893 * dwarf.c (read_and_display_attr_value): Handle
894 DW_FORM_implicit_const.
896 2021-06-30 Richard Henderson <richard.henderson@linaro.org>
898 * dwarf.c (display_debug_frames): Both DW_CFA_def_cfa_sf
899 and DW_CFA_def_cfa_offset_sf have a signed offset.
901 2021-06-19 Alan Modra <amodra@gmail.com>
903 * dwarf.c (display_debug_lines_decoded): Use memcpy rather than
904 strncpy when trimming file name length to MAX_FILENAME_LENGTH.
905 Don't make an unnecessary copy when length is good.
907 2021-06-18 H.J. Lu <hongjiu.lu@intel.com>
909 * readelf.c (print_gnu_property_note): Handle
910 GNU_PROPERTY_UINT32_AND_LO, GNU_PROPERTY_UINT32_AND_HI,
911 GNU_PROPERTY_UINT32_OR_LO and GNU_PROPERTY_UINT32_OR_HI.
913 2021-06-15 Nick Clifton <nickc@redhat.com>
915 * readelf.c (get_note_type): Add support for NT_GO_BUILDID.
917 2021-06-15 Alan Modra <amodra@gmail.com>
919 * readelf.c (locate_dynamic_section, is_pie): New functions.
920 (get_file_type): Replace e_type parameter with filedata. Call
921 is_pie for ET_DYN. Update all callers.
922 (process_program_headers): Use local variables dynamic_addr and
923 dynamic_size, updating filedata on exit from function. Set
924 dynamic_size of 1 to indicate no dynamic section or segment.
925 Update tests of dynamic_size throughout.
926 * testsuite/binutils-all/x86-64/pr27708.dump: Update expected output.
928 2021-06-14 Eric Botcazou <ebotcazou@adacore.com>
930 * dwarf.c (struct abbrev_attr): Change type of implicit_const.
931 (add_abbrev_attr): Likewise.
932 (process_abbrev_set): Likewise.
933 (display_debug_abbrev): Adjust to above change.
935 2021-06-12 Alan Modra <amodra@gmail.com>
937 * readelf.c (process_file_header): Don't clear section_headers.
939 2021-06-12 Alan Modra <amodra@gmail.com>
941 * readelf.c (get_section_headers): Don't test e_shoff here, leave
942 that to get_32bit_section_headers or get_64bit_section_headers.
943 (process_object): Throw away section header read to print file
946 2021-06-11 Alan Modra <amodra@gmail.com>
948 * readelf.c (struct filedata): Move archive_file_offset and
949 archive_file_size earlier.
950 (free_filedata): Clear using memset.
952 2021-06-11 Alan Modra <amodra@gmail.com>
954 * readelf.c (GET_ELF_SYMBOLS): Delete. Replace with..
955 (get_elf_symbols): ..this new function throughout.
956 (get_32bit_section_headers): Don't free section_headers.
957 (get_64bit_section_headers): Likewise.
958 (get_section_headers): New function, use throughout in place of
959 32bit and 64bit variants.
960 (get_dynamic_section): Similarly.
961 (process_section_headers): Don't free filedata memory here.
962 (get_file_header): Don't get section headers here..
963 (process_object): ..Read them here instead. Don't exit without
964 freeing filedata memory.
966 2021-06-09 Nick Clifton <nickc@redhat.com>
968 * MAINTAINERS: Remove Daniel Jacobwitz from the maintainers list.
970 2021-06-07 Jan Beulich <jbeulich@suse.com>
972 * dwarf.c (display_debug_aranges): Add u suffix to constant.
974 2021-05-29 Alan Modra <amodra@gmail.com>
976 * objdump (usage): Add missing \n.
978 2021-05-29 Alan Modra <amodra@gmail.com>
980 * readelf.c (parse_args): Call dwarf_select_sections_all on
981 --debug-dump without optarg.
982 (usage): Associate -w and --debug-dump options closely.
983 Split up help message. Remove extraneous blank lines around
985 * objdump.c (usage): Similarly.
987 2021-05-29 Maciej W. Rozycki <macro@orcam.me.uk>
989 * testsuite/binutils-all/mips/mips-xpa-virt-1.d: Correct CFC0
991 * testsuite/binutils-all/mips/mips-xpa-virt-3.d: Likewise.
993 2021-05-29 Maciej W. Rozycki <macro@orcam.me.uk>
995 * testsuite/binutils-all/mips/mips-xpa-virt-1.d: Use `mips:3000'
996 machine for disassembly.
997 * testsuite/binutils-all/mips/mips-xpa-virt-2.d: Likewise.
998 * testsuite/binutils-all/mips/mips-xpa-virt-3.d: Likewise.
999 * testsuite/binutils-all/mips/mips-xpa-virt-4.d: Likewise.
1001 2021-05-28 H.J. Lu <hongjiu.lu@intel.com>
1004 * readelf.c (decode_x86_feature_2): Revert commit 50c95a739c9.
1006 2021-05-27 Alan Modra <amodra@gmail.com>
1008 * readelf (usage): Order -w letters to match --debug-dump= and
1009 move common '=' for --debug-dump out of brackets.
1011 2021-05-26 H.J. Lu <hongjiu.lu@intel.com>
1014 * readelf.c (decode_x86_feature_2): Support
1015 GNU_PROPERTY_X86_FEATURE_2_CODE16.
1017 2021-05-23 Tiezhu Yang <yangtiezhu@loongson.cn>
1019 * readelf.c (get_machine_name): Change Loongson Loongarch to
1022 2021-05-21 Luis Machado <luis.machado@linaro.org>
1024 * readelf.c (get_note_type): Add missing NT_ARM_* entries.
1026 2021-05-21 Luis Machado <luis.machado@linaro.org>
1028 * readelf.c (get_note_type): Handle NT_MEMTAG note types.
1030 2021-05-19 Eli Schwartz <eschwartz@archlinux.org>
1032 * dwarf.c (ENABLE_CHECKING): Define to 0 if not previously set.
1034 2021-05-19 Alan Modra <amodra@gmail.com>
1037 * dwarf.c (get_type_abbrev_from_form): Replace cu_offset_return
1038 param with map_return, and return map for DW_FORM_ref_addr.
1039 (get_type_signedness): Adjust calls to get_type_abbrev_from_form.
1040 Pass returned cu map start and end to recursive call.
1041 (read_and_display_attr_value): Similarly.
1043 2021-05-19 Alan Modra <amodra@gmail.com>
1046 * sysdump.c (getBARRAY): Sanity check size against max.
1047 (getINT): Avoid UB shift left.
1049 2021-05-15 Alan Modra <amodra@gmail.com>
1051 * dwarf.c (process_cu_tu_index): Avoid pointer UB. Use _mul_overflow.
1054 2021-05-15 Alan Modra <amodra@gmail.com>
1056 * dwarf.c (display_gdb_index): Avoid pointer UB and overflow in
1057 length calculations.
1059 2021-05-15 Alan Modra <amodra@gmail.com>
1061 * dwarf.c (display_debug_names): Complain when header length is
1062 too small. Avoid pointer UB. Sanity check augmentation string,
1063 CU table, TU table and foreign TU table sizes.
1065 2021-05-15 Alan Modra <amodra@gmail.com>
1067 * dwarf.c (display_debug_frames): Delete initial_length_size.
1068 Avoid pointer UB. Constrain data reads to length given in header.
1069 Sanity check cie header length. Only skip up to next FDE on
1070 finding augmentation data too long.
1072 2021-05-15 Alan Modra <amodra@gmail.com>
1074 * dwarf.c (read_cie): Add more sanity checks to ensure data
1075 pointer is not bumped past end.
1077 2021-05-15 Alan Modra <amodra@gmail.com>
1079 * dwarf.c (display_debug_ranges): Delete initial_length_size.
1080 Correct fallback size calculated on finding a reloc. Constrain
1081 data reads to length given in header. Avoid pointer UB.
1083 2021-05-15 Alan Modra <amodra@gmail.com>
1085 * dwarf.c (display_debug_rnglists_list): Avoid pointer UB.
1087 2021-05-15 Alan Modra <amodra@gmail.com>
1089 * dwarf.c (display_debug_str_offsets): Constrain reads to length
1092 2021-05-15 Alan Modra <amodra@gmail.com>
1094 * dwarf.c (display_debug_aranges): Delete initial_length_size.
1095 Use end_ranges to constrain data reads to header length. Avoid
1098 2021-05-15 Alan Modra <amodra@gmail.com>
1100 * dwarf.c (display_loc_list): Avoid pointer UB. Correct check
1101 before reading uleb length. Warn on excess length.
1103 2021-05-15 Alan Modra <amodra@gmail.com>
1105 * dwarf.c (display_debug_macro): Print strings that might not
1106 be zero terminated with %*s. Don't bump curr if unterminated.
1108 2021-05-15 Alan Modra <amodra@gmail.com>
1110 * dwarf.c (get_line_filename_and_dirname): Delete initial_length_size.
1111 Simplify length sanity check, and check for too small lengths.
1112 Constrain data reads to header length. Avoid pointer UB.
1114 2021-05-15 Alan Modra <amodra@gmail.com>
1116 * dwarf.c (display_debug_macinfo): Print strings that might not
1117 be zero terminated with %*s. Don't bump curr if unterminated.
1119 2021-05-15 Alan Modra <amodra@gmail.com>
1121 * dwarf.c (display_debug_pubnames_worker): Delete initial_length_size.
1122 Simplify length check. Constrain reads to length given by header.
1124 2021-05-15 Alan Modra <amodra@gmail.com>
1126 * dwarf.c (display_debug_lines_decoded): Don't use strnlen when
1127 we have already checked for NUL termination.
1129 2021-05-15 Alan Modra <amodra@gmail.com>
1131 * dwarf.c (read_debug_line_header): Delete initial_length_size.
1132 Avoid pointer UB. Keep within length specified by header.
1135 2021-05-15 Alan Modra <amodra@gmail.com>
1137 * dwarf.c (process_debug_info): Always do the first CU length
1138 scan for sanity checks. Remove initial_length_size var and
1139 instead calculate end_cu. Use end_cu to limit data reads.
1140 Delete now dead code checking length.
1142 2021-05-15 Alan Modra <amodra@gmail.com>
1144 * dwarf.c (SAFE_BYTE_GET_INTERNAL): Assert only when ENABLE_CHECKING.
1146 2021-05-15 Alan Modra <amodra@gmail.com>
1148 * bucomm.h (_mul_overflow): Define.
1149 * dwarf.c (get_encoded_value): Avoid pointer UB.
1151 2021-05-13 Alan Modra <amodra@gmail.com>
1154 * dwarf.c (display_debug_str_offsets): Sanity check dwarf5
1157 2021-05-13 Alan Modra <amodra@gmail.com>
1160 * dwarf.c (display_debug_frames): Sanity check cie_off before
1161 attempting to read cie.
1163 2021-05-12 Alan Modra <amodra@gmail.com>
1165 * dwarf.c (process_extended_line_op): Don't bump data pointer past
1166 end when strnlen doesn't find string terminator.
1167 (decode_location_expression): Remove dead code.
1168 (skip_attr_bytes): Remove const from end param. Ensure data
1169 pointer doesn't pass end.
1170 (get_type_signedness): Remove const from end param.
1171 (read_and_display_attr_value): Ensure data pointer doesn't pass end.
1172 (display_debug_lines_raw, display_debug_lines_decoded): Likewise.
1173 (display_debug_pubnames_worker): Likewise.
1174 (display_debug_pubnames_worker): Use SAFE_BYTE_GET_AND INC rather
1175 than blindly incrementing data pointer.
1176 (display_debug_addr, display_debug_str_offsets): Likewise. Don't
1177 compare pointers, compare lengths.
1179 2021-05-12 Alan Modra <amodra@gmail.com>
1181 * dwarf.c (SAFE_BYTE_GET_INTERNAL): Define.
1182 (SAFE_BYTE_GET, SAFE_BYTE_GET_AND_INC): Define using the above.
1183 (SAFE_SIGNED_BYTE_GET, SAFE_SIGNED_BYTE_GET_AND_INC): Likewise.
1184 (display_discr_list): Use SAFE_BYTE_GET_AND_INC rather than
1185 SAFE_BYTE_GET followed by increment.
1186 (process_debug_info): Likewise, and test bytes remaining before
1187 incrementing section_begin rather than using pointer comparison.
1188 (display_debug_names): Pass lvalue as SAFE_BYTE_GET PTR.
1189 (process_cu_tu_index): Likewise for SAFE_BYTE_GET_AND_INC.
1191 2021-05-12 Alan Modra <amodra@gmail.com>
1193 * dwarf.c (dwarf_vmatoa64, SAFE_BYTE_GET64, add64): Delete.
1194 (skip_attr_bytes): Replace use of SAFE_BYTE_GET64 with
1195 SAFE_BYTE_GET_AND_INC.
1196 (read_and_display_attr_value): Likewise. Print using dwarf_vmatoa.
1197 (process_debug_info, process_cu_tu_index): Likewise.
1198 * elfcomm.c (byte_put, byte_put_little_endian, byte_put_big_endian),
1199 (byte_get, byte_get_little_endian, byte_get_big_endian),
1200 (byte_get_signed): Make size param unsigned. Remove code dealing
1201 with 4-byte elf_vma.
1202 (byte_get_64): Delete.
1203 * elfcomm.h (byte_put, byte_put_little_endian, byte_put_big_endian),
1204 (byte_get, byte_get_little_endian, byte_get_big_endian),
1205 (byte_get_signed): Update prototypes.
1206 (byte_get_64): Delete.
1208 2021-05-12 Alan Modra <amodra@gmail.com>
1211 * dwarf.c (display_debug_frames): Don't compare pointers derived
1212 from user input. Test offset against bounds instead.
1214 2021-05-12 Alan Modra <amodra@gmail.com>
1217 * dwarf.c (display_formatted_table): Test for data >= end rather
1219 (process_extended_line_op): Likewise.
1220 (display_debug_lines_raw): Likewise.
1221 (display_debug_lines_decoded): Likewise.
1223 2021-05-12 Alan Modra <amodra@gmail.com>
1226 * dwarf.c (fetch_indexed_string): Correct length sanity checks.
1227 Sanity check section size for version and padding too. Correct
1228 index sanity check. Handle multiple tables in .debug_str_offsets.
1230 2021-05-11 Hans-Peter Nilsson <hp@axis.com>
1232 * dwarf.c (process_abbrev_set): Properly parenthesize before
1233 casting to unsigned long.
1235 2021-05-11 Alan Modra <amodra@gmail.com>
1238 * dwarf.c (process_abbrev_set): Replace start and end parameters
1239 with section, abbrev_base, abbrev_size, abbrev_offset. Update
1240 all callers. Sanity check parameters correctly and emit warnings
1242 (process_debug_info): ..here.
1244 2021-05-10 Thomas Wolff <towo@towo.net>
1249 * windres.c (quot): Revert previous delta. Do not use double
1250 quotes when spaces are detected in options.
1251 * doc/binutils.texi (windres): Remove suggestion that the
1252 --preprocessor option can take arguments.
1254 2021-05-10 Alan Modra <amodra@gmail.com>
1256 * dwarf.c (SAFE_BYTE_GET): Check bounds by subtracting amount from
1257 END rather than adding amount to PTR.
1258 (SAFE_SIGNED_BYTE_GET, SAFE_BYTE_GET64): Likewise.
1260 2021-05-09 Alan Modra <amodra@gmail.com>
1262 * objcopy.c (eq_string): Delete.
1263 (create_symbol_htab): Use htab_eq_string.
1265 2021-05-08 Mike Frysinger <vapier@gentoo.org>
1267 * README-how-to-make-a-release: Update html & pdf entries.
1269 2021-05-08 Mike Frysinger <vapier@gentoo.org>
1271 * doc/Makefile.am (html-local, binutils/index.html): New targets.
1272 * doc/Makefile.in: Regenerate.
1274 2021-05-08 Mike Frysinger <vapier@gentoo.org>
1276 * doc/Makefile.am (AM_MAKEINFOFLAGS): Add --no-split.
1277 * doc/Makefile.in: Regenerate.
1279 2021-05-07 Nick Clifton <nickc@redhat.com>
1281 * readelf.c (no_processor_specific_unwind): New function.
1282 (process_unwind): Use no_processor_specific_unwind for X86
1285 2021-05-07 Michael Forney <mforney@mforney.org>
1287 * dwarf.c: Don't omit second operand of '?' operator.
1289 2021-04-30 Nick Clifton <nickc@redhat.com>
1292 * dwarf.c (load_debug_sup_file): Allocate memory for filename in
1295 2021-04-29 Nick Clifton <nickc@redhat.com>
1298 * doc/binutils.texi (windres): Correct the description of the
1299 default value of the --preprocessor argument.
1301 2021-04-27 Nick Clifton <nickc@redhat.com>
1304 * dwarf.c (parse_gnu_debuglink): Reject empty names.
1305 (parse_gnu_debugaltlink): Likewise.
1307 2021-04-22 Clément Chigot <clement.chigot@atos.net>
1309 * od-xcoff.c (dump_xcoff32_symbols): Adapt to new
1312 2021-04-21 Nick Lott <nick.lott@gmail.com>
1315 * readelf.c (sym_base): New variable.
1316 (enum print_mode): Add more modes.
1317 (print_vma): Add suport for new modes.
1318 (options): Add sym-base.
1319 (usage): Add sym-base.
1320 (parse_args): Add support for --sym-base.
1321 (print_dynamic_symbol_size): New function.
1322 (print_dynamic_symbol): Use new function.
1323 * doc/binutils.texi: Document the new feature.
1324 * NEWS: Mention the new feature.
1326 2021-04-21 Nick Clifton <nickc@redhat.com>
1328 * testsuite/binutils-all/mips/global-local-symtab-sort-n64t.d:
1329 Adjust expected output to allow for named section symbols.
1330 * testsuite/binutils-all/mips/global-local-symtab-sort-o32t.d:
1332 * testsuite/binutils-all/readelf.s-64: Likewise.
1333 * testsuite/binutils-all/readelf.ss-64-unused: Likewise.
1334 * testsuite/binutils-all/readelf.ss-tmips: Likewise.
1335 * testsuite/binutils-all/readelf.ss-unused: Likewise.
1337 2021-04-21 Luo Longjun <luolongjun@huawei.com>
1339 * readelf.c (print_dynamic_symbol): Print the section name for
1340 section symbols without a name of their own.
1342 2021-04-20 Andreas Krebbel <krebbel@linux.ibm.com>
1344 * MAINTAINERS: Remove Martin Schwidefsky as s390 maintainer and
1345 add him to Past Maintainers.
1346 Update my email address.
1348 2021-04-19 Nick Clifton <nickc@redhat.com>
1351 * arsup.c (ar_addmod): Enable plugin support, if available.
1353 2021-04-19 Nick Clifton <nickc@redhat.com>
1355 * rename.c: (get_stat_atime_ns): Add prototype.
1356 (get_stat_mtime_ns): Add prototype.
1358 2021-04-16 Alan Modra <amodra@gmail.com>
1361 * rename.c (get_stat_atime, get_stat_mtime): Make static.
1362 (get_stat_atime_ns, get_stat_mtime_ns): Likewise.
1364 2021-04-15 Pekka Seppänen <pexu@sourceware.mail.kapsi.fi>
1367 * rename.c (get_stat_atime_ns): Add ATTRIBUTE_UNUSED.
1368 (get_stat_mtime_ns): Likewise.
1370 2021-04-15 Alan Modra <amodra@gmail.com>
1373 * configure.ac: Check for sys/time.h and utimensat. Use standard
1374 checks for mkstemp and mkdtemp. Whitespace. Check for nanosecond
1375 members of struct stat.
1376 * rename.c: Prefer sys/time.h for utimes over utime.h for utime.
1377 (STAT_TIMESPEC, STAT_TIMESPEC_NS): Define
1378 (get_stat_atime_ns, get_stat_mtime_ns): New inline functions.
1379 (get_stat_atime, get_stat_mtime): Likewise.
1380 (set_times): Choose first available of utimensat, utimes, utime.
1381 Use above inline functions to set timespec and timeval values.
1382 * configure: Regenerate.
1383 * config.in: Regenerate.
1384 * testsuite/binutils-all/objcopy.exp (objcopy_test): Add test of
1385 file timestamp when --preserve-dates is used.
1387 2021-04-15 Alan Modra <amodra@gmail.com>
1390 * rename.c (smart_rename): When TO and FROM are equal, just set
1392 * objcopy.c (strip_main, copy_main): Always call smart_rename.
1394 2021-04-14 H.J. Lu <hongjiu.lu@intel.com>
1397 * testsuite/binutils-all/x86-64/pr27708.dump: New file.
1398 * testsuite/binutils-all/x86-64/pr27708.exe.bz2: Likewise.
1399 * testsuite/binutils-all/x86-64/x86-64.exp: Run binutils/27708
1402 2021-04-14 Mark Harmstone <mark@harmstone.com>
1405 * resbin.c (bin_to_res_version): Ignore any trailing bytes at the
1406 end of the structure.
1408 2021-04-14 Frederic Cambus <fred@statdns.com>
1410 * readelf.c (get_netbsd_elfcore_note_type): Remove unneeded #ifdef
1411 checks for NT_NETBSDCORE_AUXV and NT_NETBSDCORE_LWPSTATUS.
1413 2021-04-14 Alan Modra <amodra@gmail.com>
1416 * objdump.c (show_line): Don't limit paths to PATH_MAX.
1417 * readelf.c (struct filedata): Change program_interpreter from
1418 a char array to a char pointer.
1419 (process_program_headers): Sanity check PT_INTERP p_filesz.
1420 Malloc program_interpreter using p_filesz and read directly from
1422 (process_dynamic_section): Check program_interpreter is non-NULL.
1423 (free_filedata): New function, split out from..
1424 (process_object): ..here.
1425 (close_debug_file): Call free_filedata.
1426 * sysdep.h: Don't include sys/param.h.
1427 (PATH_MAX): Don't define.
1428 * configure.ac: Don't check for sys/param.h.
1429 * configure: Regenerate.
1431 2021-04-13 Frederic Cambus <fred@statdns.com>
1433 * readelf.c (process_netbsd_elf_note): Remove now unneeded #ifdef
1434 check for NT_NETBSD_PAX.
1436 2021-04-12 Alan Modra <amodra@gmail.com>
1438 * configure.ac (--enable-checking): Add support.
1439 * config.in: Regenerate.
1440 * configure: Regenerate.
1442 2021-04-09 Alan Modra <amodra@gmail.com>
1444 * objdump.c (struct objdump_disasm_info): Delete dynrelbuf and
1446 (find_symbol_for_address): Adjust for dynrelbuf and dynrelcount move.
1447 (disassemble_section, disassemble_data): Likewise.
1449 2021-04-06 Alan Modra <amodra@gmail.com>
1451 * objdump.c (objdump_symbol_at_address): Return asymbol*.
1453 2021-04-06 Alan Modra <amodra@gmail.com>
1455 * NEWS: Mention C99 requirement.
1456 * README: Likewise. Modernise examples and "Reporting bugs".
1458 2021-04-05 Alan Modra <amodra@gmail.com>
1460 * configure.ac: Assume long long is available. Don't test for
1461 strings.h, stdlib.h, limits.h, locale.h, or wchar.h. Check
1462 inttypes.h, stdint.h, sys/stat.h and sys/types.h. Don't check for
1463 strcoll, setlocale, setmode or location of time_t. Don't check
1464 for fprintf, getenv, snprintf, strnlen, strstr or vsnprintf decls.
1465 (AC_ISC_POSIX, AXC_HEADER_STRING, AC_FUNC_ALLOCA): Don't invoke.
1466 * sysdep.h: Don't include alloca-conf.h, include config.h instead.
1467 Test HAVE_SYS_TYPES_H and reorder includes. Include limits.h,
1468 locale.h, string.h and stdlib.h unconditionally. Remove various
1469 fallback declarations. Assume long long is available.
1470 * addr2line.c: Don't test HAVE_SETLOCALE.
1472 * coffdump.c: Likewise.
1473 * dlltool.c: Likewise.
1474 * dllwrap.c: Likewise.
1475 * elfedit.c: Likewise.
1477 * objcopy.c: Likewise.
1478 * objdump.c: Likewise.
1479 * readelf.c: Likewise.
1481 * srconv.c: Likewise.
1482 * strings.c: Likewise.
1483 * sysdump.c: Likewise.
1484 * windmc.c: Likewise.
1485 * windres.c: Likewise.
1486 * bucomm.c: Don't test HAVE_TIME_T_IN_TIME_H or HAVE_TIME_T_IN_TYPES_H.
1487 * dwarf.c: Include limits.h unconditionally. Assume long long
1489 * nm.c: Don't test HAVE_STRCOLL.
1490 * readelf.c: Don't test HAVE_WCHAR_H.
1491 * strings.c: Assume long long is available.
1492 * syslex.l: Include string.h unconditionally.
1493 * aclocal.m4: Regenerate.
1494 * config.in: Regenerate.
1495 * configure: Regenerate.
1496 * Makefile.in: Regenerate.
1497 * doc/Makefile.in: Regenerate.
1499 2021-04-01 Martin Liska <mliska@suse.cz>
1501 * elfcomm.h (strneq): Remove strneq and use startswith.
1502 * readelf.c (ia64_process_unwind): Likewise.
1503 (process_note): Likewise.
1505 2021-04-01 Martin Liska <mliska@suse.cz>
1507 * dllwrap.c: Use startswith function.
1508 * objcopy.c (is_dwo_section): Likewise.
1509 (handle_remove_section_option): Likewise.
1510 (copy_main): Likewise.
1511 * objdump.c (is_significant_symbol_name): Likewise.
1513 2021-04-01 Martin Liska <mliska@suse.cz>
1515 * dwarf.c (display_debug_lines_raw): Replace const_strneq with
1517 (display_debug_lines_decoded): Likewise.
1518 (display_debug_links): Likewise.
1519 * elfcomm.c (setup_archive): Likewise.
1520 * elfcomm.h (const_strneq): Likewise.
1521 * readelf.c (process_section_headers): Likewise.
1522 (slurp_ia64_unwind_table): Likewise.
1523 (slurp_hppa_unwind_table): Likewise.
1524 (decode_arm_unwind): Likewise.
1525 (display_debug_section): Likewise.
1526 (process_note): Likewise.
1528 2021-03-31 Alan Modra <amodra@gmail.com>
1530 * sysdep.h (POISON_BFD_BOOLEAN): Define.
1531 * addr2line.c, * ar.c, * arsup.c, * bfdtest2.c, * binemul.c,
1532 * binemul.h, * bucomm.c, * bucomm.h, * budbg.h, * coffgrok.c,
1533 * debug.c, * debug.h, * dlltool.c, * dwarf.c, * dwarf.h,
1534 * elfedit.c, * emul_aix.c, * mclex.c, * nm.c, * objcopy.c,
1535 * objdump.c, * od-macho.c, * prdbg.c, * rdcoff.c, * rddbg.c,
1536 * readelf.c, * rename.c, * stabs.c, * strings.c, * windint.h,
1537 * windmc.c, * windmc.h, * windres.c, * winduni.c,
1538 * wrstabs.c: Replace bfd_boolean with bool, FALSE with false,
1539 and TRUE with true throughout.
1541 2021-03-31 Alan Modra <amodra@gmail.com>
1543 * coffdump.c: Include stdint.h in place of bfd_stdint.h.
1544 * dwarf.c: Likewise.
1546 2021-03-31 Alan Modra <amodra@gmail.com>
1548 * prdbg.c (pr_function_type): Replace LITSTTCPY with strcpy.
1550 2021-03-29 Alan Modra <amodra@gmail.com>
1552 * dlltool.c (main): Don't use "boolean_condition ? TRUE : FALSE".
1553 * dwarf.c (read_and_display_attr_value): Likewise.
1554 (display_debug_str_offsets): Likewise.
1555 * objdump.c (dump_bfd): Likewise.
1556 * readelf.c (dump_section_as_strings): Likewise.
1557 (dump_section_as_bytes): Likewise.
1559 2021-03-29 Alan Modra <amodra@gmail.com>
1561 * objdump.c (process_links): Use type int.
1562 * readelf.c (request_dump): Don't increment do_dump, set it.
1563 * windint.h (target_is_bigendian): Use type bfd_boolean.
1564 * windmc.c (target_is_bigendian): Likewise.
1565 * windres.c (target_is_bigendian): Likewise.
1567 2021-03-22 Martin Liska <mliska@suse.cz>
1569 * dlltool.c (scan_drectve_symbols): Replace usage of CONST_STRNEQ
1571 * emul_aix.c (ar_emul_aix_parse_arg): Likewise.
1572 * objcopy.c (is_mergeable_note_section): Likewise.
1573 * objdump.c (dump_dwarf_section): Likewise.
1574 * prdbg.c (pr_method_type): Likewise.
1575 (pr_class_baseclass): Likewise.
1576 (tg_class_baseclass): Likewise.
1577 * readelf.c (process_lto_symbol_tables): Likewise.
1578 * stabs.c (ULLHIGH): Likewise.
1579 (parse_stab_argtypes): Likewise.
1580 (stab_demangle_function_name): Likewise.
1582 2021-03-19 H.J. Lu <hongjiu.lu@intel.com>
1584 * readelf.c (get_machine_name): Add EM_INTELGT.
1586 2021-03-18 Nick Clifton <nickc@redhat.com>
1589 * readelf.c (dump_section_as_strings): Mention separate filename.
1590 (dump_section_as_bytes): Likewise.
1591 (dump_section_as_ctf): Likewise.
1592 (initialise_dumkps_byname): Only issue a warning for missing
1593 sections if processing the main file.
1594 (process_section_contents): Only issue a warning for unsumped
1595 section numbers in the main file.
1596 (initialise_dump_sects): New function. Contains code extracted
1598 (process_object): ... here. Also call initialise_dump_sects for
1601 2021-03-16 Nick Clifton <nickc@redhat.com>
1604 * readelf.c (display_debug_section): Also retain .debug_addr
1607 2021-03-16 Nick Clifton <nickc@redhat.com>
1610 * readelf.c (process_section_contents): Only dump debug
1611 information for separate files unless process_links is enabled.
1612 (process_object): Always call process_section_contents for
1613 separate info files.
1615 2021-03-15 Nick Clifton <nickc@redhat.com>
1618 * nm.c (FORMAT_JUST_SYMBOLS): Define.
1619 (struct optput_fns): Add entry for FORMAT_JUST_SYMBOLS.
1620 (long_options): Add just-symbols.
1621 (set_output_format): Add support for just-symbols.
1622 (get_print_format): Likewise.
1623 (do_not_print_object_filename): New function.
1624 (do_not_print_archive_filename): New function.
1625 (do_not_print_archive_member): New function.
1626 (do_not_print_symbol_filename): New function.
1627 (just_print_symbol_name): New function.
1628 (main): Handle --just-symbols.
1629 * NEWS: Mention the new feature.
1630 * doc/binutils.texi: Document the new feature.
1632 2021-03-12 Clément Chigot <clement.chigot@atos.net>
1634 * od-xcoff.c: Replace RTB by TRL entry.
1636 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
1637 Andrew Burgess <andrew.burgess@embecosm.com>
1639 * readelf.c (get_note_type): Handle NT_RISCV_CSR.
1641 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
1642 Andrew Burgess <andrew.burgess@embecosm.com>
1644 * readelf.c (get_note_type): Handle NT_GDB_TDESC.
1646 2021-03-05 Nick Clifton <nickc@redhat.com>
1649 * dwarf.c (display_debug_macro): Handle the displaying of
1650 DW_MACRO_define_strp and DW_MACRO_undef_strp in v4
1651 .debug_macro.dwo sections.
1653 2021-03-04 Nick Clifton <nickc@redhat.com>
1656 * objdump.c (process_links): New variable.
1657 (usage): Add --process-links.
1658 (long_options): Likewise.
1659 (dump_bfd): Stop processing once the bfd has been loaded unless
1660 this is the main file or process_links has been enabled.
1661 (main): Handle the process-links option.
1662 * readelf.c (process_links): New variable.
1663 (struct filedata): Add is_separate field.
1664 (options): Add --process-links.
1666 (parse_args): Likewise.
1667 (process_file_header): Include the filename when dumping
1668 information for separate debuginfo files.
1669 (process_program_headers): Likewise.
1670 (process_section_headers): Likewise.
1671 (process_section_groups): Likewise.
1672 (process_relocs): Likewise.
1673 (process_dynamic_section): Likewise.
1674 (process_version_sections): Likewise.
1675 (display_lto_symtab): Likewise.
1676 (process_symbol_table): Likewise.
1677 (process_syminfo): Likewise.
1678 (initialise_dumps_by_name): Likewise.
1679 (process_section_contents): Likewise.
1680 (process_notes_at): Likewise.
1681 (process_notes): Likewise.
1682 (open_file): Add is_separate parameter. Use to initialise the
1683 is_separate field in the filedata structure.
1684 (open_deug): Update call to open_file.
1685 (process_object): Add processing of the contents of separate
1686 debuginfo files, gated by the process_links variable.
1687 (process_archive): Update call to open_file.
1688 (process_file): Initialise the is_separate field in the filedata
1690 * dwarf.c (load_separate_debug_info_file): Only report the
1691 loading of a separate file if debug links are being dumped.
1692 * objcopy.c (keep_section_symbols): New variable.
1693 (enum command_line_switch): Add OPTION_KEEP_SYMBOLS.
1694 (strip_options): Add keep-section-symbols.
1695 (copy_options): Likewise.
1696 (copy_usage): Likewise.
1697 (strip_usage): Likewise.
1698 (copy_object): Keep section symbols if requested by command line
1700 (strip_main): Handle --keep-section-symbols.
1701 (copy_main): Likewise.
1702 * doc/binutils.texi: Document the new options.
1703 * NEWS: Mention the new features.
1704 * testsuite/binutils-all/compress.exp (test_gnu_debuglink):
1705 Update options passed to objdump. Use diff rather than cmp to
1706 compare the dumped data.
1707 * testsuite/binutils-all/objdump.WK2: Update regexp.
1708 * testsuite/binutils-all/objdump.WK3: Update regexp.
1709 * testsuite/binutils-all/objdump.exp: Use --process-links
1710 instead of --dwarf=follow-links.
1711 * testsuite/binutils-all/readelf.exp (readelf_test): Include
1712 readelf's output in the log when the test fails.
1713 Add the -P option to the -wKis test.
1714 * testsuite/binutils-all/readelf.wKis: Update expected output.
1716 2021-03-03 Alan Modra <amodra@gmail.com>
1719 * objcopy.c (filter_symbols): Apply --weaken to undefined symbols.
1720 * NEWS: Mention feature.
1722 2021-03-01 H.J. Lu <hongjiu.lu@intel.com>
1725 * dwarf.c (load_separate_debug_info): Issue warning only if
1726 do_debug_links is set.
1727 * testsuite/binutils-all/compress.exp: Run objdump and readelf
1728 with missing debug file.
1730 2021-03-01 Alan Modra <amodra@gmail.com>
1733 * doc/binutils.texi: Add nm --with-symbol-versions and
1734 --without-symbol-versions documentation.
1735 * nm.c (with_symbol_versions): New variable.
1736 (enum long_option_values): Delete OPTION_WITH_SYMBOL_VERSIONS.
1737 (long_options): Make --with-symbol-versions entry twiddle the flag.
1738 Add --without-symbol-versions.
1739 (print_symname): Strip version when !with_symbol_versions. Add
1740 dynamic version info under control of with_symbol_versions.
1741 (main): Remove OPTION_WITH_SYMBOL_VERSIONS case.
1743 2021-02-26 Fangrui Song <maskray@google.com>
1746 * readelf.c (quiet): New option flag.
1747 (enum long_option_values): New enum to hold long option value.
1748 (long_options): Add --quiet.
1749 (usage): Mention --quiet.
1750 (display_rel_file): If quiet is enabled, suppress "no symbols".
1751 (main): Handle the new option.
1752 * NEWS: Mention --quiet.
1753 * docs/binutils.texi: Document --quiet.
1755 2021-02-26 Tom de Vries <tdevries@suse.de>
1757 * dwarf.c (display_debug_addr): Handle dwarf-5 .debug_addr bits.
1759 2021-02-26 Tom de Vries <tdevries@suse.de>
1762 * dwarf.c: (skip_attr_bytes): Add support for DW_FORM_str* and
1764 (read_and_display_attr_value): Likewise.
1766 2021-02-25 Nick Clifton <nickc@redhat.com>
1768 * dwarf.c (get_type_abbrev_from_form): Accept but ignore sup
1770 (read_and_display_attr_value): Handle sup forms.
1771 (display_debug_sup): New function. Displays the contents of a
1773 (load_debug_sup_file): New function. Loads the contents of a file
1774 referenced by a .debug_sup section.
1775 (check_for_and_load_links): Call load_debug_sup_file.
1776 (debug_displays): Add entry for .debug_sup.
1777 * dwarf.h (enum dwarf_section_display_enum): Add debug_sup.
1778 * readelf.c (process_section_headers): Add support for debug_sup.
1779 * doc/debug.options.texi: Note that the =links option will display
1780 the contents of .debug_sup sections.
1781 * NEWS: Mention the new support.
1783 2021-02-25 Alan Modra <amodra@gmail.com>
1786 * rename.c (simple_copy): Mark target_stat ATTRIBUTE_UNUSED.
1788 2021-02-24 Nick Clifton <nickc@redhat.com>
1791 * od-elf32_avr.c (elf32_avr_get_memory_usage): Check for overflows
1792 when adding together the section sizes.
1794 2021-02-24 Nick Clifton <nickc@redhat.com>
1796 * objcopy.c (merge_gnu_build_notes): Remove support for v1/v2 GNU
1798 * readelf.c (print_gnu_build_attribute_description): Likewise.
1800 2021-02-24 Alan Modra <amodra@gmail.com>
1801 Siddhesh Poyarekar <siddhesh@gotplt.org>
1804 * bucomm.h (smart_rename): Update prototype.
1805 * rename.c (smart_rename): Add fromfd and preserve_dates params.
1806 Pass fromfd and target_stat to simple_copy. Call set_times
1807 when preserve_dates.
1808 (simple_copy): Accept fromfd rather than from filename. Add
1809 target_stat param. Rewind fromfd rather than opening. Open
1810 "to" file without O_CREAT. Try to preserve S_ISUID and S_ISGID.
1811 * ar.c (write_archive): Rename ofd to tmpfd. Dup tmpfd before
1812 closing output temp file, and pass tmpfd to smart_rename.
1813 * arsup.c (temp_fd): Rename from real_fd.
1814 (ar_save): Dup temp_fd and pass to smart_rename.
1815 * objcopy.c (strip_main, copy_main): Likewise, and pass
1818 2021-02-24 Alan Modra <amodra@gmail.com>
1821 * rename.c: Tidy throughout.
1822 (smart_rename): Always copy. Remove windows specific code.
1824 2021-02-20 Alan Modra <amodra@gmail.com>
1826 * testsuite/lib/binutils-common.exp: Whitespace fixes throughout.
1827 (run_dump_test): Fail if expecting errors from a file like we do
1828 for error strings, if no error is seen.
1830 2021-02-19 Alan Modra <amodra@gmail.com>
1832 * testsuite/binutils-all/readelf.exp (pr26548): Run for 32-bit too.
1834 2021-02-19 Siddhesh Poyarekar <siddhesh@gotplt.org>
1836 * ar.c (write_archive): Remove TARGET_STAT. Adjust call to
1838 * arsup.c (ar_save): Likewise.
1839 * objcopy (strip_main): Don't copy TMPFD. Don't set times on
1840 temporary file and adjust call to SMART_RENAME.
1841 (copy_main): Likewise.
1842 * rename.c [!S_ISLNK]: Remove definitions.
1843 (try_preserve_permissions): Remove function.
1844 (smart_rename): Remove FD, PRESERVE_DATES arguments. Use
1845 rename system call only if TO does not exist.
1846 * bucomm.h (smart_rename): Adjust declaration.
1848 2021-02-18 Nick Clifton <nickc@redhat.com>
1850 * objcopy.c (merge_gnu_build_notes): Handle notes with a start
1851 address that is higher than the end address.
1853 2021-02-17 Alan Modra <amodra@gmail.com>
1855 * dwarf.c: Include limits.h.
1856 (CHAR_BIT): Provide backup define.
1857 (read_leb128): Use CHAR_BIT to size "result" in bits. Correct
1858 signed overflow checking.
1859 * testsuite/binutils-all/pr26548.s,
1860 * testsuite/binutils-all/pr26548.d,
1861 * testsuite/binutils-all/pr26548e.d: New tests.
1862 * testsuite/binutils-all/readelf.exp: Run them.
1863 (readelf_test): Drop unused "xfails" parameter. Update all uses.
1865 2021-02-16 Jan Beulich <jbeulich@suse.com>
1867 * dwarf.c (process_debug_info): Initialize "dwo_id".
1869 2021-02-15 Alan Modra <amodra@gmail.com>
1871 * objdump.c (load_specific_debug_section): Don't call
1872 bfd_cache_section_contents. Rearrange so that
1873 bfd_get_full_section_contents is not called on path where
1874 bfd_simple_get_relocated_section_contents is called.
1875 Don't set section->user_data.
1876 (free_debug_section): Always free section->start. Don't twiddle
1878 * readelf.c (load_specific_debug_section): Don't set user_data.
1879 * dwarf.h (struct dwarf_section): Remove use_data field.
1880 * dwarf.c (NO_ABBREVS, ABBREV): Adjust to suit.
1882 2021-02-15 Alan Modra <amodra@gmail.com>
1884 * testsuite/binutils-all/compress.exp: Remove nds32 xfails.
1885 * testsuite/binutils-all/objdump.exp: Likewise.
1887 2021-02-14 Alan Modra <amodra@gmail.com>
1889 * objdump.c (slurp_symtab): Don't add an extra entry for NULL
1890 to the symbol array.
1891 (slurp_dynamic_symtab): Likewise.
1892 (dump_bfd): Formatting. Copy terminating NULL from extra_syms.
1894 2021-02-14 Alan Modra <amodra@gmail.com>
1896 * Makefile.in: Regenerate.
1897 * doc/Makefile.in: Regenerate.
1899 2021-02-13 Mike Frysinger <vapier@gentoo.org>
1901 * aclocal.m4: Regenerate.
1903 2021-02-12 Nick Clifton <nickc@redhat.com>
1905 * configure.ac (follow-debug-links): Add option to enable or
1906 disable the following of debug links by default. Set the
1907 default for the option to be 'follow'.
1908 * dwarf.c (do_follow_links): Initialise with DEFAULT_FOR_FOLLOW_LINKS.
1909 (dwarf_select_sections_by_names): Add no-follow-links option.
1910 (dwarf_select_sections_by_letter): Add 'N' option.
1911 * objdump.c (usage): Add conditional text describing the
1912 follow links option.
1913 (slurp_symtab): Ensure that there is a NULL entry at the end
1914 of the symbol table.
1915 (slurp_dynamic_symtab): Likewise.
1916 (dump_bfd): When extending the symbol table, ensure that there
1917 is still a NULL entry at the end.
1918 * readelf.c (usage): Add conditional text describing the
1919 follow links option.
1920 * doc/binutils.texi: Update documentation for objcopy and
1922 * doc/debug.options.texi: Update documentation of the
1923 follow-links option.
1924 * config.in: Regenerate.
1925 * configure: Regenerate.
1926 * testsuite/binutils-all/compress.exp: Add the -WN option to
1927 objdump command lines that are not expecting to follow links.
1928 * testsuite/binutils-all/readelf.exp: Add the
1929 --debug-dump=no-follow-links option to tests that are not
1930 expecting to follow debug links.
1931 * NEWS: Mention the new behaviour.
1933 2021-02-12 Alan Modra <amodra@gmail.com>
1935 * testsuite/binutils-all/objcopy.exp: Report "unsupported" when
1936 gas or ld fails to build a testcase rather than "unresolved".
1937 Report "fail" when readelf returns an error status rather than
1939 * testsuite/binutils-all/ar.exp: Likewise.
1940 * testsuite/binutils-all/compress.exp: Likewise.
1941 * testsuite/binutils-all/readelf.exp: Likewise.
1943 2021-02-12 Alan Modra <amodra@gmail.com>
1945 * testsuite/binutils-all/pr25662.s: Replace "a" with "aaa" and
1946 "c" with "ccc" labels.
1948 2021-02-12 Tom de Vries <tdevries@suse.de>
1950 * dwarf.h (debug_info): Fix typo in comment.
1952 2021-02-12 Tom de Vries <tdevries@suse.de>
1954 * dwarf.c (display_debug_str_offsets): Handle multiple sets of
1957 2021-02-12 Tom de Vries <tdevries@suse.de>
1959 * dwarf.c (process_debug_info): Print DWO ID.
1961 2021-02-11 Alan Modra <amodra@gmail.com>
1966 * od-elf32_avr.c (elf32_avr_get_note_section_contents): Formatting.
1967 Use bfd_malloc_and_get_section.
1968 (elf32_avr_get_note_desc): Formatting. Return descsz. Sanity
1969 check namesz. Return NULL if descsz is too small. Ensure
1970 string table is terminated.
1971 (elf32_avr_get_device_info): Formatting. Add note_size param.
1973 (elf32_avr_dump_mem_usage): Adjust to suit.
1975 2021-02-10 Tom de Vries <tdevries@suse.de>
1978 * dwarf.c (load_dwo_file): Handle case that name is absolute path.
1980 2021-02-10 Tom de Vries <tdevries@suse.de>
1983 * dwarf.c (display_debug_ranges): Filter range lists according to
1986 2021-02-09 Tom de Vries <tdevries@suse.de>
1989 * dwarf.c (get_type_abbrev_from_form): Handle DW_FORM_ref_sig8.
1991 2021-02-09 Tom de Vries <tdevries@suse.de>
1994 * dwarf.c (process_debug_info): Handling DW_UT_skeleton and
1995 DW_UT_split_compile.
1997 2021-02-09 Alan Modra <amodra@gmail.com>
1999 * testsuite/lib/binutils-common.exp (supports_gnu_osabi): Remove
2002 2021-02-07 Alan Modra <amodra@gmail.com>
2004 * unwind-ia64.c (unw_print_xyreg): Don't leave output buffer
2005 uninitialised on invalid input.
2007 2021-02-06 Alan Modra <amodra@gmail.com>
2010 * rename.c (smart_rename): Test for existence and type of output
2013 2021-02-05 Nick Clifton <nickc@redhat.com>
2015 * MAINTAINERS: Remove Richard Henderson as the ALPHA maintainer.
2017 2021-02-05 Eli Zaretskii <eliz@gnu.org>
2020 * elfedit.c (check_file):
2021 * bucomm.c (get_file_size): Fix typos in comments.
2023 2021-02-05 Alan Modra <amodra@gmail.com>
2026 * arsup.c (ar_save): Use stat rather than lstat.
2028 2021-02-03 Alan Modra <amodra@gmail.com>
2033 * ar.c: Don't include libbfd.h.
2034 (write_archive): Replace xmalloc+strcpy with xstrdup. Use
2035 bfd_stat rather than fstat on iostream. Move stat and fd tests
2036 outside of _WIN32 ifdef. Delete skip_stat variable.
2037 * arsup.c (temp_name, real_ofd): New static variables.
2038 (ar_open): Use make_tempname and bfd_fdopenw.
2039 (ar_save): Adjust to suit ar_open changes. Move stat output
2041 * objcopy.c: Don't include libbfd.h.
2042 (copy_file): Use bfd_stat.
2044 2021-02-02 H.J. Lu <hongjiu.lu@intel.com>
2047 * readelf.c (process_section_headers): Add 'R' and 'D' to
2049 * testsuite/binutils-all/retain1a.d: Updated.
2051 2021-01-30 Nick Clifton <nickc@redhat.com>
2053 * README-how-to-make-a-release: Small updates after the 2.35.2
2056 2021-01-28 Eli Zaretskii <eliz@gnu.org>
2059 * windres.c (quot): Use double quotes to protect strings on
2062 2021-01-28 Eli Zaretskii <eliz@gnu.org>
2065 * bucomm.c (get_file_size): Add code to handle /dev/null on
2067 * elfedit.c (check_file): Likewise.
2069 2021-01-27 Nick Clifton <nickc@redhat.com>
2071 * objcopy.c (copy_main): Remove conditional control of the calls
2072 to free, simplifying the code and making it easier to detect
2075 2021-01-26 Frederic Cambus <fred@statdns.com>
2077 * objcopy.c (copy_main): Fix a double free happening when both
2078 --localize-symbols and --globalize-symbols options are invoked
2081 2021-01-24 Nick Clifton <nickc@redhat.com>
2083 * README-how-to-make-a-release: Minor updates after the 2.36 release.
2085 2021-01-16 Alan Modra <amodra@gmail.com>
2087 * readelf.c (uncompress_section_contents): Tidy inflateEnd result test.
2089 2021-01-15 Alan Modra <amodra@gmail.com>
2092 * readelf.c (uncompress_section_contents): Always call inflateEnd.
2094 2021-01-14 Alexandre Oliva <oliva@gnu.org>
2096 * MAINTAINERS: Update my email address.
2098 2021-01-14 Nick Clifton <nickc@redhat.com>
2100 * po/sv.po: Updated Swedish translation.
2102 2021-01-13 Alan Modra <amodra@gmail.com>
2104 * Makefile.in: Regenerate.
2105 * doc/Makefile.in: Regenerate.
2107 2021-01-13 Zebediah Figura <z.figura12@gmail.com>
2110 * dlltool.c (i386_trampoline): Adjust %rsp immediately on entry
2112 (i386_x64_trampoline): Add SEH annotations.
2113 (struct mac): Add how_seh field.
2114 (make_delay_head): If how_set field is true add SEh instructions.
2116 2021-01-12 H.J. Lu <hongjiu.lu@intel.com>
2119 * configure.ac: Use GNU_MAKE_JOBSERVER.
2120 * aclocal.m4: Regenerated.
2121 * configure: Likewise.
2123 2021-01-12 Nick Clifton <nickc@redhat.com>
2125 * po/fr.po: Updated French translation.
2127 2021-01-11 H.J. Lu <hongjiu.lu@intel.com>
2130 * configure: Regenerated.
2132 2021-01-11 Nick Clifton <nickc@redhat.com>
2134 * po/pt.po: Updated Portuguese translation.
2135 * po/sr.po: Updated Serbian translation.
2136 * po/uk.po: Updated Ukranian translation.
2138 2021-01-09 H.J. Lu <hongjiu.lu@intel.com>
2140 * configure: Regenerated.
2142 2021-01-09 Nick Clifton <nickc@redhat.com>
2144 * configure: Regenerate.
2145 * po/binutils.pot: Regenerate.
2147 2021-01-09 Nick Clifton <nickc@redhat.com>
2149 * 2.36 release branch crated.
2150 * README-how-to-make-a-release: Add note about updating Makefiles
2152 * BRANCHES: Add binutils-2.36-branch.
2154 2021-01-09 Alan Modra <amodra@gmail.com>
2156 * configure: Regenerate.
2158 2021-01-07 Samuel Thibault <samuel.thibault@gnu.org>
2160 * configure: Regenerate.
2162 2021-01-07 H.J. Lu <hongjiu.lu@intel.com>
2165 * objcopy.c (copy_object): Handle section symbols for
2166 non-relocatable inputs.
2167 * testsuite/binutils-all/readelf.exp (readelf_test): Check
2168 is_elf_unused_section_symbols.
2169 * testsuite/binutils-all/readelf.s-64: Updated.
2170 * testsuite/binutils-all/readelf.ss: Likewise.
2171 * testsuite/binutils-all/readelf.ss-64: Likewise.
2172 * testsuite/binutils-all/readelf.s-64-unused: New file.
2173 * testsuite/binutils-all/readelf.ss-64-unused: Likewise.
2174 * testsuite/binutils-all/readelf.ss-unused: Likewise.
2175 * testsuite/lib/binutils-common.exp
2176 (is_elf_unused_section_symbols): New proc.
2178 2021-01-06 Reuben Thomas <rrt@sc3d.org>
2180 * binutils/readelf.c: Correct grammar in comment.
2182 2021-01-01 Nicolas Boulenguez <nicolas@debian.org>
2184 * coffgrok.c (do_type): Correct spelling of auxiliary in errors.
2185 * doc/binutils.texi: Correct grammar.
2186 * readelf.c (process_version_sections): Correct spelling of auxiliary
2188 * testsuite/binutils-all/vax/objdump.exp: Comment grammar fix.
2190 2021-01-01 Alan Modra <amodra@gmail.com>
2192 Update year range in copyright notice of all files.
2194 For older changes see ChangeLog-2020
2196 Copyright (C) 2021-2023 Free Software Foundation, Inc.
2198 Copying and distribution of this file, with or without modification,
2199 are permitted in any medium without royalty provided the copyright
2200 notice and this notice are preserved.
2206 version-control: never