mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-10-25 21:43:46 +02:00
support label offsets for ARM like GAS, allows things like ADR r4, .label + 256
git-svn-id: trunk@25938 -
This commit is contained in:
parent
b67e4fb8b3
commit
628149d923
@ -556,6 +556,11 @@ Unit raarmgas;
|
|||||||
oper.InitRef;
|
oper.InitRef;
|
||||||
oper.opr.ref.symbol:=hl;
|
oper.opr.ref.symbol:=hl;
|
||||||
oper.opr.ref.base:=NR_PC;
|
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;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user