[all-commits] [llvm/llvm-project] 0d191b: [Debuginfo][llvm-dwarfutil] Add check for unsuppor...

avl-llvm via All-commits all-commits at lists.llvm.org
Tue Jul 26 05:27:04 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0d191b7553e7efbf7ce57c77274b83c15b681933
      https://github.com/llvm/llvm-project/commit/0d191b7553e7efbf7ce57c77274b83c15b681933
  Author: Alexey Lapshin <a.v.lapshin at mail.ru>
  Date:   2022-07-26 (Tue, 26 Jul 2022)

  Changed paths:
    M llvm/include/llvm/DWARFLinker/DWARFLinker.h
    M llvm/lib/DWARFLinker/DWARFLinker.cpp
    A llvm/test/tools/llvm-dwarfutil/ELF/X86/Inputs/type-units.o
    A llvm/test/tools/llvm-dwarfutil/ELF/X86/warning-skipped-cu-index.test
    A llvm/test/tools/llvm-dwarfutil/ELF/X86/warning-skipped-gdb-index.test
    A llvm/test/tools/llvm-dwarfutil/ELF/X86/warning-skipped-gnu-pubnames.test
    A llvm/test/tools/llvm-dwarfutil/ELF/X86/warning-skipped-gnu-pubtypes.test
    A llvm/test/tools/llvm-dwarfutil/ELF/X86/warning-skipped-loclists.test
    A llvm/test/tools/llvm-dwarfutil/ELF/X86/warning-skipped-macinfo.test
    A llvm/test/tools/llvm-dwarfutil/ELF/X86/warning-skipped-macro.test
    A llvm/test/tools/llvm-dwarfutil/ELF/X86/warning-skipped-names.test
    A llvm/test/tools/llvm-dwarfutil/ELF/X86/warning-skipped-pubnames.test
    A llvm/test/tools/llvm-dwarfutil/ELF/X86/warning-skipped-pubtypes.test
    A llvm/test/tools/llvm-dwarfutil/ELF/X86/warning-skipped-rnglists.test
    A llvm/test/tools/llvm-dwarfutil/ELF/X86/warning-skipped-types.test
    M llvm/tools/dsymutil/DwarfLinkerForBinary.cpp
    M llvm/tools/llvm-dwarfutil/DebugInfoLinker.cpp
    M llvm/tools/llvm-dwarfutil/DebugInfoLinker.h
    M llvm/tools/llvm-dwarfutil/llvm-dwarfutil.cpp

  Log Message:
  -----------
  [Debuginfo][llvm-dwarfutil] Add check for unsupported debug sections.

Current DWARFLinker implementation does not support some debug sections
(mainly DWARF v5 sections). This patch adds diagnostic for such sections.
The warning would be displayed for critical(such that could not be removed)
sections and the source file would be skipped. Other unsupported sections
would be removed and warning message should be displayed. The zero exit
status would be returned for both cases.

Reviewed By: JDevlieghere

Differential Revision: https://reviews.llvm.org/D123623




More information about the All-commits mailing list