Skip to content
Snippets Groups Projects
  1. Mar 14, 2023
    • Alan Modra's avatar
      objdump segfault after symbol table error · c8b3d02c
      Alan Modra authored
      This memcpy segfaults if symcount is -1 (=> syms is NULL).
            memcpy (sorted_syms, symcount ? syms : dynsyms,
      	      sorted_symcount * sizeof (asymbol *));
      
      	* objdump.c (slurp_symtab): Don't leave symcount as -1 after
      	an error.
      	(slurp_dynamic_symtab): Likewise for dynsymcount.
      c8b3d02c
  2. Mar 09, 2023
    • Alan Modra's avatar
      objdump: report no section contents · 093b5677
      Alan Modra authored
      objdump's read_section is never used for bss-style sections, so to
      plug a hole that fuzzers have found, exclude sections without
      SEC_HAS_CONTENTS.
      
      	* objdump.c (read_section): Report and return an error on
      	a no contents section.
      093b5677
  3. Mar 06, 2023
    • Alan Modra's avatar
      Downgrade objdump fatal errors to non-fatal · ffdfc835
      Alan Modra authored
      	* objdump.c (slurp_symtab): Replace bfd_fatal calls with calls
      	to my_bfd_nonfatal.
      	(slurp_dynamic_symtab, disassemble_section): Likewise.
      	(disassemble_data): Replace fatal call with non_fatal call, and
      	set exit_status.  Don't error on non-existent dynamic relocs.
      	Don't call bfd_fatal on bfd_canonicalize_dynamic_reloc error.
      	(dump_ctf, dump_section_sframe): Replace bfd_fatal calls with
      	calls to my_bfd_nonfatal and clean up memory.
      	(dump_relocs_in_section): Don't call bfd_fatal on errors.
      	(dump_dynamic_relocs): Likewise.
      	(display_any_bfd): Make archive nesting too depp non_fatal.
      ffdfc835
    • Alan Modra's avatar
      Correct objdump command line error handling · a734d906
      Alan Modra authored
      bfd_nonfatal is used when a bfd error is to be printed.  That's not
      the case for command line errors.
      
      	* objdump.c (nonfatal): Rename to my_bfd_nonfatal.
      	(main): Use non_fatal and call usage on unrecognized arg errors.
      	Don't set exit_status when calling usage.
      a734d906
  4. Feb 22, 2023
  5. Feb 21, 2023
    • Alan Modra's avatar
      Re: objdump read_section_stabs · 45b36294
      Alan Modra authored
      Commit f9c36cc9 changed (and renamed) read_section_stabs with one
      difference in overall behaviour.  Previously read_section_stabs would
      return a NULL for an empty section, which was then treated the same as
      a missing section.  Now an empty section is recognized and dumped.
      This leads to NULL stabp and stabs_end in print_section_stabs.  Since
      stabs_end - STABSIZE is then a pointer to a very large address, the
      test "stabp < stabs_end - STABSIZE" succeeds.
      
      	* objdump.c (print_section_stabs): Correct STABSIZE comparison.
      45b36294
  6. Feb 16, 2023
    • Alan Modra's avatar
      Delete PROGRESS macros · 7ed4ad59
      Alan Modra authored
      I don't see much point in cluttering the source with the PROGRESS
      macros, which of course do nothing at all with the definitions in
      progress.h.  progress.h is unchanged apart from the copyright comment
      since commit d4d4c53c in 1994.
      
      binutils/
      	* ar.c: Don't include progress.h, or invoke PROGRESS macros.
      	* nm.c: Likewise.
      	* objcopy.c: Likewise.
      	* objdump.c: Likewise.
      gas/
      	* as.h: Don't include progress.h.
      	* as.c: Don't invoke PROGRESS macros.
      	* write.c: Likewise.
      include/
      	* progress.h: Delete.
      ld/
      	* ldmain.c: Don't include progress.h, or invoke PROGRESS macros.
      7ed4ad59
  7. Feb 15, 2023
    • Alan Modra's avatar
      objdump read_section_stabs · f9c36cc9
      Alan Modra authored
      This function is used to read sections other than stabs, and there is
      now another version of it that extracts different info from the bfd
      section.  Rename it and return the bfd section instead of assorted
      fields of the bfd section.
      
      	* objcopy.c (read_section): Renamed from read_section_stabs.
      	Delete size_ptr and entsize_ptr params, add contents param.
      	Return asection pointer.  Don't unnecessarily free contents on
      	failure from bfd_malloc_and_get_section.
      	(find_stabs_section): Use read_section.
      	(dump_ctf, dump_section_sframe): Likewise.
      	(read_section_sframe): Delete.
      f9c36cc9
    • Alan Modra's avatar
      objdump -G memory leak · 11066c2a
      Alan Modra authored
      	* objdump.c (find_stabs_section): Free stabs.
      11066c2a
  8. Feb 11, 2023
    • Alan Modra's avatar
      objdump -D of bss sections and -s with -j · 0a3137ce
      Alan Modra authored
      There is some inconsistency between the behaviour of objdump -D and
      objdump -s, both supposedly operating on all sections by default.
      objdump -s ignores bss sections, while objdump -D dissassembles the
      zeros.  Fix this by making objdump -D ignore bss sections too.
      
      Furthermore, "objdump -s -j .bss" doesn't dump .bss as it should,
      since the user is specifically asking to look at all those zeros.
      
      This change does find some tests that used objdump -D with expected
      output in bss-style sections.  I've updated all the msp430 tests that
      just wanted to find a non-empty section to look at section headers
      instead, making the tests slightly more stringent.  The ppc xcoff and
      spu tests are fixed by adding -j options to objdump, which makes the
      tests somewhat more lenient.
      
      binutils/
      	* objdump.c (disassemble_section): Ignore sections without
      	contents, unless overridden by -j.
      	(dump_section): Allow -j to override the default of not
      	displaying sections without contents.
      	* doc/binutils.texi (objdump options): Update -D, -s and -j
      	description.
      gas/
      	* testsuite/gas/ppc/xcoff-tls-32.d: Select wanted objdump
      	sections with -j.
      	* testsuite/gas/ppc/xcoff-tls-64.d: Likewise.
      ld/
      	* testsuite/ld-msp430-elf/main-bss-lower.d,
      	* testsuite/ld-msp430-elf/main-bss-upper.d,
      	* testsuite/ld-msp430-elf/main-const-lower.d,
      	* testsuite/ld-msp430-elf/main-const-upper.d,
      	* testsuite/ld-msp430-elf/main-text-lower.d,
      	* testsuite/ld-msp430-elf/main-text-upper.d,
      	* testsuite/ld-msp430-elf/main-var-lower.d,
      	* testsuite/ld-msp430-elf/main-var-upper.d: Expect -wh output.
      	* testsuite/ld-msp430-elf/msp430-elf.exp: Use objdump -wh
      	rather than objdump -D or objdump -d with tests checking for
      	non-empty given sections.
      	* testsuite/ld-spu/ear.d,
      	* testsuite/ld-spu/icache1.d,
      	* testsuite/ld-spu/ovl.d,
      	* testsuite/ld-spu/ovl2.d: Select wanted objdump sections.
      0a3137ce
  9. Feb 09, 2023
    • Alan Modra's avatar
      Clear cached file size when bfd changed to BFD_IN_MEMORY · 87d20657
      Alan Modra authored
      If file size is calculated by bfd_get_file_size, as it is by
      _bfd_alloc_and_read calls in coff_object_p, then it is cached and when
      pe_ILF_build_a_bfd converts an archive entry over to BFD_IN_MEMORY,
      the file size is no longer valid.  Found when attempting objdump -t on
      a very small (27 bytes) ILF file and hitting the pr24707 fix (commit
      781152ec).  So, clear file size when setting BFD_IN_MEMORY on bfds
      that may have been read.  (It's not necessary in writable bfds,
      because caching is ignored by bfd_get_size when bfd_write_p.)
      
      I also think the PR 24707 fix is no longer neeeded.  All of the
      testcases in that PR and in PR24712 are caught earlier by file size
      checks when reading the symbols from file.  So I'm reverting that fix,
      which just compared the size of an array of symbol pointers against
      file size.  That's only valid if on-disk symbols are larger than a
      host pointer, so the test is better done in format-specific code.
      
      bfd/
      	* coff-alpha.c (alpha_ecoff_get_elt_at_filepos): Clear cached
      	file size when making a BFD_IN_MEMORY bfd.
      	* opncls.c (bfd_make_readable): Likewise.
      	* peicode.h (pe_ILF_build_a_bfd): Likewise.
      binutils/
      	PR 24707
      	* objdump.c (slurp_symtab): Revert PR24707 fix.  Tidy.
      	(slurp_dynamic_symtab): Tidy.
      87d20657
  10. Jan 23, 2023
  11. Jan 01, 2023
  12. Dec 21, 2022
  13. Dec 16, 2022
  14. Dec 09, 2022
  15. Dec 04, 2022
    • Alan Modra's avatar
      PR29846, segmentation fault in objdump.c compare_symbols · 3d3af4ba
      Alan Modra authored
      Fixes a fuzzed object file problem where plt relocs were manipulated
      in such a way that two synthetic symbols were generated at the same
      plt location.  Won't occur in real object files.
      
      	PR 29846
      	PR 20337
      	* objdump.c (compare_symbols): Test symbol flags to exclude
      	section and synthetic symbols before attempting to check flavour.
      3d3af4ba
  16. Nov 24, 2022
  17. Nov 23, 2022
    • Alan Modra's avatar
      PR22509 - Null pointer dereference on coff_slurp_reloc_table · e6b6fad2
      Alan Modra authored
      This extends the commit 4581a1c7 fix to more targets, which
      hardens BFD a little.  I think the real underlying problem was the
      bfd_canonicalize_reloc call in load_specific_debug_section which
      passed a NULL for "symbols".  Fix that too.
      
      	PR 22509
      bfd/
      	* aoutx.h (swap_ext_reloc_out): Gracefully handle NULL symbols.
      	* i386lynx.c (swap_ext_reloc_out): Likewise.
      	* pdp11.c (pdp11_aout_swap_reloc_out): Likewise.
      	* coff-tic30.c (reloc_processing): Likewise.
      	* coff-tic4x.c (tic4x_reloc_processing): Likewise.
      	* coff-tic54x.c (tic54x_reloc_processing): Likewise.
      	* coff-z80.c (reloc_processing): Likewise.
      	* coff-z8k.c (reloc_processing): Likewise.
      	* ecoff.c (ecoff_slurp_reloc_table): Likewise.
      	* som.c (som_set_reloc_info): Likewise.
      binutils/
      	* objdump.c (load_specific_debug_section): Pass syms to
      	bfd_canonicalize_reloc.
      e6b6fad2
  18. Nov 16, 2022
    • Indu Bhagat's avatar
      readelf/objdump: support for SFrame section · 42b6953b
      Indu Bhagat authored
      This patch adds support for SFrame in readelf and objdump. The arguments
      of --sframe are optional for both readelf and objdump.
      
      include/ChangeLog:
      
      	* sframe-api.h (dump_sframe): New function declaration.
      
      ChangeLog:
      
      	* binutils/Makefile.am: Add dependency on libsframe for
      	readelf and objdump.
      	* binutils/Makefile.in: Regenerate.
      	* binutils/doc/binutils.texi: Document --sframe=[section].
      	* binutils/doc/sframe.options.texi: New file.
      	* binutils/objdump.c: Add support for SFrame format.
      	* binutils/readelf.c: Likewise.
      	* include/sframe-api.h: Add new API for dumping .sframe
      	section.
      	* libsframe/Makefile.am: Add sframe-dump.c.
      	* libsframe/Makefile.in: Regenerate.
      	* libsframe/sframe-dump.c: New file.
      42b6953b
  19. Oct 31, 2022
  20. Oct 26, 2022
  21. Oct 05, 2022
    • Alan Modra's avatar
      PR29647, objdump -S looping · 306253b2
      Alan Modra authored
      Fuzzed input with this in .debug_line
        [0x0000003b]  Special opcode 115: advance Address by 8 to 0x401180 and Line by -2 to -1
      
      	PR 29647
      	* objdump.c (print_line): Don't decrement line number here..
      	(dump_lines): ..do so here instead, ensuring loop terminates.
      306253b2
  22. Sep 13, 2022
    • Aaron Merey's avatar
      objdump: '-S' should trigger search for separate debuginfo. · e9a241e8
      Aaron Merey authored
      Add with_source_code to the command line options that trigger
      might_need_separate_debug_info and dump_any_debugging.  This helps
      'objdump -S' download missing files via debuginfod without the need for
      specifying extra command line options like '-L'.
      e9a241e8
  23. Sep 06, 2022
    • Aaron Merey's avatar
      Add debuginfod support for objdump -S · d647c797
      Aaron Merey authored
      
      Currently objdump -S is not able to make use files downloaded from debuginfod.
      This is due to bfd_find_nearest_line_discriminator being unable to locate any
      separate debuginfo files in the debuginfod cache. Additionally objdump lacked
      a call to debuginfod_find_source in order to download missing source files.
      
      Fix this by using bfd_find_nearest_line_with_alt instead of
      bfd_find_nearest_line_discriminator. Also add a call to
      debuginfod_find_source in order to download missing source files.
      
      Co-authored-by: default avatarNick Clifton <nickc@redhat.com>
      d647c797
  24. Aug 15, 2022
    • Alan Modra's avatar
      PR29362, some binutils memory leaks · 450da4bd
      Alan Modra authored
      2022-08-16  Alan Modra  <amodra@gmail.com>
      	    Cunlong Li  <shenxiaogll@163.com>
      
      	PR 29362
      	* dwarf.c (free_debug_information): New function, extracted..
      	(free_debug_memory): ..from here.
      	(process_debug_info): Use it when before clearing out unit
      	debug_information.  Clear all fields.
      	* objcopy.c (delete_symbol_htabs): New function.
      	(main): Call it via xatexit.
      	(copy_archive): Free "dir".
      	* objdump.c (free_debug_section): Free reloc_info.
      450da4bd
  25. Aug 13, 2022
    • Alan Modra's avatar
      Make dwarf_vma uint64_t · 31e5a3a3
      Alan Modra authored
      This replaces dwarf_vma, dwarf_size_type and dwarf_signed_vma with
      uint64_t and int64_t everywhere.  The patch also gets rid of
      DWARF_VMA_FMT since we can't use that with uint64_t, and all of the
      configure support for deciding the flavour of HOST_WIDEST_INT.
      dwarf_vmatoa also disappears, replacing most uses with one of
      PRIx64, PRId64 or PRIu64.  Printing of size_t and ptrdiff_t values
      now use %z and %t rather than by casting to unsigned long.  Also,
      most warning messages that used 0x%lx or similar now use %#lx and a
      few that didn't print the 0x hex prefix now also use %#.  The patch
      doesn't change normal readelf output, except in odd cases where values
      previously might have been truncated.
      31e5a3a3
  26. Aug 10, 2022
    • Andrew Burgess's avatar
      objdump: fix extended (256) disassembler colors · daf2618a
      Andrew Burgess authored
      After commit:
      
        commit a88c79b7
        Date:   Tue Aug 9 14:57:48 2022 +0100
      
            Default to enabling colored disassembly if output is to a terminal.
      
      The 256 extended-color support for --disassembler-color was broken.
      This is fixed in this commit.
      
      	PR 29457
      	* objdump (objdump_styled_sprintf): Check disassembler_color
      	against an enum value, don't treat it as a bool.
      daf2618a
  27. Aug 09, 2022
    • Nick Clifton's avatar
      Default to enabling colored disassembly if output is to a terminal. · a88c79b7
      Nick Clifton authored
      	PR 29457
      	* objdump.c (disassembler_color): Change type to an enum.
      	(disassembler_extended_color): Remove.
      	(usage): Update.
      	(objdump_color_for_assembler_style): Update.
      	(main): Update initialisation of disassembler_color.  If not
      	initialised via a command line option, set based upon terminal
      	output.
      	* doc/binutils.texi: Update description of disassmbler-color
      	option.
      	* testsuite/binutils-all/arc/objdump.exp: Add
      	--disassembler-color=off option when disassembling.
      	* testsuite/binutils-all/arm/objdump.exp: Likewise.
      a88c79b7
  28. Jul 25, 2022
    • Andrew Burgess's avatar
      opcodes: add new sub-mnemonic disassembler style · 4f46c0bc
      Andrew Burgess authored
      When adding libopcodes disassembler styling support for AArch64, it
      feels like the results would be improved by having a new sub-mnemonic
      style.  This will be used in cases like:
      
        add    w16, w7, w1, uxtb #2
                            ^^^^----- Here
      
      And:
      
        cinc   w0, w1, ne
                       ^^----- Here
      
      This commit just adds the new style, and prepares objdump to handle
      the style.  A later commit will add AArch64 styling, and will actually
      make use of the style.
      
      As this style is currently unused, there should be no user visible
      changes after this commit.
      4f46c0bc
  29. Jun 16, 2022
    • Alan Modra's avatar
      Always free matching vector from bfd_check_format_matches · 370426d0
      Alan Modra authored
      At least one place calling list_matching_formats failed to free the
      "matching" vector from bfd_check_format_matches afterwards.  Fix that
      by calling free inside list_matching_formats.
      
      binutils/
      	* bucomm.c (list_matching_formats): Free arg.
      	* addr2line.c (process_file): Adjust to suit.
      	* ar.c (open_inarch, ranlib_touch): Likewise.
      	* coffdump.c (main): Likewise.
      	* nm.c (display_archive, display_file): Likewise.
      	* objcopy.c (copy_file): Likewise.
      	* objdump.c (display_object_bfd): Likewise.
      	* size.c (display_bfd): Likewise.
      	* srconv.c (main): Likewise.
      ld/
      	* ldlang.c (load_symbols): Free "matching".
      370426d0
  30. May 31, 2022
    • Alan Modra's avatar
      Trailing spaces in objdump -r header · 99f647e2
      Alan Modra authored
      git commit 202be274 went a little wild in removing trailing spaces
      in gas/testsuite/gas/i386/{secidx.d,secrel.d}, causing
      x86_64-w64-mingw32  +FAIL: i386 secrel reloc
      x86_64-w64-mingw32  +FAIL: i386 secidx reloc
      
      I could have just replaced the trailing space, but let's fix the
      objdump output instead.  Touches lots of testsuite files.
      99f647e2
  31. May 20, 2022
    • Nick Clifton's avatar
      Stop readekf and objdump from aggressively following links. · 94585d6d
      Nick Clifton authored
      	* dwarf.c (dwarf_select_sections_by_names): Return zero if no
      	sections were selected.
      	(dwarf_select_sections_by_letters): Likewise.
      	* dwarf.h: (dwarf_select_sections_by_names): Update prototype.
      	(dwarf_select_sections_by_letters): Update prototype.
      	* objdump.c (might_need_separate_debug_info): New function.
      	(dump_bfd): Call new function before attempting to load separate
      	debug info files.
      	(main): Do not enable dwarf section dumping for -WK or -WN.
      	* readelf.c (parse_args): Do not enable dwarf section dumping for
      	-wK or -wN.
      	(might_need_separate_debug_info): New function.
      	(process_object): Call new function before attempting to load
      	separate debug info files.
      	* testsuite/binutils-all/debuginfo.exp: Expect -WE and -wE
      	debuginfod tests to pass.
      	* testsuite/binutils-all/objdump.Wk: Add extra regexps.
      	* testsuite/binutils-all/readelf.k: Add extra regexps.
      94585d6d
  32. May 03, 2022
  33. Apr 04, 2022
    • Andrew Burgess's avatar
      objdump/opcodes: add syntax highlighting to disassembler output · 60a3da00
      Andrew Burgess authored
      This commit adds the _option_ of having disassembler output syntax
      highlighted in objdump.  This option is _off_ by default.  The new
      command line options are:
      
        --disassembler-color=off		# The default.
        --disassembler-color=color
        --disassembler-color=extended-color
      
      I have implemented two colour modes, using the same option names as we
      use of --visualize-jumps, a basic 8-color mode ("color"), and an
      extended 8bit color mode ("extended-color").
      
      The syntax highlighting requires that each targets disassembler be
      updated; each time the disassembler produces some output we now pass
      through an additional parameter indicating what style should be
      applied to the text.
      
      As updating all target disassemblers is a large task, the old API is
      maintained.  And so, a user of the disassembler (i.e. objdump, gdb)
      must provide two functions, the current non-styled print function, and
      a new, styled print function.
      
      I don't currently have a plan for converting every single target
      disassembler, my hope is that interested folk will update the
      disassemblers they are interested in.  But it is possible some might
      never get updated.
      
      In this initial series I intend to convert the RISC-V disassembler
      completely, and also do a partial conversion of the x86 disassembler.
      Hopefully having the x86 disassembler at least partial converted will
      allow more people to try this out easily and provide feedback.
      
      In this commit I have focused on objdump.  The changes to GDB at this
      point are the bare minimum required to get things compiling, GDB makes
      no use of the styling information to provide any colors, that will
      come later, if this commit is accepted.
      
      This first commit in the series doesn't convert any target
      disassemblers at all (the next two commits will update some targets),
      so after this commit, the only color you will see in the disassembler
      output, is that produced from objdump itself, e.g. from
      objdump_print_addr_with_sym, where we print an address and a symbol
      name, these are now printed with styling information, and so will have
      colors applied (if the option is on).
      
      Finally, my ability to pick "good" colors is ... well, terrible.  I'm
      in no way committed to the colors I've picked here, so I encourage
      people to suggest new colors, or wait for this commit to land, and
      then patch the choice of colors.
      
      I do have an idea about using possibly an environment variable to
      allow the objdump colors to be customised, but I haven't done anything
      like that in this commit, the color choices are just fixed in the code
      for now.
      
      binutils/ChangeLog:
      
      	* NEWS: Mention new feature.
      	* doc/binutils.texi (objdump): Describe --disassembler-color
      	option.
      	* objdump.c (disassembler_color): New global.
      	(disassembler_extended_color): Likewise.
      	(disassembler_in_comment): Likewise.
      	(usage): Mention --disassembler-color option.
      	(long_options): Add --disassembler-color option.
      	(objdump_print_value): Use fprintf_styled_func instead of
      	fprintf_func.
      	(objdump_print_symname): Likewise.
      	(objdump_print_addr_with_sym): Likewise.
      	(objdump_color_for_disassembler_style): New function.
      	(objdump_styled_sprintf): New function.
      	(fprintf_styled): New function.
      	(disassemble_jumps): Use disassemble_set_printf, and reset
      	disassembler_in_comment.
      	(null_styled_print): New function.
      	(disassemble_bytes): Use disassemble_set_printf, and reset
      	disassembler_in_comment.
      	(disassemble_data): Update init_disassemble_info call.
      	(main): Handle --disassembler-color option.
      
      include/ChangeLog:
      
      	* dis-asm.h (enum disassembler_style): New enum.
      	(struct disassemble_info): Add fprintf_styled_func field, and
      	created_styled_output field.
      	(disassemble_set_printf): Declare.
      	(init_disassemble_info): Add additional parameter.
      	(INIT_DISASSEMBLE_INFO): Add additional parameter.
      
      opcodes/ChangeLog:
      
      	* dis-init.c (init_disassemble_info): Take extra parameter,
      	initialize the new fprintf_styled_func and created_styled_output
      	fields.
      	* disassembler.c (disassemble_set_printf): New function definition.
      60a3da00
  34. Mar 10, 2022
    • Nick Clifton's avatar
      Add option to objdump/readelf to disable access to debuginfod servers. · bed566bb
      Nick Clifton authored
      	* dwarf.c (use_debuginfod): New variable.  Set to 1.
      	(load_separate_debug_info): Only call
      	debuginfod_fetch_separate_debug_info is use_debuginfod is true.
      	(dwarf_select_sections_by_names): Add do-not-use-debuginfod and
      	use-debuginfod options.
      	(dwarf_select_sections_by_letters): Add D and E options.
      	* dwarf.h (use_debuginfod): New extern.
      	* objdump.c (usage): Mention the new options.
      	* readelf.c (usage): Likewise.
      	* doc/binutils.texi: Document the new options.
      	* doc/debug-options.texi: Describe the new options.
      	* NEWS: Mention the new feature.
      	* testsuite/binutils-all/debuginfod.exp: Add tests of the new
      	options.
      bed566bb
  35. Jan 31, 2022
    • H.J. Lu's avatar
      Load debug section only when dumping debug sections · e1dbfc17
      H.J. Lu authored
      Don't load debug sections if we aren't dumping any debug sections.
      
      	PR binutils/28843
      	* objdump.c (dump_any_debugging): New.
      	(load_debug_section): Return false if dump_any_debugging isn't
      	set.
      	(main): Set dump_any_debugging when dumping any debug sections.
      	* readelf (dump_any_debugging): New.
      	(parse_args): Set dump_any_debugging when dumping any debug
      	sections.
      	(load_debug_section): Return false if dump_any_debugging isn't
      	set.
      e1dbfc17
  36. Jan 18, 2022
    • Alan Modra's avatar
      PR28029, debuginfod tests · e2c0149e
      Alan Modra authored
      binutils/NEWS says of the change in --process-links semantics:
        If other debug section display options are also enabled (eg
        --debug-dump=info) then the contents of matching sections in both the main
        file and the separate debuginfo file *will* be displayed.  This is because in
        most cases the debug section will only be present in one of the files.
      
      Implying that debug info is dumped without --process-links.  Indeed
      that appears to be the case for readelf.  This does the same for
      objdump.
      
      	PR 28029
      	* objdump.c (dump_bfd): Do not exit early when !is_mainfile
      	&& !processlinks, instead just exclude non-debug output.
      	(dump_dwarf): Add is_mainfile parameter and pass to
      	dump_dwarf_section.
      	(dump_dwarf_section): Only display debug sections when
      	!is_mainfile and !process_links.
      e2c0149e
  37. Jan 02, 2022
    • Alan Modra's avatar
      Update year range in copyright notice of binutils files · a2c58332
      Alan Modra authored
      The result of running etc/update-copyright.py --this-year, fixing all
      the files whose mode is changed by the script, plus a build with
      --enable-maintainer-mode --enable-cgen-maint=yes, then checking
      out */po/*.pot which we don't update frequently.
      
      The copy of cgen was with commit d1dd5fcc38ead reverted as that commit
      breaks building of bfp opcodes files.
      a2c58332
Loading