]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
Change unstrip -n display of build ID vaddr to be module-relative. roland/unstrip-buildid-relative
authorRoland McGrath <roland@redhat.com>
Wed, 16 Jun 2010 03:56:30 +0000 (20:56 -0700)
committerRoland McGrath <roland@redhat.com>
Wed, 16 Jun 2010 03:56:30 +0000 (20:56 -0700)
src/unstrip.c

index 443cd620d3cc04a902f8164864e825473aa24368..6138b233be156412d2eefdf0e1fe7c7b715c8619 100644 (file)
@@ -2132,7 +2132,12 @@ list_module (Dwfl_Module *mod)
        printf ("%02" PRIx8, *id++);
       while (--id_len > 0);
       if (id_vaddr != 0)
-       printf ("@%#" PRIx64, id_vaddr);
+       {
+         if (id_vaddr > start && id_vaddr < end)
+           printf ("@+%#" PRIx64, id_vaddr - start);
+         else
+           printf ("@%#" PRIx64, id_vaddr);
+       }
     }
   else
     putchar ('-');