[llvm] [LLVM][DWARF] Add support for .gnu_debuglink (PR #77715)

Kevin Frei via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 19 13:14:54 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;
----------------
kevinfrei wrote:

I feel like I'm missing something. As I understand it, replacing the stripped binary with an OKD binary would remove sections that are necessary for full symbolication, general debugging, and proper program execution (.symtab, .strtab, .shstrtab in my simple tests). If we replaced the stripped binary, how would we deal with those sections?

https://github.com/llvm/llvm-project/pull/77715


More information about the llvm-commits mailing list