Commit 08b2c5dd8a51a77b1d9ab436e4e9c261aafa0049

Guillem Jover 2023-04-08T23:43:04

build: Rename libmd_alias() to libmd_strong_alias()

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])