SPARC patch to gcc-3.2.3
Jiri Gaisler
jiri@gaisler.com
Sun Jan 30 22:43:00 GMT 2005
I finally managed to track down why gcc-3.x would not create
proper eCos images for sparc targets. It is because the gcc
sparc-elf target has the C++ pragma init_priority disabled by
default! eCos uses this to run the constructors in a
particular order. I have attached a patch if anyone is
interested. With this patch, a tool chain with binutils-2.13,
gcc-3.2.3 and newlib-1.12 is built without problems for
--target=sparc-elf
A pre-built tool-chain for linux hosts (bcc-linux-1.0.9)
is availble from:
http://www.gaisler.se/bin/bcc-linux-1.0.9.tar.bz2
Should be installed in /opt .
The same problem still remains in gcc-3.4.3, but this
gcc version does not build newlib correctly, so sparc
users should stay with gcc-3.2.3 for the time being ...
Jiri.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: gcc-3.2.3-sparc-init-priority.diff
URL: <http://sourceware.org/pipermail/ecos-devel/attachments/20050130/6ecb59c0/attachment.ksh>
More information about the Ecos-devel
mailing list