summaryrefslogtreecommitdiff
path: root/include/features.h
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2002-05-28 23:35:18 +0000
committerEric Andersen <andersen@codepoet.org>2002-05-28 23:35:18 +0000
commit7aac136035df243c8c536ff02a3102386df04ec0 (patch)
treec863816baa8c828cf38fb099ee8393f11bb46448 /include/features.h
parent58bd16ab173a4df7b4d2b4d1f1c6a9aaff165ee8 (diff)
Patch from Yoshinori Sato <qzb04471@nifty.ne.jp> to use
C_SYMBOL_PREFIX for confused compilers, such as for v850 and h8300, per suggestion from Miles Bader.
Diffstat (limited to 'include/features.h')
-rw-r--r--include/features.h9
1 files changed, 2 insertions, 7 deletions
diff --git a/include/features.h b/include/features.h
index 1d320380f..230baedd7 100644
--- a/include/features.h
+++ b/include/features.h
@@ -391,16 +391,11 @@ uClibc was built without large file support enabled.
static const char __evoke_link_warning_##symbol[] \
__attribute__ ((section (".gnu.warning." #symbol "\n\t#"))) = msg;
#else /* !defined HAVE_ELF */
-# if defined(__H8300H__)
-# define SYMBOL_PREFIX "_" /* H8/300 Target of add "_" to symbol prefix */
-# else
-# define SYMBOL_PREFIX
-# endif
# define strong_alias(name, aliasname) _strong_alias (name, aliasname)
# define weak_alias(name, aliasname) _strong_alias (name, aliasname)
# define _strong_alias(name, aliasname) \
- __asm__(".global " SYMBOL_PREFIX #aliasname "\n" \
- ".set " SYMBOL_PREFIX #aliasname "," SYMBOL_PREFIX #name);
+ __asm__(".global " C_SYMBOL_PREFIX #aliasname "\n" \
+ ".set " C_SYMBOL_PREFIX #aliasname "," C_SYMBOL_PREFIX #name);
# define link_warning(symbol, msg) \
asm (".stabs \"" msg "\",30,0,0,0\n\t" \
".stabs \"" #symbol "\",1,0,0,0\n");