From: Ian Lance Taylor Date: Wed, 29 Jan 1997 19:08:53 +0000 (+0000) Subject: tweak last change X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0948199a7b45e3927dd7ae913cd42f56037091da;p=binutils-gdb.git tweak last change --- diff --git a/binutils/objdump.c b/binutils/objdump.c index b81e86644e9..0a5175084fc 100644 --- a/binutils/objdump.c +++ b/binutils/objdump.c @@ -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;