[fpc-devel] internal assembler, .text,.data,.bss
Florian Klaempfl
florian at freepascal.org
Mon Feb 14 09:35:51 CET 2011
Am 13.02.2011 16:28, schrieb Armin Diehl:
> short question regarding the internal assembler:
>
> with as i can access .text, .data and .bss like:
>
> movl $.data,%eax
> movl $.text,%eax
> movl $.bss,%eax
>
> this does not seem to work with the internal assembler like:
> function __getBssStart : longint; assembler; export;
> [alias:'__getBssStart'];
> asm
> movl $.bss,%eax
> ret
> end;
>
> any hint on how to do this with the internal asm ?
sdata : ptruint; external name '__data_start__';
Then take the address of sdata
More information about the fpc-devel
mailing list