[sysprof] elf: add comment about supporting /newroot/



commit 1695510b4a968a47607563440d8a605f6b2d8ba8
Author: Christian Hergert <chergert redhat com>
Date:   Sun Feb 26 00:28:37 2017 -0800

    elf: add comment about supporting /newroot/

 lib/sp-elf-symbol-resolver.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/lib/sp-elf-symbol-resolver.c b/lib/sp-elf-symbol-resolver.c
index 9002606..db1d20e 100644
--- a/lib/sp-elf-symbol-resolver.c
+++ b/lib/sp-elf-symbol-resolver.c
@@ -140,6 +140,10 @@ sp_elf_symbol_resolver_get_bin_file (SpElfSymbolResolver *self,
       /*
        * If we are in a new mount namespace, then rely on the sp_symbol_dirs
        * to find us a locate to resolve the file where the CRC will match.
+       *
+       * TODO: We need to translate the path here so that we can locate the
+       *       binary behind it (which then has links to the debug file in
+       *       the section header).
        */
       if (g_str_has_prefix (filename, "/newroot/"))
         alternate += strlen ("/newroot");


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]