build: Rename libmd_alias() to libmd_strong_alias()
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
diff --git a/src/local-link.h b/src/local-link.h
index 6044c5d..7953116 100644
--- a/src/local-link.h
+++ b/src/local-link.h
@@ -43,12 +43,12 @@
* maintainable.
*/
#if defined(__APPLE__)
-#define libmd_alias(alias, symbol) \
+#define libmd_strong_alias(alias, symbol) \
__asm__(".globl _" #alias); \
__asm__(".set _" #alias ", _" #symbol); \
extern __typeof__(symbol) alias
#elif !defined(_MSC_VER)
-#define libmd_alias(alias, symbol) \
+#define libmd_strong_alias(alias, symbol) \
extern __typeof__(symbol) alias __attribute__((__alias__(#symbol)))
#endif
@@ -60,7 +60,7 @@
__asm__(".symver " #symbol "," #alias "@" #version)
#else
#define libmd_symver_default(alias, symbol, version) \
- libmd_alias(alias, symbol)
+ libmd_strong_alias(alias, symbol)
#define libmd_symver_variant(alias, symbol, version)
#endif
diff --git a/src/sha2.c b/src/sha2.c
index 15c4fd3..5ffa883 100644
--- a/src/sha2.c
+++ b/src/sha2.c
@@ -815,10 +815,10 @@ SHA384Init(SHA2_CTX *context)
context->bitcount[0] = context->bitcount[1] = 0;
}
-#ifdef libmd_alias
-libmd_alias(SHA384Transform, SHA512Transform);
-libmd_alias(SHA384Update, SHA512Update);
-libmd_alias(SHA384Pad, SHA512Pad);
+#ifdef libmd_strong_alias
+libmd_strong_alias(SHA384Transform, SHA512Transform);
+libmd_strong_alias(SHA384Update, SHA512Update);
+libmd_strong_alias(SHA384Pad, SHA512Pad);
#else
void
SHA384Transform(uint64_t state[8], const uint8_t data[SHA512_BLOCK_LENGTH])