]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
dwarflint: adjust messages about RELA relocating place with non-zero value
authorPetr Machata <pmachata@redhat.com>
Wed, 1 Apr 2009 12:52:11 +0000 (14:52 +0200)
committerPetr Machata <pmachata@redhat.com>
Wed, 1 Apr 2009 12:47:58 +0000 (14:47 +0200)
src/dwarflint.c

index 9296d7e4692e11e2d748fa6580d6ba648d81f55b..bd5e85634fa5b9c980b8423f995add7c13c33623 100644 (file)
@@ -2444,6 +2444,10 @@ check_global_die_references (struct cu *cu_chain)
            retval = false;
          }
        else if (ref_cu == it)
+         /* This is technically not a problem, so long as the
+            reference is valid, which it is.  But warn about this
+            anyway, perhaps local reference could be formed on fewer
+            number of bytes.  */
          wr_message (mc_impact_2 | mc_acc_suboptimal | mc_die_rel,
                      &ref->who,
                      ": local reference to " PRI_DIE " formed as global.\n",
@@ -4684,7 +4688,8 @@ read_rel (struct section_data *secdata, Elf_Data *reldata, bool elf_64)
        {
          if (value != 0)
            wr_message (mc_impact_2 | mc_reloc, &where,
-                       ": SHR_RELA relocates a place with non-zero value.\n");
+                       ": SHR_RELA relocates a place with non-zero value (addend=%#"
+                       PRIx64", value=%#"PRIx64").\n", rela->r_addend, value);
          cur->addend = rela->r_addend;
        }
       else