From 61783742518d87373cabb1c79254ef5ae943beb7 Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Mon, 19 Nov 2007 11:53:18 -0800 Subject: BR 863173: Fix offsets of TIMES/INCBIN in list file Correct the emission of offsets for TIMES/INCBIN in the list file. --- listing.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'listing.c') diff --git a/listing.c b/listing.c index e4da7cb6..beca2b7a 100644 --- a/listing.c +++ b/listing.c @@ -136,6 +136,8 @@ static void list_output(int32_t offset, const void *data, { uint8_t const *p = data; char q[3]; + if (size == 0 && !listdata[0]) + listoffset = offset; while (size--) { HEX(q, *p); q[2] = '\0'; -- cgit v1.2.1