* [ECOS] removing .sdata and .sbss
@ 1999-10-06 12:02 Daeyoung Kim
1999-10-06 13:10 ` Jonathan Larmour
0 siblings, 1 reply; 4+ messages in thread
From: Daeyoung Kim @ 1999-10-06 12:02 UTC (permalink / raw)
To: ecos-discuss
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.
Could anybody help me out?
Daeyoung Kim
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [ECOS] removing .sdata and .sbss
1999-10-06 12:02 [ECOS] removing .sdata and .sbss Daeyoung Kim
@ 1999-10-06 13:10 ` Jonathan Larmour
1999-10-06 13:31 ` Daeyoung Kim
0 siblings, 1 reply; 4+ messages in thread
From: Jonathan Larmour @ 1999-10-06 13:10 UTC (permalink / raw)
To: Daeyoung Kim; +Cc: ecos-discuss
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [ECOS] removing .sdata and .sbss
1999-10-06 13:10 ` Jonathan Larmour
@ 1999-10-06 13:31 ` Daeyoung Kim
1999-11-08 14:37 ` Jonathan Larmour
0 siblings, 1 reply; 4+ messages in thread
From: Daeyoung Kim @ 1999-10-06 13:31 UTC (permalink / raw)
To: Jonathan Larmour; +Cc: ecos-discuss
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [ECOS] removing .sdata and .sbss
1999-10-06 13:31 ` Daeyoung Kim
@ 1999-11-08 14:37 ` Jonathan Larmour
0 siblings, 0 replies; 4+ messages in thread
From: Jonathan Larmour @ 1999-11-08 14:37 UTC (permalink / raw)
To: Daeyoung Kim; +Cc: ecos-discuss
Daeyoung Kim wrote:
>
> 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?
Sorry for the huge delay in replying - this was buried in my e-mail and I
didn't spend time looking at this. Gary Thomas here just did, and it looks
like you have found an inconsistency in the way gcc handles its arguments.
As a workaround, can you try also using "-G 0" as well as (or possibly even
instead of) -msdata=none? I haven't tried it but it may fix your problem for
now.
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
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~1999-11-08 14:37 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-10-06 12:02 [ECOS] removing .sdata and .sbss Daeyoung Kim
1999-10-06 13:10 ` Jonathan Larmour
1999-10-06 13:31 ` Daeyoung Kim
1999-11-08 14:37 ` Jonathan Larmour
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).