From 8e4da42384164d6eb862665d907b3b1138da2f94 Mon Sep 17 00:00:00 2001 From: Michael Matz Date: Wed, 29 Jun 2016 15:57:32 +0200 Subject: 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. --- tcc.h | 1 + 1 file changed, 1 insertion(+) (limited to 'tcc.h') 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 -- cgit v1.3.1