ELFAsmParser: Remove non-SHF_ALLOC or non-executable sections' line info/address...
authorFangrui Song <i@maskray.me>
Tue, 17 Nov 2020 04:02:25 +0000 (20:02 -0800)
committerFangrui Song <i@maskray.me>
Tue, 17 Nov 2020 04:02:25 +0000 (20:02 -0800)
commitfac0622ae0a59659a5969a137a724008547be697
tree4db6419e6841c07710709aba80fff15a07a788fd
parent65d4b5cb18e36897ebc09a4223f4b22d16e62b8c
ELFAsmParser: Remove non-SHF_ALLOC or non-executable sections' line info/address ranges contribution for -g

I filed the issue https://sourceware.org/bugzilla/show_bug.cgi?id=26850 ,
which was acknowledged and fixed in GNU binutils 2.36

This patch adds the similar behavior to MC.

Reviewed By: #debug-info, dblaikie

Differential Revision: https://reviews.llvm.org/D91505
llvm/lib/MC/MCParser/ELFAsmParser.cpp
llvm/test/MC/ARM/dwarf-asm-multiple-sections.s