diff options
author | David McCullough <davidm@snapgear.com> | 2001-07-11 13:30:27 +0000 |
---|---|---|
committer | David McCullough <davidm@snapgear.com> | 2001-07-11 13:30:27 +0000 |
commit | 635c2432c74546f31e2d00de857c769ff16a0a4e (patch) | |
tree | d0cb3526441fef33dc09108ba725c3c7b7fdbadd | |
parent | 8ccf39ef91cb4dde804e6fecbe571513668a90ef (diff) |
The weak_alias macro was not genertaing asm with the correct alias names.
Start of the C++ header changes.
-rw-r--r-- | include/features.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/include/features.h b/include/features.h index 7cb723b00..f86788fa4 100644 --- a/include/features.h +++ b/include/features.h @@ -79,10 +79,6 @@ #endif -/* No C++ */ -#define __BEGIN_DECLS -#define __END_DECLS - /* GNUish things */ #define __CONSTVALUE #define __CONSTVALUE2 @@ -115,7 +111,8 @@ 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__(".weak aliasname;aliasname = name"); +# define weak_alias(name, aliasname) \ + asm(".global " #name ";.weak " #aliasname ";" #aliasname "=" #name ";"); #else # define link_warning(symbol, msg) \ asm (".stabs \"" msg "\",30,0,0,0\n\t" \ |