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 _______________________________________________ fpc-devel maillist - [email protected] http://lists.freepascal.org/mailman/listinfo/fpc-devel
