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

Michael Ring mail at michael-ring.org
Wed Apr 23 17:02:56 CEST 2014


Thank you for this tip Sergei, this seems to work just fine!

Michael


Am 23.04.14 10:44, schrieb Sergei Gorelkin:
> 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
> _______________________________________________
> fpc-devel maillist  -  fpc-devel at lists.freepascal.org
> http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel




More information about the fpc-devel mailing list