diff options
Diffstat (limited to 'libasm')
| -rw-r--r-- | libasm/ChangeLog | 9 | ||||
| -rw-r--r-- | libasm/asm_end.c | 2 | ||||
| -rw-r--r-- | libasm/libasm.h | 2 | ||||
| -rw-r--r-- | libasm/libasmP.h | 1 |
4 files changed, 12 insertions, 2 deletions
diff --git a/libasm/ChangeLog b/libasm/ChangeLog index a1abac88..2c092abe 100644 --- a/libasm/ChangeLog +++ b/libasm/ChangeLog @@ -1,3 +1,12 @@ +2020-04-25 Mark Wielaard <[email protected]> + + * asm_end.c (text_end): Call fflush instead of fclose. + +2020-01-08 Mark Wielaard <[email protected]> + + * libasm.h: Don't include libebl.h. Define an opaque Ebl handle. + * libasmP.h: Do include libebl.h. + 2019-08-28 Mark Wielaard <[email protected]> * Makefile.am (libasm_so_DEPS): Replace libebl.a with libebl_pic.a. diff --git a/libasm/asm_end.c b/libasm/asm_end.c index 99e95017..3b8582fd 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; diff --git a/libasm/libasm.h b/libasm/libasm.h index 5c612243..a45c9fa3 100644 --- a/libasm/libasm.h +++ b/libasm/libasm.h @@ -32,7 +32,7 @@ #include <stdbool.h> #include <stdint.h> -#include <libebl.h> +typedef struct ebl Ebl; /* Opaque type for the assembler context descriptor. */ diff --git a/libasm/libasmP.h b/libasm/libasmP.h index 54460cf9..a4703fc3 100644 --- a/libasm/libasmP.h +++ b/libasm/libasmP.h @@ -31,6 +31,7 @@ #include <stdio.h> +#include "libebl.h" #include <libasm.h> #include "libdwelf.h" |
