public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] no memory reason specified for loadable section ".bss.getc_info"
@ 2005-08-12 12:05 Harish Kulkarni
  2005-08-12 12:15 ` Mark Salter
  0 siblings, 1 reply; 2+ messages in thread
From: Harish Kulkarni @ 2005-08-12 12:05 UTC (permalink / raw)
  To: ecos-discuss

Hello,

We are building eCos redboot with gcc 3.4.4 for leon
and finding the following compilation issue.

We can compile the same peice of code with gcc 3.2.1.

sparc-elf-gcc -msoft-float -g -nostdlib
-Wl,--gc-sections -Wl,-static -L/ecos-c/
cygwin/tmp/leon_cyc_sparcelf/install/lib -Ttarget.ld
-o /ecos-c/cygwin/tmp/leon_
cyc_sparcelf/install/bin/redboot.elf
/ecos-c/cygwin/tmp/leon_cyc_sparcelf/instal
l/lib/version.o
/compilers/sparc-elf/lib/gcc/sparc-elf/3.4.4/../../../../sparc-elf/bin/ld:
error
: no memory region specified for loadable section
`.bss.getc_info'
collect2: ld returned 1 exit status
make[1]: ***
[/ecos-c/cygwin/tmp/leon_cyc_sparcelf/install/bin/redboot.elf]
Error 1

-Thanks
Harish


Send instant messages to your online friends http://uk.messenger.yahoo.com 

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [ECOS] no memory reason specified for loadable section ".bss.getc_info"
  2005-08-12 12:05 [ECOS] no memory reason specified for loadable section ".bss.getc_info" Harish Kulkarni
@ 2005-08-12 12:15 ` Mark Salter
  0 siblings, 0 replies; 2+ messages in thread
From: Mark Salter @ 2005-08-12 12:15 UTC (permalink / raw)
  To: Harish Kulkarni; +Cc: ecos-discuss

On Fri, 2005-08-12 at 13:04 +0100, Harish Kulkarni wrote:
> Hello,
> 
> We are building eCos redboot with gcc 3.4.4 for leon
> and finding the following compilation issue.
> 
> We can compile the same peice of code with gcc 3.2.1.
> 
> sparc-elf-gcc -msoft-float -g -nostdlib
> -Wl,--gc-sections -Wl,-static -L/ecos-c/
> cygwin/tmp/leon_cyc_sparcelf/install/lib -Ttarget.ld
> -o /ecos-c/cygwin/tmp/leon_
> cyc_sparcelf/install/bin/redboot.elf
> /ecos-c/cygwin/tmp/leon_cyc_sparcelf/instal
> l/lib/version.o
> /compilers/sparc-elf/lib/gcc/sparc-elf/3.4.4/../../../../sparc-elf/bin/ld:
> error
> : no memory region specified for loadable section
> `.bss.getc_info'
> collect2: ld returned 1 exit status
> make[1]: ***
> [/ecos-c/cygwin/tmp/leon_cyc_sparcelf/install/bin/redboot.elf]
> Error 1
> 

This is probably a linker script issue. I saw it on another architecture
recently. Try something like this:

*** sparc.ld.~1.3.~	Thu Apr 10 14:07:58 2003
--- sparc.ld	Fri Aug 12 08:12:50 2005
***************
*** 125,131 ****
  #define SECTION_bss(_region_, _vma_, _lma_) \
      .bss _vma_ : _lma_ \
      { __bss_start = ABSOLUTE (.); \
!     *(.scommon) *(.dynbss) *(.bss) *(COMMON) \
      __bss_end = ABSOLUTE (.); } \
      > _region_
  
--- 125,131 ----
  #define SECTION_bss(_region_, _vma_, _lma_) \
      .bss _vma_ : _lma_ \
      { __bss_start = ABSOLUTE (.); \
!     *(.scommon) *(.dynbss) *(.bss*) *(COMMON) \
      __bss_end = ABSOLUTE (.); } \
      > _region_
  

--Mark



-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-08-12 12:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-08-12 12:05 [ECOS] no memory reason specified for loadable section ".bss.getc_info" Harish Kulkarni
2005-08-12 12:15 ` Mark Salter

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).