diff options
author | Victor van den Elzen <victor.vde@gmail.com> | 2008-10-01 12:18:28 +0200 |
---|---|---|
committer | Victor van den Elzen <victor.vde@gmail.com> | 2008-10-01 12:18:28 +0200 |
commit | cf9332ca511526ab5cabe429c479c781be2b4ac7 (patch) | |
tree | 65d0ea7524a074e8a632c7a519bc4b71793e9e17 | |
parent | 1abb9e5370eb700ce98f4403ac686f463aa49d2b (diff) | |
download | nasm-cf9332ca511526ab5cabe429c479c781be2b4ac7.tar.gz |
Apply patch from BR 1197827
-rw-r--r-- | assemble.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -1805,6 +1805,13 @@ static void gencode(int32_t segment, int64_t offset, int bits, s = p - bytes; out(offset, segment, bytes, OUT_RAWDATA, s, NO_SEG, NO_SEG); + /* + * Make sure the address gets the right offset in case + * the line breaks in the .lst file (BR 1197827) + */ + offset += s; + s = 0; + switch (ea_data.bytes) { case 0: break; |