The purpose of .work section

SAeeD salpha.2004 at gmail.com
Tue Oct 2 15:56:44 UTC 2012


According to c/src/lib/libbsp/arm/shared/startup/linkcmds.base, it takes
the whole space of RAM:
    RamBase = ORIGIN (REGION_WORK);
    RamSize = LENGTH (REGION_WORK);

Why the whole space?
Why some BSPs like CSB337 don't have .work in their linkcmds? Is it
unnecessary?

Thanks,
SAeeD

On Tue, Oct 2, 2012 at 5:13 PM, Sebastian Huber <
sebastian.huber at embedded-brains.de> wrote:

> The purpose of the .work section is to allocate a chunk from the address
> space for the RTEMS work space and the C program heap.
>
> --
> Sebastian Huber, embedded brains GmbH
>
> Address : Obere Lagerstr. 30, D-82178 Puchheim, Germany
> Phone   : +49 89 18 90 80 79-6
> Fax     : +49 89 18 90 80 79-9
> E-Mail  : sebastian.huber at embedded-**brains.de<sebastian.huber at embedded-brains.de>
> PGP     : Public key available on request.
>
> Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.
>
>
> ______________________________**_________________
> rtems-devel mailing list
> rtems-devel at rtems.org
> http://www.rtems.org/mailman/**listinfo/rtems-devel<http://www.rtems.org/mailman/listinfo/rtems-devel>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20121002/e7e16561/attachment-0001.html>


More information about the devel mailing list