[PATCH] D123623: [Debuginfo][llvm-dwarfutil] Add check for unsupported debug sections.
Alexey Lapshin via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 12 11:17:05 PDT 2022
avl created this revision.
avl added reviewers: clayborg, aprantl, JDevlieghere, jhenderson, dblaikie.
Herald added subscribers: arphaman, hiraditya, emaste.
Herald added a project: All.
avl requested review of this revision.
Herald added subscribers: llvm-commits, MaskRay.
Herald added a project: LLVM.
Current DWARFLinker implementation does not support some debug sections
(mainly DWARF v5 sections). This patch adds diagnostic for such sections.
The error 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.
Depends on D86539 <https://reviews.llvm.org/D86539>
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D123623
Files:
llvm/include/llvm/DWARFLinker/DWARFLinker.h
llvm/lib/DWARFLinker/DWARFLinker.cpp
llvm/test/tools/llvm-dwarfutil/ELF/Inputs/type-units.o
llvm/test/tools/llvm-dwarfutil/ELF/error-unsupported-loclists.test
llvm/test/tools/llvm-dwarfutil/ELF/error-unsupported-rnglists.test
llvm/test/tools/llvm-dwarfutil/ELF/error-unsupported-types.test
llvm/test/tools/llvm-dwarfutil/ELF/warning-skipped-cu-index.test
llvm/test/tools/llvm-dwarfutil/ELF/warning-skipped-gdb-index.test
llvm/test/tools/llvm-dwarfutil/ELF/warning-skipped-gnu-pubnames.test
llvm/test/tools/llvm-dwarfutil/ELF/warning-skipped-gnu-pubtypes.test
llvm/test/tools/llvm-dwarfutil/ELF/warning-skipped-macinfo.test
llvm/test/tools/llvm-dwarfutil/ELF/warning-skipped-macro.test
llvm/test/tools/llvm-dwarfutil/ELF/warning-skipped-names.test
llvm/test/tools/llvm-dwarfutil/ELF/warning-skipped-pubnames.test
llvm/test/tools/llvm-dwarfutil/ELF/warning-skipped-pubtypes.test
llvm/tools/dsymutil/DwarfLinkerForBinary.cpp
llvm/tools/llvm-dwarfutil/DebugInfoLinker.cpp
llvm/tools/llvm-dwarfutil/DebugInfoLinker.h
llvm/tools/llvm-dwarfutil/llvm-dwarfutil.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D123623.422300.patch
Type: text/x-patch
Size: 27105 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220412/ed664028/attachment.bin>
More information about the llvm-commits
mailing list