Re: Defining symbols in a linker script

2014-04-18 Thread Mike via D.gnu
On Saturday, 19 April 2014 at 01:50:45 UTC, Iain Buclaw via D.gnu wrote: I think you mean to 'extern (C) extern' Yes, that's what I was looking for. Thanks.

Re: Defining symbols in a linker script

2014-04-18 Thread Iain Buclaw via D.gnu
On 19 Apr 2014 01:35, "Mike via D.gnu" wrote: > > Hello, > > It is common practice in ARM Cortex-M bare metal C/C++ programs to define symbols in the linker so one can initialize the .data and .bss segments and know the boundaries of one's stack and heap. It looks something like this. > > li

Defining symbols in a linker script

2014-04-18 Thread Mike via D.gnu
Hello, It is common practice in ARM Cortex-M bare metal C/C++ programs to define symbols in the linker so one can initialize the .data and .bss segments and know the boundaries of one's stack and heap. It looks something like this. linkerscript __text_end__ = .; .data : AT(__text