aboutsummaryrefslogtreecommitdiff
path: root/libc-symbols.h
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1995-04-14 03:27:44 +0000
committerRoland McGrath <roland@gnu.org>1995-04-14 03:27:44 +0000
commit335aa3209b5d597a93733a7313e629e202731078 (patch)
treeef016dfb9b3380e0818db3de3222e7e6db13dd58 /libc-symbols.h
parent6e33fad374814f1a4bf80aa37d4ded9c9096edab (diff)
downloadglibc-335aa3209b5d597a93733a7313e629e202731078.zip
glibc-335aa3209b5d597a93733a7313e629e202731078.tar.gz
glibc-335aa3209b5d597a93733a7313e629e202731078.tar.bz2
* sysdeps/generic/expm1.c: #undef expm1 before weak_alias.
* libc-symbols.h [! HAVE_ASM_SET_DIRECTIVE] (strong_alias, strong_alias_asm): Use `foo = bar' syntax instead. * configure.in: Fix AC_ARG_WITH uses; check for --with-fp. Move $host_os checks to set gnu_ld/as and elf before sysdirs generation. Fix $with_fp test. [$elf=yes]: Prepend MACHINE/elf directory.
Diffstat (limited to 'libc-symbols.h')
-rw-r--r--libc-symbols.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/libc-symbols.h b/libc-symbols.h
index be88e76..a173b4d 100644
--- a/libc-symbols.h
+++ b/libc-symbols.h
@@ -80,6 +80,7 @@ Cambridge, MA 02139, USA. */
#endif
/* Define ALIAS as a strong alias for ORIGINAL. */
+#ifdef HAVE_ASM_SET_DIRECTIVE
#define strong_alias_asm(original, alias) \
.set C_SYMBOL_NAME (alias),C_SYMBOL_NAME (original)
#ifdef ASSEMBLER
@@ -88,6 +89,16 @@ Cambridge, MA 02139, USA. */
#define strong_alias(original, alias) \
asm (".set " __SYMBOL_PREFIX #alias "," __SYMBOL_PREFIX #original);
#endif
+#else
+#define strong_alias_asm(original, alias) \
+ C_SYMBOL_NAME (alias) = C_SYMBOL_NAME (original)
+#ifdef ASSEMBLER
+#define strong_alias(original, alias) strong_alias_asm (original, alias)
+#else
+#define strong_alias(original, alias) \
+ asm (__SYMBOL_PREFIX #alias " = " __SYMBOL_PREFIX #original);
+#endif
+#endif
/* Define ALIAS as a weak alias for ORIGINAL.
If weak aliases are not available, this defines a strong alias. */