[Lldb-commits] [PATCH] D65789: A more robust way of testing debug_line parser near the end of module
Fangrui Song via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Tue Aug 6 02:31:56 PDT 2019
MaskRay accepted this revision.
MaskRay added inline comments.
This revision is now accepted and ready to land.
================
Comment at: lit/SymbolFile/DWARF/Inputs/debug-line-basic.script:6
+ .shstrtab : { *(.shstrtab) }
+ .debug_info 0 : { *(.debug_info ) }
+ .debug_line 0 : { *(.debug_line ) }
----------------
`0` (output section address, `addrExpr` in lld) can be deleted. For non-SHF_ALLOC sections (`.shstrtab` `.debug_info` etc), the address expression is just ignored.
// lld/ELF/LinkerScript.cpp#L772
if ((sec->flags & SHF_ALLOC) && sec->addrExpr)
setDot(sec->addrExpr, sec->location, false);
(I guess it was retrieved from `ld --verbose`)
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D65789/new/
https://reviews.llvm.org/D65789
More information about the lldb-commits
mailing list