This is the mail archive of the ecos-devel@sources.redhat.com 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: RE problem with gcc3.2 compiler


Thanks Jifl for your response. With the warning when I
try to run my code, my system hangs. That mean
"--gc-sections" flag must be cleaning up something
else.  

Do you any chance have  "sparc-elf" for gcc3.x toolset
for a linux machine. I compiled the tool set on my
linux machine,  I still have the same
problem(constructor ordering). 

I downloaded the "sparc-elf" binary file from
"www.gaisler.com" website. I get the following error. 
root@ssc045 examples]# sparc-rtems-gcc hello.c -I./ -o
hello.out
-I/tmp/ecos/install/include -L/tmp/ecos/install/lib
-nostdlib
-Wl,--gc-sections -Ttarget.ld
/opt/rtems/lib/gcc-lib/sparc-rtems/3.2.3/../../../../sparc-rtems/bin/ld:
warning: cannot find entry symbol start; defaulting to
40001300



No idea how to approach this.
               Thanks in advance 
                    Mike

--- Jonathan Larmour <jifl@eCosCentric.com> wrote:
> Ottawa Guy wrote:
> > 
> > Now I think my problem lies in linking. When I
> compile
> > the program without "-Wl,--gc-sections" I get the
> > following warning and my program fails  
> > 
> > sparc-elf-gcc hello.c -o hello1.out
> -L./install/lib
> > -I./install/include -Ttarget.ld -nostdlib -I./ 
> >
>
/opt/gnutools/bin/../lib/gcc-lib/sparc-elf/3.2.2/../../../../sparc-elf/bin/ld:
> > warning: no memory region specified for section
> > `.ram_vectors'
> 
> That warning sholdn't be there, but that's unlikely
> to be your problem. 
> This is from the sparc hal's vectors.S:
> ! Define a section that reserves space at the start
> of RAM for the
> ! vectors to be copied into, for ROM start only.
> 
>          .section ".ram_vectors","awx",@nobits
> 
> i.e. it's not relevant for RAM startup.
> 
> Jifl
> -- 
> eCosCentric    http://www.eCosCentric.com/    The
> eCos and RedBoot experts
> --["No sense being pessimistic, it wouldn't work
> anyway"]-- Opinions==mine
> 


__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com


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