mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2026-10-05 16:46:35 -05:00
Crypto: use VC_INLINE for the ARM CPU_Query helpers (#1886)
C99 inline without static does not emit a function body, so aarch64 builds at -O0/-Os fail to link DetectArmFeatures (undefined reference to CPU_QueryAES / CPU_QuerySHA2). Use VC_INLINE like the other helpers in cpu.c. Signed-off-by: Ville Takio <ville+git@takio.fi>
This commit is contained in:
1 parent
fb9d96c52d
commit
5c7f60dfcf
1 file changed
+2
-2
+2
-2
@@ -492,7 +492,7 @@ void DisableCPUExtendedFeatures ()
|
|||||||
volatile int g_hasAESARM = 0;
|
volatile int g_hasAESARM = 0;
|
||||||
volatile int g_hasSHA256ARM = 0;
|
volatile int g_hasSHA256ARM = 0;
|
||||||
|
|
||||||
inline int CPU_QueryAES()
|
VC_INLINE int CPU_QueryAES()
|
||||||
{
|
{
|
||||||
#if defined(CRYPTOPP_ARM_AES_AVAILABLE)
|
#if defined(CRYPTOPP_ARM_AES_AVAILABLE)
|
||||||
#if defined(__linux__) && defined(__aarch64__)
|
#if defined(__linux__) && defined(__aarch64__)
|
||||||
@@ -516,7 +516,7 @@ inline int CPU_QueryAES()
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
inline int CPU_QuerySHA2()
|
VC_INLINE int CPU_QuerySHA2()
|
||||||
{
|
{
|
||||||
#if defined(CRYPTOPP_ARM_SHA2_AVAILABLE)
|
#if defined(CRYPTOPP_ARM_SHA2_AVAILABLE)
|
||||||
#if defined(__linux__) && defined(__aarch64__)
|
#if defined(__linux__) && defined(__aarch64__)
|
||||||
|
|||||||
Reference in new issue
Block a user