This is the mail archive of the ecos-discuss@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: no memory reason specified for loadable section".bss.getc_info"


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]