[uClibc]m68k-elf tools and uClibc.
Erik Andersen
andersen at lineo.com
Wed Jul 11 03:28:46 UTC 2001
On Wed Jul 11, 2001 at 01:05:28PM +1000, David McCullough wrote:
>
> Ok, the problem is with the weak_alias macro, I have fix that I think is
> not going to cause anyone pain :-)
>
> Basically weak_alias declares the function and gcc thinks it's different
> to the prototype in another file. Most likely the parameters are causing
> the error because "typeof" cannot do parameters to functions (i think),
>
> My current workaround will be to add a ASM_WEAK_ALIASES config option
> to cover this case, sound reasonable ?
How about this instead? Could you check if this fixes it?
diff -u -b -B -w -p -r1.22 features.h
--- include/features.h 2001/06/12 21:45:09 1.22
+++ include/features.h 2001/07/11 03:27:23
@@ -115,8 +115,7 @@
asm (".section " ".gnu.warning." #symbol "\n\t.previous"); \
static const char __evoke_link_warning_##symbol[] \
__attribute__ ((section (".gnu.warning." #symbol "\n\t#"))) = msg;
-# define weak_alias(name, aliasname) \
- extern __typeof (name) aliasname __attribute__ ((weak, alias (#name)));
+# define weak_alias(name, aliasname) __asm__(".weak aliasname;aliasname = name");
#else
# define link_warning(symbol, msg) \
asm (".stabs \"" msg "\",30,0,0,0\n\t" \
-Erik
--
Erik B. Andersen email: andersen at lineo.com
--This message was written using 73% post-consumer electrons--
More information about the uClibc
mailing list