[PATCH] D85579: [WIP][ELF] --gdb-index: skip SHF_GROUP .debug_info

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 7 19:09:27 PDT 2020


MaskRay created this revision.
Herald added subscribers: llvm-commits, arphaman, arichardson, aprantl, emaste.
Herald added a reviewer: espindola.
Herald added a project: LLVM.
MaskRay requested review of this revision.

-gdwarf-5 -fdebug-types-section may produce multiple .debug_info sections.  All
except one are type units (.debug_types before DWARF v5). When constructing
.gdb_index, we should ignore these type units. We use a simple heuristic: the
compile unit does not have the SHF_GROUP flag. (This needs to be revisited if
people place compile unit .debug_info in COMDAT groups.)


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D85579

Files:
  lld/ELF/DWARF.cpp
  lld/ELF/SyntheticSections.cpp
  lld/test/ELF/gdb-index-dwarf5-type-unit.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D85579.284109.patch
Type: text/x-patch
Size: 5973 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200808/4c6fdb27/attachment.bin>


More information about the llvm-commits mailing list