Skip to content

Commit 13bdcc5

Browse files
committed
Pulled in patches from Debian package.
1 parent b61e6e1 commit 13bdcc5

File tree

4 files changed

+39
-23
lines changed

4 files changed

+39
-23
lines changed

ChangeLog

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Please see the file 'README' in this directory.

Makefile.am

+21-16
Original file line numberDiff line numberDiff line change
@@ -88,23 +88,28 @@ include testsuite/include.am
8888
include tests/include.am
8989
include sslSniffer/sslSnifferTest/include.am
9090
include rpm/include.am
91-
include mqx/util_lib/Sources/include.am
92-
include mqx/wolfcrypt_benchmark/Sources/include.am
93-
include mqx/wolfcrypt_test/Sources/include.am
94-
include mqx/wolfssl/include.am
95-
include mqx/wolfssl_client/Sources/include.am
96-
include mplabx/include.am
97-
include mplabx/wolfcrypt_benchmark.X/nbproject/include.am
98-
include mplabx/wolfcrypt_test.X/nbproject/include.am
99-
include mplabx/wolfssl.X/nbproject/include.am
100-
include mcapi/include.am
101-
include mcapi/wolfcrypt_mcapi.X/nbproject/include.am
102-
include mcapi/wolfcrypt_test.X/nbproject/include.am
103-
include mcapi/wolfssl.X/nbproject/include.am
104-
include mcapi/zlib.X/nbproject/include.am
105-
include tirtos/include.am
91+
92+
if BUILD_DISTRO
93+
# Exclude references to non-DFSG sources from build files
94+
else
95+
include mqx/util_lib/Sources/include.am
96+
include mqx/wolfcrypt_benchmark/Sources/include.am
97+
include mqx/wolfcrypt_test/Sources/include.am
98+
include mqx/wolfssl/include.am
99+
include mqx/wolfssl_client/Sources/include.am
100+
include mplabx/include.am
101+
include mplabx/wolfcrypt_benchmark.X/nbproject/include.am
102+
include mplabx/wolfcrypt_test.X/nbproject/include.am
103+
include mplabx/wolfssl.X/nbproject/include.am
104+
include mcapi/include.am
105+
include mcapi/wolfcrypt_mcapi.X/nbproject/include.am
106+
include mcapi/wolfcrypt_test.X/nbproject/include.am
107+
include mcapi/wolfssl.X/nbproject/include.am
108+
include mcapi/zlib.X/nbproject/include.am
109+
include tirtos/include.am
110+
include IDE/include.am
111+
endif
106112
include scripts/include.am
107-
include IDE/include.am
108113

109114
if USE_VALGRIND
110115
TESTS_ENVIRONMENT=./valgrind-error.sh

configure.ac

+12-6
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,7 @@ then
188188
enable_stunnel=yes
189189
enable_pwdbased=yes
190190
fi
191+
AM_CONDITIONAL([BUILD_DISTRO], [test "x$ENABLED_DISTRO" = "xyes"])
191192

192193

193194
# SINGLE THREADED
@@ -2165,7 +2166,7 @@ then
21652166
ENABLED_ECC="yes"
21662167
AM_CFLAGS="$AM_CFLAGS -DHAVE_ECC -DTFM_ECC256"
21672168
AM_CONDITIONAL([BUILD_ECC], [test "x$ENABLED_ECC" = "xyes"])
2168-
2169+
21692170
if test "$ENABLED_ECC_SHAMIR" = "yes"
21702171
then
21712172
AM_CFLAGS="$AM_CFLAGS -DECC_SHAMIR"
@@ -2238,7 +2239,7 @@ then
22382239
ENABLED_ECC="yes"
22392240
AM_CFLAGS="$AM_CFLAGS -DHAVE_ECC -DTFM_ECC256"
22402241
AM_CONDITIONAL([BUILD_ECC], [test "x$ENABLED_ECC" = "xyes"])
2241-
2242+
22422243
if test "$ENABLED_ECC_SHAMIR" = "yes"
22432244
then
22442245
AM_CFLAGS="$AM_CFLAGS -DECC_SHAMIR"
@@ -2342,7 +2343,7 @@ then
23422343
ENABLED_ECC="yes"
23432344
AM_CFLAGS="$AM_CFLAGS -DHAVE_ECC -DTFM_ECC256"
23442345
AM_CONDITIONAL([BUILD_ECC], [test "x$ENABLED_ECC" = "xyes"])
2345-
2346+
23462347
if test "$ENABLED_ECC_SHAMIR" = "yes"
23472348
then
23482349
AM_CFLAGS="$AM_CFLAGS -DECC_SHAMIR"
@@ -2839,7 +2840,7 @@ AC_ARG_ENABLE([asynccrypt],
28392840
if test "$ENABLED_ASYNCCRYPT" = "yes"
28402841
then
28412842
AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_ASYNC_CRYPT -DHAVE_WOLF_EVENT"
2842-
2843+
28432844
# if Cavium not enabled the use async simulator for testing
28442845
if test "x$ENABLED_CAVIUM" = "xno"
28452846
then
@@ -3023,7 +3024,8 @@ AS_IF([test "x$ENABLED_DTLS" = "xno" && \
30233024
################################################################################
30243025

30253026
# OPTIMIZE FLAGS
3026-
if test "$GCC" = "yes"
3027+
# For distro disable custom build options that interfere with symbol generation
3028+
if test "$GCC" = "yes" && test "$ENABLED_DISTRO" = "no"
30273029
then
30283030
AM_CFLAGS="$AM_CFLAGS -Wall -Wno-unused"
30293031
if test "$ax_enable_debug" = "no"
@@ -3072,7 +3074,11 @@ case $host_os in
30723074
esac
30733075

30743076
# add user C_EXTRA_FLAGS back
3075-
CFLAGS="$CFLAGS $USER_C_EXTRA_FLAGS"
3077+
# For distro disable custom build options that interfere with symbol generation
3078+
if test "$ENABLED_DISTRO" = "no"
3079+
then
3080+
CFLAGS="$CFLAGS $USER_C_EXTRA_FLAGS"
3081+
fi
30763082
OPTION_FLAGS="$USER_CFLAGS $USER_C_EXTRA_FLAGS $AM_CFLAGS"
30773083

30783084
CREATE_HEX_VERSION

wolfcrypt/src/aes_asm.s

+5-1
Original file line numberDiff line numberDiff line change
@@ -1205,7 +1205,7 @@ pslldq $4, %xmm4
12051205
pxor %xmm4, %xmm3
12061206
pxor %xmm2, %xmm3
12071207
ret
1208-
1208+
12091209

12101210
/*
12111211
void AES_256_Key_Expansion (const unsigned char *userkey,
@@ -1372,3 +1372,7 @@ gfmul:
13721372
ret
13731373

13741374
#endif /* HAVE_AESGCM */
1375+
1376+
#if defined(__linux__) && defined(__ELF__)
1377+
.section .note.GNU-stack,"",%progbits
1378+
#endif

0 commit comments

Comments
 (0)