[fpc-devel] Need an elegant way to preset a specific memory area in elf files

Sergei Gorelkin sergei_gorelkin at mail.ru
Wed Apr 23 10:44:04 CEST 2014


23.04.2014 12:34, Michael Ring пишет:
> Thanks,
> but does not solve the problem, it's not about reading the data, it's about defining the data so
> that it is included in the elf file in the correct section so that the microcontroller is programmed
> with the values when the elf file is uploaded to the microcontroller.
>
You may specify a name of section to place your data (if this feature is enabled for the target you 
use -- but it should be enabled for all embedded targets):

const
   FreePascal_TLS_callback : pointer = @Exec_Tls_callback;
     public name '__FPC_tls_callbacks' section '.CRT$XLFPC';


Regards,
Sergei



More information about the fpc-devel mailing list