tweak last change
authorIan Lance Taylor <ian@airs.com>
Wed, 29 Jan 1997 19:08:53 +0000 (19:08 +0000)
committerIan Lance Taylor <ian@airs.com>
Wed, 29 Jan 1997 19:08:53 +0000 (19:08 +0000)
binutils/objdump.c

index b81e86644e943b5b5c62f673b45bad7296f6f261..0a5175084fc7ab6d943c15d07886d9aa854de69a 100644 (file)
@@ -1198,10 +1198,18 @@ disassemble_bytes (info, disassemble_fn, insns, data, start, stop, relppp,
              while (pb < bytes)
                {
                  long j;
+                 char *s;
 
                  putchar ('\n');
                  j = i + pb;
-                 printf ("%6lx:\t", (unsigned long) (j - start));
+
+                 sprintf_vma (buf, section->vma + j);
+                 for (s = buf + skip_addr_chars; *s == '0'; s++)
+                   *s = ' ';
+                 if (*s == '\0')
+                   *--s = '0';
+                 printf ("%s:\t", buf + skip_addr_chars);
+
                  pb += bytes_per_line;
                  if (pb > bytes)
                    pb = bytes;