This is the mail archive of the
ecos-devel@sources.redhat.com
mailing list for the eCos project.
Re: RE problem with gcc3.2 compiler
- From: Jonathan Larmour <jifl at eCosCentric dot com>
- To: Ottawa Guy <ottawaguy81 at yahoo dot com>
- Cc: ecos-devel at sources dot redhat dot com
- Date: Fri, 24 Oct 2003 17:38:13 +0100
- Subject: Re: RE problem with gcc3.2 compiler
- References: <20031024163219.96916.qmail@web13009.mail.yahoo.com>
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