]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
dwarflint: don't warn on absence of debunginfo sections in tolerant mode
authorPetr Machata <pmachata@redhat.com>
Thu, 23 Jul 2009 15:25:53 +0000 (17:25 +0200)
committerPetr Machata <pmachata@redhat.com>
Tue, 4 Aug 2009 14:01:50 +0000 (16:01 +0200)
src/dwarflint.c

index bab48a6faa068cfbdebe56181cd6230b644b0134..debd7e9f0da8255a9087b0371c3944b04a0a3ba4 100644 (file)
@@ -1292,19 +1292,19 @@ process_file (Elf *elf, const char *fname, bool only_one)
 
   if (SEC(pubnames) != NULL)
     check_pub_structural (&file, SEC(pubnames), cu_chain);
-  else
+  else if (!tolerate_nodebug)
     wr_message (mc_impact_4 | mc_acc_suboptimal | mc_elf,
                &WHERE (sec_pubnames, NULL), ": data not found.\n");
 
   if (SEC(pubtypes) != NULL)
     check_pub_structural (&file, SEC(pubtypes), cu_chain);
-  else
+  else if (!tolerate_nodebug)
     wr_message (mc_impact_4 | mc_acc_suboptimal | mc_elf | mc_pubtypes,
                &WHERE (sec_pubtypes, NULL), ": data not found.\n");
 
   if (SEC(line) != NULL)
     check_line_structural (&file, SEC(line), cu_chain);
-  else
+  else if (!tolerate_nodebug)
     wr_message (mc_impact_4 | mc_acc_suboptimal | mc_elf | mc_loc,
                &WHERE (sec_line, NULL), ": data not found.\n");