diff options
author | Roland McGrath <roland@redhat.com> | 2010-06-15 20:56:30 -0700 |
---|---|---|
committer | Roland McGrath <roland@redhat.com> | 2010-06-15 20:56:30 -0700 |
commit | 91fbd6035fb6fd3e470f157845b3d6708374ae6f (patch) | |
tree | 4c0d0b65bf29f6d4fa4f0d9b0dd688fddd24149b | |
parent | a92f1a4edebaaed1878dd5135b67afeb52fc7d0a (diff) | |
download | elfutils-roland/unstrip-buildid-relative.tar.gz |
Change unstrip -n display of build ID vaddr to be module-relative.roland/unstrip-buildid-relative
-rw-r--r-- | src/unstrip.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/unstrip.c b/src/unstrip.c index 443cd620..6138b233 100644 --- a/src/unstrip.c +++ b/src/unstrip.c @@ -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 ('-'); |