(strong_alias): Define special version for HAVE_ASM_GLOBAL_DOT_NAME.
authordrepper <drepper>
Tue, 5 Dec 2000 03:41:05 +0000 (03:41 +0000)
committerdrepper <drepper>
Tue, 5 Dec 2000 03:41:05 +0000 (03:41 +0000)
(weak_alias): Likewise.

include/libc-symbols.h

index 4acf848..06d5602 100644 (file)
   ASM_GLOBAL_DIRECTIVE C_SYMBOL_NAME (alias) ASM_LINE_SEP      \
   .set C_SYMBOL_NAME (alias),C_SYMBOL_NAME (original)
 # else
   ASM_GLOBAL_DIRECTIVE C_SYMBOL_NAME (alias) ASM_LINE_SEP      \
   .set C_SYMBOL_NAME (alias),C_SYMBOL_NAME (original)
 # else
-#  define strong_alias(original, alias)                \
+#  ifdef HAVE_ASM_GLOBAL_DOT_NAME
+#   define strong_alias(original, alias)       \
+  ASM_GLOBAL_DIRECTIVE C_SYMBOL_NAME (alias) ASM_LINE_SEP      \
+  C_SYMBOL_NAME (alias) = C_SYMBOL_NAME (original) ASM_LINE_SEP        \
+  ASM_GLOBAL_DIRECTIVE C_SYMBOL_DOT_NAME (alias) ASM_LINE_SEP  \
+  C_SYMBOL_DOT_NAME (alias) = C_SYMBOL_DOT_NAME (original)
+#  else
+#   define strong_alias(original, alias)       \
   ASM_GLOBAL_DIRECTIVE C_SYMBOL_NAME (alias) ASM_LINE_SEP      \
   C_SYMBOL_NAME (alias) = C_SYMBOL_NAME (original)
   ASM_GLOBAL_DIRECTIVE C_SYMBOL_NAME (alias) ASM_LINE_SEP      \
   C_SYMBOL_NAME (alias) = C_SYMBOL_NAME (original)
+#  endif
 # endif
 
 # ifdef HAVE_WEAK_SYMBOLS
 # endif
 
 # ifdef HAVE_WEAK_SYMBOLS
 
 #  else /* ! HAVE_ASM_WEAKEXT_DIRECTIVE */
 
 
 #  else /* ! HAVE_ASM_WEAKEXT_DIRECTIVE */
 
-#   define weak_alias(original, alias) \
+#   ifdef HAVE_ASM_GLOBAL_DOT_NAME
+#    define weak_alias(original, alias)        \
+  .weak C_SYMBOL_NAME (alias) ASM_LINE_SEP                     \
+  C_SYMBOL_NAME (alias) = C_SYMBOL_NAME (original) ASM_LINE_SEP        \
+  .weak C_SYMBOL_DOT_NAME (alias) ASM_LINE_SEP                 \
+  C_SYMBOL_DOT_NAME (alias) = C_SYMBOL_DOT_NAME (original)
+#   else
+#    define weak_alias(original, alias)        \
   .weak C_SYMBOL_NAME (alias) ASM_LINE_SEP     \
   C_SYMBOL_NAME (alias) = C_SYMBOL_NAME (original)
   .weak C_SYMBOL_NAME (alias) ASM_LINE_SEP     \
   C_SYMBOL_NAME (alias) = C_SYMBOL_NAME (original)
+#   endif
 
 #   define weak_extern(symbol) \
   .weak C_SYMBOL_NAME (symbol)
 
 #   define weak_extern(symbol) \
   .weak C_SYMBOL_NAME (symbol)