[llvm] [LLVM][DWARF] Add support for .gnu_debuglink (PR #77715)
David Blaikie via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 11 09:59:49 PST 2024
================
@@ -127,6 +127,9 @@ class DWARFContext : public DIContext {
std::unique_ptr<const DWARFObject> DObj;
+ /// Binary containing debug information after objcopy --only-keep-debug
+ object::OwningBinary<object::ObjectFile> GnuLink;
----------------
dwblaikie wrote:
Could we avoid having this sort of invasive change by switching entirely to the debuglink binary early on & then the rest of the codepaths would work as they do today? (perhaps look at where the debuginfod is wired in - I would tihnk debuglink might work in a similar way?)
https://github.com/llvm/llvm-project/pull/77715
More information about the llvm-commits
mailing list