aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Matt Weber <matthew.weber@rockwellcollins.com>2019-02-08 12:46:59 -0600
committerGravatar Peter Korsgaard <peter@korsgaard.com>2019-02-08 22:39:50 +0100
commit8aba0a29a06d16b5a0a5c556fea2150b316fe036 (patch)
treefbafdd4e5ef12fb21cb2adc225f1e443f76916b5
parentea989ad2b2c2361c47e269dd89cb559edf561db4 (diff)
downloadbuildroot-8aba0a29a06d16b5a0a5c556fea2150b316fe036.tar.gz
buildroot-8aba0a29a06d16b5a0a5c556fea2150b316fe036.tar.bz2
package/libopenssl: m68x use SMALL_FOOTPRINT mode
OPENSSL_SMALL_FOOTPRINT mode selects alternate paths in the sha512 and blake2 algorithms which resolves a assembler issue like the following. /tmp/ccfnLhKQ.s: Assembler messages: /tmp/ccfnLhKQ.s:11167: Error: value -32790 out of range make[2]: *** [crypto/blake2/blake2b.o] Error 1 This issue was found after the OpenSSL1.1.x bump. Fixes http://autobuild.buildroot.net/results/533e817695cde321b725145112cfd83c092d9d75 Upstream ticket https://github.com/openssl/openssl/issues/8190 Signed-off-by: Matthew Weber <matthew.weber@rockwellcollins.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
-rw-r--r--package/libopenssl/libopenssl.mk4
1 files changed, 3 insertions, 1 deletions
diff --git a/package/libopenssl/libopenssl.mk b/package/libopenssl/libopenssl.mk
index 0bfc74ed0e..a845f1da53 100644
--- a/package/libopenssl/libopenssl.mk
+++ b/package/libopenssl/libopenssl.mk
@@ -16,9 +16,11 @@ LIBOPENSSL_TARGET_ARCH = generic32
LIBOPENSSL_CFLAGS = $(TARGET_CFLAGS)
LIBOPENSSL_PROVIDES = openssl
-# relocation truncated to fit: R_68K_GOT16O
ifeq ($(BR2_m68k_cf),y)
+# relocation truncated to fit: R_68K_GOT16O
LIBOPENSSL_CFLAGS += -mxgot
+# resolves an assembler "out of range error" with blake2 and sha512 algorithms
+LIBOPENSSL_CFLAGS += -DOPENSSL_SMALL_FOOTPRINT
endif
ifeq ($(BR2_USE_MMU),)