aboutsummaryrefslogtreecommitdiff
path: root/libasm/asm_end.c
diff options
context:
space:
mode:
Diffstat (limited to 'libasm/asm_end.c')
-rw-r--r--libasm/asm_end.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libasm/asm_end.c b/libasm/asm_end.c
index 99e95017..077d2aa5 100644
--- a/libasm/asm_end.c
+++ b/libasm/asm_end.c
@@ -47,7 +47,7 @@
static int
text_end (AsmCtx_t *ctx __attribute__ ((unused)))
{
- if (fclose (ctx->out.file) != 0)
+ if (fflush (ctx->out.file) != 0)
{
__libasm_seterrno (ASM_E_IOERROR);
return -1;
@@ -257,7 +257,7 @@ binary_end (AsmCtx_t *ctx)
xndxdata->d_off = 0;
}
- /* Store the real section index in the extended setion
+ /* Store the real section index in the extended section
index table. */
assert ((size_t) ptr < ctx->nsymbol_tab + 1);
xshndx[ptr] = ndx;