This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Compile errors creating Redboot for I386pc
I don't have gcc3 installed so i've not been able to experiment. But
the manual says...
alias ("target")
The alias attribute causes the declaration to be emitted as an alias
for another symbol, which must be specified. For instance,
void __f () { /* do something */; }
void f () __attribute__ ((weak, alias ("__f")));
declares f to be a weak alias for __f. In C++, the mangled name for
the target must be used.
Could someone who has gcc3, or some other compiler that has a problem,
try moving the following after the __memchr is defined. It then
follows the example.
externC void *
memchr( const void *s, int c, size_t n ) CYGBLD_ATTRIB_WEAK_ALIAS(__memchr);
Andrew
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss