diff options
author | Eric Andersen <andersen@codepoet.org> | 2001-10-11 08:29:22 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2001-10-11 08:29:22 +0000 |
commit | 5c12c8eecd5f2e06c200651e90befe85efcf166f (patch) | |
tree | dbaed54145d28357e3b145ad8631529ffd0c2344 /include/features.h | |
parent | a924265e43cf2fcad97fc9489da482a27b0faf93 (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.h | 14 |
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" \ |