diff options
author | H. Peter Anvin <hpa@zytor.com> | 2007-11-19 11:53:18 -0800 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2007-11-19 11:53:18 -0800 |
commit | 61783742518d87373cabb1c79254ef5ae943beb7 (patch) | |
tree | 638d4abc29fc94e9d2ce7495ea0012f5550b5c00 /listing.c | |
parent | 70c0bf22a2bee2ae7e1d5e119782df047d84965f (diff) | |
download | nasm-61783742518d87373cabb1c79254ef5ae943beb7.tar.gz |
BR 863173: Fix offsets of TIMES/INCBIN in list file
Correct the emission of offsets for TIMES/INCBIN in the list file.
Diffstat (limited to 'listing.c')
-rw-r--r-- | listing.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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'; |