ss555 BSP - Debug mode, non-debug mode questions for linker file
David Querbach
querbach at realtime.bc.ca
Mon Oct 31 19:55:35 UTC 2005
On Sat, Oct 29, 2005 at 01:47:15AM +1000, ap at rsise.anu.edu.au wrote:
> - The linker command file (linkcmds) seems to be weird, if debugging is
> switched off, i.e. the program is supposed to reside in RAM. As far as I
> can see, the .data section seems to be placed right behind the .text
> section, even is RTEMS_DEBUG is not defined. This should work fine, as
> long as data.contents.start is actually in RAM. Otherwise this seems to be
> broken. -
>
> Or does this simply make sure, that .data is defined correctly, while the
> actual section needs to be found right after .text in the flash image? (in
> order to copy it into RAM then)
Yes. When RTEMS_DEBUG is defined, the link and load addresses of the .data
section are the same: at the end of the .text section. When RTEMS_DEBUG is
not defined, .data is linked to the start of the MPC555 internal RAM, but is
still loaded at the end of the .text section so that it can be burned into
flash ROM.
Regards,
David Querbach
Real-Time Systems Inc.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.rtems.org/pipermail/users/attachments/20051031/b781a36a/attachment-0001.bin>
More information about the users
mailing list