This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: About SBSS
- To: Alexandre D'Alton <r9954c at email dot sps dot mot dot com>
- Subject: Re: [ECOS] About SBSS
- From: Jonathan Larmour <jlarmour at redhat dot co dot uk>
- Date: Mon, 24 Jul 2000 15:01:22 +0100
- CC: ecos-discuss at sourceware dot cygnus dot com
- Organization: Red Hat UK Ltd.
- References: <397C38EE.44E6465C@email.sps.mot.com>
Alexandre D'Alton wrote:
>
> Hello,
>
> I have configured eCos with CYGNUM_LIBC_MALLOC_MEMPOOL_SIZE of 30MBytes,
> and now booting eCos takes a lot of time...
Yeah. I've fixed this now, but it's not in the public sources yet.
> I saw that this memory is in the SBSS section, this section is
> initialized in vectors.S.
> My question is :
> -Will eCos works normally if I do not initialize SBSS or have I to
> create another linker section in order to hold the malloc() memory ?
No, you must still initialize the sbss. But creating a linker section for
the malloc memory is probably the best thing to do for now. If you edit the
code in language/c/libc/VERSION/src/stdlib/malloc.cxx you can add an
__attribute__((section(".mysection"))) to the malloc pool static array
definition so that it goes in that section. You will then have to map that
input section to an appropriate new output section in the linker script.
HTH,
Jifl
--
Red Hat, 35 Cambridge Place, Cambridge, UK. CB2 1NS Tel: +44 (1223) 728762
"Plan to be spontaneous tomorrow." || These opinions are all my own fault