summaryrefslogtreecommitdiff
path: root/output/outbin.c
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2009-07-05 15:32:14 -0700
committerH. Peter Anvin <hpa@zytor.com>2009-07-05 15:32:14 -0700
commit31f336183cee2c7f7766f4e207fe530efdc16d52 (patch)
tree7227122958449e9bd8b0a5e707dff6c7dbdfa6d6 /output/outbin.c
parent4660a2b4a0c047b4d0fd1249502f95714ca0d65b (diff)
downloadnasm-31f336183cee2c7f7766f4e207fe530efdc16d52.tar.gz
nasm-31f336183cee2c7f7766f4e207fe530efdc16d52.tar.bz2
nasm-31f336183cee2c7f7766f4e207fe530efdc16d52.zip
outbin: when writing S-records, write head record
When writing S-record output, we should write the head record (S0), too. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'output/outbin.c')
-rw-r--r--output/outbin.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/output/outbin.c b/output/outbin.c
index 6925201..47d55ca 100644
--- a/output/outbin.c
+++ b/output/outbin.c
@@ -1638,6 +1638,9 @@ static void do_output_srec(void)
etype = '7'; /* S7 = 32-bit end */
}
+ /* Write head record */
+ write_srecord(0, 2, 0, '0', NULL);
+
/* Write the progbits sections to the output file. */
for (s = sections; s; s = s->next) {
/* Skip non-progbits sections */