From 1e31e7ce3196df13c9f5f477ec1488cd3c310a29 Mon Sep 17 00:00:00 2001 From: Christian Hergert Date: Sun, 26 Feb 2017 17:06:28 -0800 Subject: [PATCH] elf: remove newroot check We don't need this anymore, as the proc source should translate the paths for us so we get appropriate maps. --- lib/sp-elf-symbol-resolver.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/lib/sp-elf-symbol-resolver.c b/lib/sp-elf-symbol-resolver.c index db1d20e3..115ece14 100644 --- a/lib/sp-elf-symbol-resolver.c +++ b/lib/sp-elf-symbol-resolver.c @@ -281,15 +281,8 @@ sp_elf_symbol_resolver_resolve (SpSymbolResolver *resolver, g_assert (bin_file != NULL); - /* - * Ensure we have a valid inode mapping, unless it was in a /newroot/, for - * which those won't be reliable. - */ - if (!g_str_has_prefix (map->filename, "/newroot/")) - { - if (map->inode && !bin_file_check_inode (bin_file, map->inode)) - return g_strdup_printf ("%s: inode mismatch", map->filename); - } + if (map->inode && !bin_file_check_inode (bin_file, map->inode)) + return g_strdup_printf ("%s: inode mismatch", map->filename); bin_sym = bin_file_lookup_symbol (bin_file, address); bin_sym_name = bin_symbol_get_name (bin_file, bin_sym);