Re: [Mspgcc-users] Fixing const char string in memory using linker script

2013-01-29 Thread Adam Ford
TH = 0x } -Original Message- From: Wayne Uroda [mailto:w.ur...@gmail.com] Sent: Monday, January 28, 2013 6:38 PM To: mspgcc-users@lists.sourceforge.net Subject: Re: [Mspgcc-users] Fixing const char string in memory using linker script Hi Bob, I do the following: in my linker

Re: [Mspgcc-users] Fixing const char string in memory using linker script

2013-01-28 Thread Wayne Uroda
Hi Bob, I do the following: in my linker script, I have something like .text : { *(.swversection) // no need to manually advance `.' // other input sections follow } > text Then in the code: __attribute__ ((section(".swversection"))) const char swVer[] = ...; I hope thi

Re: [Mspgcc-users] Fixing const char string in memory using linker script

2013-01-28 Thread Doug Carlson
Howdy! I did a similar thing a while back, albeit just with a fixed integer value. Here's the discussion with links to the relevant files [1 ]. If you can come up with a more elegant method, let me know! Thanks, Doug

[Mspgcc-users] Fixing const char string in memory using linker script

2013-01-28 Thread Robert Henig
I am trying to force a string into a fixed location using a linker script. The script contains: .text : { swVer = .; . += 8; } The code contains: const char swVer[] = "01.0904\0"; After compiling the .map file shows that eight bytes are reserved at 0xc000 and a sym