package/libopenssl: m68x use SMALL_FOOTPRINT mode
PATCH 1/1 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
--- package/libopenssl/libopenssl.mk | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
package/libopenssl/libopenssl.mk +3 -1
@@ -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),)
Signature · 1 line
1.9.1
PATCH 1/1 package/libopenssl: m68x use SMALL_FOOTPRINT mode
Quoted 11 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Matt" == Matt Weber <[email protected]> writes:
OPENSSL_SMALL_FOOTPRINTmode 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 1This issue was found after the OpenSSL1.1.x bump.
Quoted 7 lines
Fixes
http://autobuild.buildroot.net/results/533e817695cde321b725145112cfd83c092d9d75Upstream ticket
https://github.com/openssl/openssl/issues/8190Signed-off-by Matthew Weber <[email protected]>
Committed, thanks.
Signature · 1 line
Bye, Peter Korsgaard