mirror of
https://github.com/yuzu-emu/mbedtls
synced 2024-11-24 15:18:06 +00:00
Disable Padlock code with ASan
We're getting build errors with Clang 3.5.0 on our Debian Jessie buildslave: library/padlock.c:99:10: error: inline assembly requires more registers than available
This commit is contained in:
parent
ab5f7b40e0
commit
f659f0c214
1 changed files with 9 additions and 1 deletions
|
@ -29,7 +29,15 @@
|
||||||
|
|
||||||
#define MBEDTLS_ERR_PADLOCK_DATA_MISALIGNED -0x0030 /**< Input data should be aligned. */
|
#define MBEDTLS_ERR_PADLOCK_DATA_MISALIGNED -0x0030 /**< Input data should be aligned. */
|
||||||
|
|
||||||
#if defined(MBEDTLS_HAVE_ASM) && defined(__GNUC__) && defined(__i386__)
|
#if defined(__has_feature)
|
||||||
|
#if __has_feature(address_sanitizer)
|
||||||
|
#define MBEDTLS_HAVE_ASAN
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* Some versions of ASan result in errors about not enough registers */
|
||||||
|
#if defined(MBEDTLS_HAVE_ASM) && defined(__GNUC__) && defined(__i386__) && \
|
||||||
|
defined(MBEDTLS_HAVE_ASAN)
|
||||||
|
|
||||||
#ifndef MBEDTLS_HAVE_X86
|
#ifndef MBEDTLS_HAVE_X86
|
||||||
#define MBEDTLS_HAVE_X86
|
#define MBEDTLS_HAVE_X86
|
||||||
|
|
Loading…
Reference in a new issue