tccasm: Implement .set sym, expr

That, as well as "sym = expr", if expr contains symbols.
Slightly tricky because a definition from .set is overridable,
whereas proper definitions aren't.

This doesn't yet allow using this for override tricks from C
and global asm blocks because the symbol tables from C and asm
are separate.
This commit is contained in:
Michael Matz
2016-08-07 04:27:32 +02:00
parent 34fc6435ee
commit c4edfb4e08
3 changed files with 61 additions and 16 deletions

View File

@ -308,6 +308,7 @@
DEF_ASMDIR(align)
DEF_ASMDIR(balign)
DEF_ASMDIR(p2align)
DEF_ASMDIR(set)
DEF_ASMDIR(skip)
DEF_ASMDIR(space)
DEF_ASMDIR(string)