aboutsummaryrefslogtreecommitdiff
path: root/tcc.h
diff options
context:
space:
mode:
authorMichael Matz <matz@suse.de>2017-11-25 19:41:03 +0100
committerMichael Matz <matz@suse.de>2017-11-25 19:41:03 +0100
commit4266ebd69c2c7d12abee1da1f6c2228232c6bc87 (patch)
tree2dc94bdf42516b13083b64e3eeb31f146d1ee4ee /tcc.h
parente7c71e24730ae07241980812c8b747963f216260 (diff)
downloadtinycc-4266ebd69c2c7d12abee1da1f6c2228232c6bc87.tar.gz
tinycc-4266ebd69c2c7d12abee1da1f6c2228232c6bc87.tar.bz2
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.
Diffstat (limited to 'tcc.h')
-rw-r--r--tcc.h4
1 files changed, 3 insertions, 1 deletions
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 */