support label offsets for ARM like GAS, allows things like ADR r4, .label + 256

git-svn-id: trunk@25938 -
This commit is contained in:
Károly Balogh 2013-11-05 18:10:54 +00:00
parent b67e4fb8b3
commit 628149d923

View File

@ -556,6 +556,11 @@ Unit raarmgas;
oper.InitRef;
oper.opr.ref.symbol:=hl;
oper.opr.ref.base:=NR_PC;
if (actasmtoken in [AS_PLUS, AS_MINUS]) then
begin
l:=BuildConstExpression(true,false);
oper.opr.ref.offset:=l;
end;
end;
end;