svn commit: trunk/uClibc: include
psm at uclibc.org
psm at uclibc.org
Fri Dec 16 17:36:59 UTC 2005
Author: psm
Date: 2005-12-16 09:36:58 -0800 (Fri, 16 Dec 2005)
New Revision: 12934
Log:
Correct C_SYMBOL_PREFIX handling for asm, supports only none or _
Modified:
trunk/uClibc/Rules.mak
trunk/uClibc/include/libc-internal.h
Changeset:
Modified: trunk/uClibc/Rules.mak
===================================================================
--- trunk/uClibc/Rules.mak 2005-12-16 15:09:24 UTC (rev 12933)
+++ trunk/uClibc/Rules.mak 2005-12-16 17:36:58 UTC (rev 12934)
@@ -400,6 +400,10 @@
CFLAGS+=-DNDEBUG
endif
+ifneq ($(strip $(C_SYMBOL_PREFIX)),"")
+CFLAGS+=-D__SYMBOL_PREFIX=1
+endif
+
# moved from ldso/{ldso,libdl}
# BEWARE!!! At least mips* will die if -O0 is used!!!
ifeq ($(TARGET_ARCH),mips)
Modified: trunk/uClibc/include/libc-internal.h
===================================================================
--- trunk/uClibc/include/libc-internal.h 2005-12-16 15:09:24 UTC (rev 12933)
+++ trunk/uClibc/include/libc-internal.h 2005-12-16 17:36:58 UTC (rev 12934)
@@ -47,7 +47,11 @@
#else /* __ASSEMBLER__ */
-# define C_SYMBOL_NAME(name) __C_SYMBOL_PREFIX__ ##name
+#ifdef __SYMBOL_PREFIX
+# define C_SYMBOL_NAME(name) _##name
+#else
+# define C_SYMBOL_NAME(name) name
+#endif
# define strong_alias(name, aliasname) \
.global C_SYMBOL_NAME (aliasname) ; \
More information about the uClibc-cvs
mailing list