aboutsummaryrefslogtreecommitdiff
path: root/i386-asm.c
diff options
context:
space:
mode:
Diffstat (limited to 'i386-asm.c')
-rw-r--r--i386-asm.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/i386-asm.c b/i386-asm.c
index a378191..075d2ea 100644
--- a/i386-asm.c
+++ b/i386-asm.c
@@ -426,6 +426,10 @@ static void gen_disp32(ExprValue *pe)
elimination in the linker */
gen_le32(pe->v + sym->jnext - ind - 4);
} else {
+ if (sym && sym->type.t == VT_VOID) {
+ sym->type.t = VT_FUNC;
+ sym->type.ref = NULL;
+ }
gen_addrpc32(VT_SYM, sym, pe->v);
}
}