diff options
author | H. Peter Anvin <hpa@linux.intel.com> | 2017-06-22 23:00:38 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@linux.intel.com> | 2017-06-22 23:00:38 -0700 |
commit | 1669cb04a54b3beb9f4a9e9570d4d9eb62418ef0 (patch) | |
tree | 852d6547838e8c97f84f7705f3e3ce307f6a1dce /output/outdbg.c | |
parent | 8a6903c43d4569194e0d2785e30f4bc134701471 (diff) | |
download | nasm-1669cb04a54b3beb9f4a9e9570d4d9eb62418ef0.tar.gz |
outdbg: make the output for relative relocations more clear
Make the output for relative relocations more clear, so it can be
actually comprehended.
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Diffstat (limited to 'output/outdbg.c')
-rw-r--r-- | output/outdbg.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/output/outdbg.c b/output/outdbg.c index 130c9d72..e74193b0 100644 --- a/output/outdbg.c +++ b/output/outdbg.c @@ -182,7 +182,7 @@ static void dbg_out(const struct out_data *data) fprintf(ofile, " wrt %"PRIx32, data->twrt); } if (data->type == OUT_RELADDR) - fprintf(ofile, " relbase %"PRId64, data->relbase); + fprintf(ofile, " relbase %"PRIx64, data->relbase); putc('\n', ofile); @@ -236,8 +236,8 @@ static void dbg_legacy_out(int32_t segto, const void *data, fprintf(ofile, " legacy: out to %"PRIx32", len = %d: ", segto, (int)abs((int)size)); else - fprintf(ofile, " legacy: out to %"PRIx32", len = %"PRIu64": ", - segto, size); + fprintf(ofile, " legacy: out to %"PRIx32", len = %"PRId64" (0x%"PRIx64"): ", + segto, (int64_t)size, size); switch (type) { case OUT_RESERVE: |