From 94bf4d2c227e2073458cabc768d1167e1f3ab2f8 Mon Sep 17 00:00:00 2001 From: grischka Date: Sat, 19 Dec 2009 22:08:52 +0100 Subject: tccpe: improve dllimport --- libtcc.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'libtcc.c') diff --git a/libtcc.c b/libtcc.c index 823078e..5b11396 100644 --- a/libtcc.c +++ b/libtcc.c @@ -214,6 +214,7 @@ int tcc_output_coff(TCCState *s1, FILE *f); /* tccpe.c */ int pe_load_file(struct TCCState *s1, const char *filename, int fd); int pe_output_file(struct TCCState *s1, const char *filename); +int pe_dllimport(int r, SValue *sv, void (*fn)(int r, SValue *sv)); /* tccasm.c */ #ifdef CONFIG_TCC_ASM @@ -780,6 +781,10 @@ static void put_extern_sym2(Sym *sym, Section *section, sym_type = STT_NOTYPE; } else { sym_type = STT_OBJECT; +#ifdef TCC_TARGET_PE + if (sym->type.t & VT_EXPORT) + other |= 1; +#endif } if (sym->type.t & VT_STATIC) -- cgit v1.3.1