This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: linker script symbols to c source variables


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]