llvm-project/llvm/lib/DebugInfo/Symbolize
Alexander Yermolovich 5a865b0b1e [DWARF] Don't process .debug_info relocations for DWO Context
When we build with split dwarf in single mode the .o files that contain both "normal" debug sections and dwo sections, along with relocaiton sections for "normal" debug sections.
When we create DWARF context in DWARFObjInMemory we process relocations and store them in the map for .debug_info, etc section.
For DWO Context we also do it for non dwo dwarf sections. Which I believe is not necessary. This leads to a lot of memory being wasted. We observed 70GB extra memory being used.

I went with context sensitive approach, flag is passed in. I am not sure if it's always safe not to process relocations for regular debug sections if Obj contains .dwo sections.
If it is alternatvie might be just to scan, in constructor, sections and if there are .dwo sections not to process regular debug ones.

Reviewed By: dblaikie

Differential Revision: https://reviews.llvm.org/D106624
2021-08-02 10:41:47 -07:00
..
CMakeLists.txt llvmbuildectomy - replace llvm-build by plain cmake 2020-11-13 10:35:24 +01:00
DIPrinter.cpp Add support for DWARF embedded source to llvm-symbolizer. 2021-05-20 21:40:28 +04:00
SymbolizableObjectFile.cpp [symbolizer] Added StartAddress for the resolved function. 2021-05-19 02:38:13 +04:00
SymbolizableObjectFile.h DebugInfo/Symbolize: Don't differentiate function/data symbolization 2021-02-11 19:22:44 -08:00
Symbolize.cpp [DWARF] Don't process .debug_info relocations for DWO Context 2021-08-02 10:41:47 -07:00