Package: mbedtls / 2.16.0-1


Package Version Patches format
mbedtls 2.16.0-1 3.0 (quilt)

Patch series

view the series file
Patch File delta Description
0001 bn_mul.h require at least ARMv6 to enable the ARM DS.patch | (download)

include/mbedtls/bn_mul.h | 3 2 + 1 - 0 !
1 file changed, 2 insertions(+), 1 deletion(-)

 bn_mul.h: require at least armv6 to enable the arm dsp code

Commit 16b1bd89326e "bn_mul.h: add ARM DSP optimized MULADDC code"
added some ARM DSP instructions that was assumed to always be available
when __ARM_FEATURE_DSP is defined to 1. Unfortunately it appears that
the ARMv5TE architecture (GCC flag -march=armv5te) supports the DSP
instructions, but only in Thumb mode and not in ARM mode, despite
defining __ARM_FEATURE_DSP in both cases.

This patch fixes the build issue by requiring at least ARMv6 in addition
to the DSP feature.

[jcowgill: Cherry-picked from upstream PR #2169]