aboutsummaryrefslogtreecommitdiff
path: root/tcc.h
diff options
context:
space:
mode:
authorMichael Matz <matz@suse.de>2016-06-29 15:57:32 +0200
committerMichael Matz <matz@suse.de>2016-12-15 17:47:07 +0100
commit8e4da42384164d6eb862665d907b3b1138da2f94 (patch)
treefe7ac034c9839d95f9c2580f6e6d2b54b4743cdd /tcc.h
parentc82e52d55bd31eea943c616ad780f27e5ab9dc7a (diff)
downloadtinycc-8e4da42384164d6eb862665d907b3b1138da2f94.tar.gz
tinycc-8e4da42384164d6eb862665d907b3b1138da2f94.tar.bz2
Accept more asm expressions
In particular subtracting a defined symbol from current section makes the value PC relative, and .org accepts symbolic expressions as well, if the symbol is from the current section.
Diffstat (limited to 'tcc.h')
-rw-r--r--tcc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/tcc.h b/tcc.h
index 4de48e7..7279150 100644
--- a/tcc.h
+++ b/tcc.h
@@ -555,6 +555,7 @@ typedef struct CachedInclude {
typedef struct ExprValue {
uint64_t v;
Sym *sym;
+ int pcrel;
} ExprValue;
#define MAX_ASM_OPERANDS 30