[all-commits] [llvm/llvm-project] 56fa34: DebugInfo: Temporarily work around -gsplit-dwarf +...
Fangrui Song via All-commits
all-commits at lists.llvm.org
Thu Feb 4 17:35:27 PST 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 56fa34ae3570a34fd0f4c2cf1bfaf095da01a959
https://github.com/llvm/llvm-project/commit/56fa34ae3570a34fd0f4c2cf1bfaf095da01a959
Author: Fangrui Song <i at maskray.me>
Date: 2021-02-04 (Thu, 04 Feb 2021)
Changed paths:
M llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp
Log Message:
-----------
DebugInfo: Temporarily work around -gsplit-dwarf + LTO .debug_gnu_pubnames regression after D94976
`-flto -gsplit-dwarf -g -O[123]` may create .debug_gnu_pubnames with 0 DIE
offset entries. llvm-dwarfdump -debug-gnu-pubnames/ld.lld --gdb-index errors for that.
```
.section .debug_gnu_pubnames,"", at progbits
.long .LpubNames_end2-.LpubNames_begin2 # Length of Public Names Info
.LpubNames_begin2:
.short 2 # DWARF Version
.long .Lcu_begin2 # Offset of Compilation Unit Info
.long 57 # Compilation Unit Length
.long 0 # DIE offset
.byte 16 # Attributes: TYPE, EXTERNAL
.asciz "absl" # External Name
.long 0 # DIE offset
.byte 16 # Attributes: TYPE, EXTERNAL
.asciz "absl::base_internal" # External Name
.long 0 # End Mark
```
More information about the All-commits
mailing list