[PATCH] D46502: [ELF] - Fix for "LLD can create incorrect debug PC ranges for functions in Comdat groups."

George Rimar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu May 10 10:04:39 PDT 2018


grimar added a comment.

In https://reviews.llvm.org/D46502#1094602, @ruiu wrote:

> I wonder if we can simply discard debug records that refer discarded sections. If comdat section is discarded because there's another copy of it, there should be debug records for that section, so we have two copies of debug records, thus we can discard debug records for a discarded comdat section, no?


Does not that mean we would need to have an additional debug parsing in a linker? (to rebuild the DWARF data).


https://reviews.llvm.org/D46502





More information about the llvm-commits mailing list