summaryrefslogtreecommitdiff
path: root/include/features.h
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2001-10-11 08:29:22 +0000
committerEric Andersen <andersen@codepoet.org>2001-10-11 08:29:22 +0000
commit5c12c8eecd5f2e06c200651e90befe85efcf166f (patch)
treedbaed54145d28357e3b145ad8631529ffd0c2344 /include/features.h
parenta924265e43cf2fcad97fc9489da482a27b0faf93 (diff)
Patch from Miles Bader <miles@lsi.nec.co.jp> to support the v850.
He sent this patch to me a month ago, but I forgot to apply it...
Diffstat (limited to 'include/features.h')
-rw-r--r--include/features.h14
1 files changed, 9 insertions, 5 deletions
diff --git a/include/features.h b/include/features.h
index 21e36ae51..3d61b76d9 100644
--- a/include/features.h
+++ b/include/features.h
@@ -329,12 +329,16 @@
/* Some nice features only work properly with ELF */
#if defined HAVE_ELF
-# define link_warning(symbol, msg) \
- asm (".section " ".gnu.warning." #symbol "\n\t.previous"); \
- static const char __evoke_link_warning_##symbol[] \
+# define link_warning(symbol, msg) \
+ 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) \
- asm(".global " #name ";.weak " #aliasname ";" #aliasname "=" #name ";");
+# define weak_alias(name, aliasname) \
+ asm(".global " C_SYMBOL_PREFIX #name ";" \
+ ".weak " C_SYMBOL_PREFIX #aliasname ";" \
+ C_SYMBOL_PREFIX #aliasname "=" C_SYMBOL_PREFIX #name ";");
+# define weak_symbol(name) \
+ asm(".weak " C_SYMBOL_PREFIX #name ";");
#else
# define link_warning(symbol, msg) \
asm (".stabs \"" msg "\",30,0,0,0\n\t" \