This is the mail archive of the
ecos-discuss@sourceware.cygnus.com
mailing list for the eCos project.
Re: removing .sdata and .sbss
- To: Jonathan Larmour <jlarmour at cygnus dot co dot uk>
- Subject: Re: [ECOS] removing .sdata and .sbss
- From: Daeyoung Kim <dkim at cise dot ufl dot edu>
- Date: Wed, 06 Oct 1999 16:30:18 -0400
- Cc: ecos-discuss at sourceware dot cygnus dot com
- Organization: CISE, University of Florida
- References: <37FB9CAF.EAF7A026@cise.ufl.edu> <37FBACC4.D3B21FB4@cygnus.co.uk>
Dear, Jonathan,
I used option -msdata=none to compile both eCos library and example/twothread.c.
But, I got below Map file which says simple_threadA/B are
allocated to .sbss section.
*(.sbss)
.sbss 0x01045a44 0x8 twothreads.o
0x01045a44 simple_threadB
0x01045a48 simple_threadA
.sbss 0x01045a4c 0x4
//e/eCosSeIma/install/lib/libtarget.a(libc_mainthread.o)
0x01045a4c __sncyg_libc_main_thread
0x01045a50 __SBSS_END__=M(.)
0x01045a50 __SBSS2_START__=M(.)
Did I miss anything?
Thanks for your reply,
Daeyoung
Jonathan Larmour wrote:
> Daeyoung Kim wrote:
> >
> > Hi,
> >
> > I need to remove .sdata and .sbss section from memory layout of eCos
> > application.
> > In stead I will put all variables in .data and .bss section.
> >
> > So, I tried to use -mno-sdata and -msdata=none while compiling eCos and
> > application,
> > but I failed. I am using powerpc-eabi-gcc.
>
> I would definitely have thought -msdata=none would work. Are you saying that
> it doesn't seem to make any difference, or does something also go wrong?
>
> Jifl
> --
> Cygnus Solutions, 35 Cambridge Place, Cambridge, UK. Tel: +44 (1223) 728762
> "I used to have an open mind but || Get yer free open source RTOS's here...
> my brains kept falling out." || http://sourceware.cygnus.com/ecos
> Help fight spam! http://spam.abuse.net/ These opinions are all my own fault