From 7aac136035df243c8c536ff02a3102386df04ec0 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Tue, 28 May 2002 23:35:18 +0000 Subject: Patch from Yoshinori Sato to use C_SYMBOL_PREFIX for confused compilers, such as for v850 and h8300, per suggestion from Miles Bader. --- extra/Configs/Config.h8300 | 2 ++ include/features.h | 9 ++------- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/extra/Configs/Config.h8300 b/extra/Configs/Config.h8300 index 2fcc55998..2109a0940 100644 --- a/extra/Configs/Config.h8300 +++ b/extra/Configs/Config.h8300 @@ -193,3 +193,5 @@ SYSTEM_DEVEL_PREFIX = / #PREFIX = $(TOPDIR)/_install PREFIX = +# C defiend symbols prefix charactor +C_SYMBOL_PREFIX = _ \ No newline at end of file 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"); -- cgit v1.2.3