Merge branch 'fixes' into development
This commit is contained in:
commit
9a3ee57c84
5 changed files with 36 additions and 10 deletions
|
@ -5,9 +5,15 @@ mbed TLS ChangeLog (Sorted per branch, date)
|
||||||
Bugfix
|
Bugfix
|
||||||
* Fix bug in mbedtls_mpi_add_mpi() that caused wrong results when the three
|
* Fix bug in mbedtls_mpi_add_mpi() that caused wrong results when the three
|
||||||
arguments where the same (in-place doubling). Found and fixed by Janos
|
arguments where the same (in-place doubling). Found and fixed by Janos
|
||||||
Follath.
|
Follath. #309
|
||||||
* Fix potential build failures related to the 'apidoc' target, introduced
|
* Fix potential build failures related to the 'apidoc' target, introduced
|
||||||
in the previous patch release. Found by Robert Scheck. #390 #391
|
in the previous patch release. Found by Robert Scheck. #390 #391
|
||||||
|
* Fix issue in Makefile that prevented building using armar. #386
|
||||||
|
|
||||||
|
Changes
|
||||||
|
* On ARM platforms, when compiling with -O0 with GCC, Clang or armcc5,
|
||||||
|
don't use the optimized assembly for bignum multiplication. This removes
|
||||||
|
the need to pass -fomit-frame-pointer to avoid a build error with -O0.
|
||||||
|
|
||||||
= mbed TLS 2.2.1 released 2016-01-05
|
= mbed TLS 2.2.1 released 2016-01-05
|
||||||
|
|
||||||
|
|
|
@ -563,7 +563,23 @@
|
||||||
|
|
||||||
#endif /* TriCore */
|
#endif /* TriCore */
|
||||||
|
|
||||||
#if defined(__arm__)
|
/*
|
||||||
|
* gcc -O0 by default uses r7 for the frame pointer, so it complains about our
|
||||||
|
* use of r7 below, unless -fomit-frame-pointer is passed. Unfortunately,
|
||||||
|
* passing that option is not easy when building with yotta.
|
||||||
|
*
|
||||||
|
* On the other hand, -fomit-frame-pointer is implied by any -Ox options with
|
||||||
|
* x !=0, which we can detect using __OPTIMIZE__ (which is also defined by
|
||||||
|
* clang and armcc5 under the same conditions).
|
||||||
|
*
|
||||||
|
* So, only use the optimized assembly below for optimized build, which avoids
|
||||||
|
* the build error and is pretty reasonable anyway.
|
||||||
|
*/
|
||||||
|
#if defined(__GNUC__) && !defined(__OPTIMIZE__)
|
||||||
|
#define MULADDC_CANNOT_USE_R7
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(__arm__) && !defined(MULADDC_CANNOT_USE_R7)
|
||||||
|
|
||||||
#if defined(__thumb__) && !defined(__thumb2__)
|
#if defined(__thumb__) && !defined(__thumb2__)
|
||||||
|
|
||||||
|
|
|
@ -90,9 +90,9 @@ shared: libmbedcrypto.$(DLEXT) libmbedx509.$(DLEXT) libmbedtls.$(DLEXT)
|
||||||
# tls
|
# tls
|
||||||
libmbedtls.a: $(OBJS_TLS)
|
libmbedtls.a: $(OBJS_TLS)
|
||||||
echo " AR $@"
|
echo " AR $@"
|
||||||
$(AR) rc $@ $(OBJS_TLS)
|
$(AR) -rc $@ $(OBJS_TLS)
|
||||||
echo " RL $@"
|
echo " RL $@"
|
||||||
$(AR) s $@
|
$(AR) -s $@
|
||||||
|
|
||||||
libmbedtls.$(SOEXT_TLS): $(OBJS_TLS) libmbedx509.so
|
libmbedtls.$(SOEXT_TLS): $(OBJS_TLS) libmbedx509.so
|
||||||
echo " LD $@"
|
echo " LD $@"
|
||||||
|
@ -113,9 +113,9 @@ libmbedtls.dll: $(OBJS_TLS) libmbedx509.dll
|
||||||
# x509
|
# x509
|
||||||
libmbedx509.a: $(OBJS_X509)
|
libmbedx509.a: $(OBJS_X509)
|
||||||
echo " AR $@"
|
echo " AR $@"
|
||||||
$(AR) rc $@ $(OBJS_X509)
|
$(AR) -rc $@ $(OBJS_X509)
|
||||||
echo " RL $@"
|
echo " RL $@"
|
||||||
$(AR) s $@
|
$(AR) -s $@
|
||||||
|
|
||||||
libmbedx509.$(SOEXT_X509): $(OBJS_X509) libmbedcrypto.so
|
libmbedx509.$(SOEXT_X509): $(OBJS_X509) libmbedcrypto.so
|
||||||
echo " LD $@"
|
echo " LD $@"
|
||||||
|
@ -136,9 +136,9 @@ libmbedx509.dll: $(OBJS_X509) libmbedcrypto.dll
|
||||||
# crypto
|
# crypto
|
||||||
libmbedcrypto.a: $(OBJS_CRYPTO)
|
libmbedcrypto.a: $(OBJS_CRYPTO)
|
||||||
echo " AR $@"
|
echo " AR $@"
|
||||||
$(AR) rc $@ $(OBJS_CRYPTO)
|
$(AR) -rc $@ $(OBJS_CRYPTO)
|
||||||
echo " RL $@"
|
echo " RL $@"
|
||||||
$(AR) s $@
|
$(AR) -s $@
|
||||||
|
|
||||||
libmbedcrypto.$(SOEXT_CRYPTO): $(OBJS_CRYPTO)
|
libmbedcrypto.$(SOEXT_CRYPTO): $(OBJS_CRYPTO)
|
||||||
echo " LD $@"
|
echo " LD $@"
|
||||||
|
|
|
@ -248,7 +248,7 @@ scripts/config.pl unset MBEDTLS_THREADING_PTHREAD
|
||||||
scripts/config.pl unset MBEDTLS_THREADING_C
|
scripts/config.pl unset MBEDTLS_THREADING_C
|
||||||
scripts/config.pl unset MBEDTLS_MEMORY_BACKTRACE # execinfo.h
|
scripts/config.pl unset MBEDTLS_MEMORY_BACKTRACE # execinfo.h
|
||||||
scripts/config.pl unset MBEDTLS_MEMORY_BUFFER_ALLOC_C # calls exit
|
scripts/config.pl unset MBEDTLS_MEMORY_BUFFER_ALLOC_C # calls exit
|
||||||
CC=armcc WARNING_CFLAGS= make lib 2> armcc.stderr
|
CC=armcc AR=armar WARNING_CFLAGS= make lib 2> armcc.stderr
|
||||||
if [ -s armcc.stderr ]; then
|
if [ -s armcc.stderr ]; then
|
||||||
cat armcc.stderr
|
cat armcc.stderr
|
||||||
exit 1;
|
exit 1;
|
||||||
|
|
|
@ -11,8 +11,12 @@ yt update || true # needs network
|
||||||
yotta_build()
|
yotta_build()
|
||||||
{
|
{
|
||||||
TARGET=$1
|
TARGET=$1
|
||||||
echo; echo "*** $TARGET ***"
|
|
||||||
|
echo; echo "*** $TARGET (release) ***"
|
||||||
yt -t $TARGET build
|
yt -t $TARGET build
|
||||||
|
|
||||||
|
echo; echo "*** $TARGET (debug) ***"
|
||||||
|
yt -t $TARGET build -d
|
||||||
}
|
}
|
||||||
|
|
||||||
if uname -a | grep 'Linux.*x86' >/dev/null; then
|
if uname -a | grep 'Linux.*x86' >/dev/null; then
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue