Add some patches from the disasm-branch branch.
[platform/upstream/elfutils.git] / libasm / asm_end.c
index 74f01f0..33191f9 100644 (file)
 static int
 text_end (AsmCtx_t *ctx __attribute__ ((unused)))
 {
-  // XXX Does anything have to be done?
+  if (fclose (ctx->out.file) != 0)
+    {
+      __libasm_seterrno (ASM_E_IOERROR);
+      return -1;
+    }
+
   return 0;
 }