components/openssl/common/patches/044-suppress_v8plus_abi_warnings.patch
author Ronald Jordan <ron.jordan@oracle.com>
Wed, 26 Oct 2016 13:19:33 -0700
branchs11u3-sru
changeset 7163 ee09edbd5876
parent 4283 components/openssl/openssl-1.0.1/patches/40_suppress_v8plus_abi_warnings.patch@d5f4044aa6b7
permissions -rw-r--r--
24784774 Upgrade 11.3-SRU to OpenSSL 1.0.2 20358335 memory leak in libcrypto 21297601 32-bit FIPS openssl(1) should link to the mediator link 21791492 Workaround to suppress the link check error should be removed 22021385 openssl ts sub-command dumps core 22021787 openssl s_client sub-command dumps core 22445522 openssl makefile contains undeclared dependency on rsync 22859741 Update OpenSSL FIPS module to 2.0.12 23230454 Use DES3 for pkcs12 certificate encryption 23285559 ssh libcrypto`solaris_locking_setup() atfork handler calls malloc() 24377801 solaris_dynlock_create() should check for a ret val of 0 from pthread_mutex_init 24943813 problem in LIBRARY/OPENSSL

#
# Patch developed in-house. Solaris-specific; not suitable for upstream.
#
# Suppress warnings about sparcv8+ ABI violation
# when building T4-specific modules as 32-bit:
#    v8+ ABI violation: illegal use of %i or %l register as rs1 in "brnz,a" instruction
# This has been confirmed as a valid usecase and is thus intentional.
#
--- a/crypto/aes/Makefile.orig	čt dub 30 03:15:03 2015
+++ b/crypto/aes/Makefile	čt dub 30 03:19:32 2015
@@ -75,6 +75,9 @@
 aest4-sparcv9.s: asm/aest4-sparcv9.pl ../perlasm/sparcv9_modes.pl
 	$(PERL) asm/aest4-sparcv9.pl $(CFLAGS) > $@
 
+aest4-sparcv9.o: aest4-sparcv9.s
+	$(AS) $(ASFLAGS) -Wa,-n -o $@ $^
+
 aes-ppc.s:	asm/aes-ppc.pl
 	$(PERL) asm/aes-ppc.pl $(PERLASM_SCHEME) $@
 vpaes-ppc.s:	asm/vpaes-ppc.pl
--- a/crypto/sha/Makefile.orig	čt dub 30 14:37:32 2015
+++ b/crypto/sha/Makefile	čt dub 30 14:40:49 2015
@@ -73,6 +73,8 @@
 sha1-sparcv9.S:	asm/sha1-sparcv9.pl;	$(PERL) asm/sha1-sparcv9.pl $@ $(CFLAGS)
 sha256-sparcv9.S:asm/sha512-sparcv9.pl;	$(PERL) asm/sha512-sparcv9.pl $@ $(CFLAGS)
 sha512-sparcv9.S:asm/sha512-sparcv9.pl;	$(PERL) asm/sha512-sparcv9.pl $@ $(CFLAGS)
+sha512-sparcv9.o: sha512-sparcv9.S
+	$(CC) $(CFLAGS) -Wa,-n -c -o $@ $^
 
 sha1-ppc.s:	asm/sha1-ppc.pl;	$(PERL) asm/sha1-ppc.pl $(PERLASM_SCHEME) $@
 sha256-ppc.s:	asm/sha512-ppc.pl;	$(PERL) asm/sha512-ppc.pl $(PERLASM_SCHEME) $@
--- a/crypto/bn/Makefile.orig	čt dub 30 14:43:20 2015
+++ b/crypto/bn/Makefile	čt dub 30 14:45:11 2015
@@ -79,8 +79,12 @@
 	$(PERL) asm/sparcv9-mont.pl $(CFLAGS) > $@
 vis3-mont.s:		asm/vis3-mont.pl
 	$(PERL) asm/vis3-mont.pl $(CFLAGS) > $@
+vis3-mont.o:	vis3-mont.s
+	$(AS) $(ASFLAGS) -Wa,-n -o $@ $^
 sparct4-mont.S:	asm/sparct4-mont.pl
 	$(PERL) asm/sparct4-mont.pl $(CFLAGS) > $@
+sparct4-mont.o:	sparct4-mont.S
+	$(CC) $(CFLAGS) -Wa,-n -c -o $@ $^
 sparcv9-gf2m.S:	asm/sparcv9-gf2m.pl
 	$(PERL) asm/sparcv9-gf2m.pl $(CFLAGS) > $@
 
--- a/crypto/camellia/Makefile.orig        Fri Aug 21 14:51:49 2015rypto/camellia/Makef
+++ b/crypto/camellia/Makefile     Fri Aug 21 14:53:18 2015.2d/crypto/camellia/Make
@@ -51,6 +51,9 @@
 cmllt4-sparcv9.s: asm/cmllt4-sparcv9.pl ../perlasm/sparcv9_modes.pl
 	$(PERL) asm/cmllt4-sparcv9.pl $(CFLAGS) > $@
 
+cmllt4-sparcv9.o: cmllt4-sparcv9.s
+	$(AS) $(ASFLAGS) -Wa,-n -o $@ $^
+
 files:
 	$(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
 
--- a/crypto/modes/Makefile.orig       Fri Aug 21 15:22:37 2015
+++ b/crypto/modes/Makefile    Fri Aug 21 15:26:12 2015
@@ -54,6 +54,9 @@
 	$(PERL) asm/aesni-gcm-x86_64.pl $(PERLASM_SCHEME) > $@
 ghash-sparcv9.s:	asm/ghash-sparcv9.pl
 	$(PERL) asm/ghash-sparcv9.pl $@ $(CFLAGS)
+ghash-sparcv9.o:	ghash-sparcv9.s
+	$(AS) $(ASFLAGS) -Wa,-n -o $@ $^
+
 ghash-alpha.s:	asm/ghash-alpha.pl
 	([email protected]; trap "rm $$preproc" INT; \
 	$(PERL) asm/ghash-alpha.pl > $$preproc && \