summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>2000-08-10 18:34:10 +0000
committerMatt Wilson <msw@redhat.com>2000-08-10 18:34:10 +0000
commit28bc799512b78b289a3d223a83bf5b5bcc80bcd1 (patch)
tree026c40476a4198078f5415a3d45e97316f316df2
parent1fcb4b241b7c070dd062545d7a4a956afeae6eeb (diff)
downloadanaconda-28bc799512b78b289a3d223a83bf5b5bcc80bcd1.tar.gz
anaconda-28bc799512b78b289a3d223a83bf5b5bcc80bcd1.tar.xz
anaconda-28bc799512b78b289a3d223a83bf5b5bcc80bcd1.zip
fix alpha build; use alias attribute instead of inline asm
-rw-r--r--loader/printf-stub.c13
1 files changed, 3 insertions, 10 deletions
diff --git a/loader/printf-stub.c b/loader/printf-stub.c
index 9761c7830..70e86f1f2 100644
--- a/loader/printf-stub.c
+++ b/loader/printf-stub.c
@@ -15,17 +15,10 @@
#include <string.h>
#include <ctype.h>
-#define ASM_GLOBAL_DIRECTIVE .globl
-#define __SYMBOL_PREFIX
-
/* Define ALIAS as a strong alias for ORIGINAL. */
-#define strong_alias(original, alias) \
- asm (__string_1 (ASM_GLOBAL_DIRECTIVE) " " __SYMBOL_PREFIX #alias "\n" \
- ".set " __SYMBOL_PREFIX #alias "," __SYMBOL_PREFIX #original);
-
-/* Helper macros used above. */
-#define __string_1(x) __string_0(x)
-#define __string_0(x) #x
+# define strong_alias(name, aliasname) _strong_alias(name, aliasname)
+# define _strong_alias(name, aliasname) \
+ extern __typeof (name) aliasname __attribute__ ((alias (#name)));
#define do_div(n,base) ({ \
int __res; \