[all-commits] [llvm/llvm-project] e74197: [Reland][Debuginfo][llvm-dwarfutil] Add check for ...

avl-llvm via All-commits all-commits at lists.llvm.org
Thu Jul 28 11:29:55 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e74197bc12f68c4e7940574bec5f983297db56f8
      https://github.com/llvm/llvm-project/commit/e74197bc12f68c4e7940574bec5f983297db56f8
  Author: Alexey Lapshin <a.v.lapshin at mail.ru>
  Date:   2022-07-28 (Thu, 28 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:
  -----------
  [Reland][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