This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: linker script symbols to c source variables
- From: Daniel Jacobowitz <drow at false dot org>
- To: Klaus Rudolph <lts-rudolph at gmx dot de>
- Cc: binutils at sourceware dot org
- Date: Fri, 6 Jul 2007 10:40:54 -0400
- Subject: Re: linker script symbols to c source variables
- References: <20070706143047.58260@gmx.net>
On Fri, Jul 06, 2007 at 04:30:47PM +0200, Klaus Rudolph wrote:
> extern unsigned int* startCodeInFlashForRam;
> extern unsigned int* endCodeInFlashForRam;
> extern unsigned int* startCodeInRam;
Try extern unsigned int startCodeInFlashForRam[] instead. When you
define a symbol in a linker script, that's the symbol's _address_, not
its value.
--
Daniel Jacobowitz
CodeSourcery