Some further investigations
This code (I don't know what it does!) compiles fine:
[pascal]var
test: longint;
procedure MyAsmProc(); assembler;
asm
ldr r0,.Ltest
.Ltest:
.long test
end;
[/pascal]

Stated that I don't know arm assembly at all, are you sure that your calls are right?