From 4266ebd69c2c7d12abee1da1f6c2228232c6bc87 Mon Sep 17 00:00:00 2001 From: Michael Matz Date: Sat, 25 Nov 2017 19:41:03 +0100 Subject: tccasm: Don't abuse dllexport/dllimport For tracking if asm symbols are connected with a C symbol, and if asm symbols need to be global use new flags, instead of reusing dllimport/dllexport, which would cause unrequested exported entries on Windows. This is a stop-gap until the C and asm symtable are unified. --- tcc.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tcc.h') diff --git a/tcc.h b/tcc.h index 1efd046..5fc71a5 100644 --- a/tcc.h +++ b/tcc.h @@ -440,7 +440,9 @@ struct SymAttr { visibility : 2, dllexport : 1, dllimport : 1, - unused : 5; + asmcsym : 1, + asmexport : 1, + unused : 3; }; /* function attributes or temporary attributes for parsing */ -- cgit v1.3.1