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 19:30:50 +0100
- Subject: Re: RE problem with gcc3.2 compiler
- References: <20031024174703.6992.qmail@web13008.mail.yahoo.com>
Ottawa Guy wrote:
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.
You mean it works when you use -Wl,--gc-sections?
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).
Sorry I don't. We've recommended Jiri's site for those tools since this is
his port.
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
That may be benign, however it's meant to get the start information from
target.ld, e.g. in hal/sparc/arch/current/src/sparc.ld:
ENTRY(reset_vector)
Jifl
--
eCosCentric http://www.eCosCentric.com/ The eCos and RedBoot experts
--["No sense being pessimistic, it wouldn't work anyway"]-- Opinions==mine