7078325 Problem with /lib/libcrypto.so.1.0.0 in snv_171 and onward on Ultra IIe platforms.
authorDan Anderson <dan.anderson@oracle.com>
Mon, 29 Aug 2011 17:51:05 -0700
changeset 498 40d5ca406753
parent 497 ff6a031a6692
child 499 fea5d407097b
7078325 Problem with /lib/libcrypto.so.1.0.0 in snv_171 and onward on Ultra IIe platforms.
components/openssl/openssl-1.0.0/patches/openssl-1.0.0d-t4-engine.sparc-patch
--- a/components/openssl/openssl-1.0.0/patches/openssl-1.0.0d-t4-engine.sparc-patch	Mon Aug 29 23:37:15 2011 +0530
+++ b/components/openssl/openssl-1.0.0/patches/openssl-1.0.0d-t4-engine.sparc-patch	Mon Aug 29 17:51:05 2011 -0700
@@ -107,24 +107,25 @@
 ==================================================================
 diff -ru openssl-1.0.0d/crypto/md5/Makefile openssl-1.0.0d/crypto/md5/Makefile
 --- openssl-1.0.0d/crypto/md5/Makefile	2011-05-24 17:03:14.000000000 -0700
-+++ openssl-1.0.0d/crypto/md5/Makefile	2011-06-30 16:53:53.000000000 -0700
++++ openssl-1.0.0d/crypto/md5/Makefile	2011-08-27 16:01:49.000000000 -0700
 @@ -17,6 +17,10 @@
  ASFLAGS= $(INCLUDES) $(ASFLAG)
  AFLAGS= $(ASFLAGS)
  
 +BITS:=	$(shell if grep '^SHARED_LDFLAGS.*=.*-m32' ../../Makefile >/dev/null; \
 +		then echo 32; else echo 64; fi)
-+ASFLAGSYF= -xregsym=no -K pic -P -xarch=v9b -D_sparcv9 -D_ASM -Dsparc -m$(BITS)
++ASFLAGSYF= -xregsym=no -K pic -P -xarch=v9v -D_sparcv9 -D_ASM -Dsparc -m$(BITS)
 +
  GENERAL=Makefile
  TEST=md5test.c
  APPS=
[email protected]@ -52,6 +58,9 @@
[email protected]@ -52,6 +58,10 @@
  	$(CC) $(CFLAGS) -E asm/md5-ia64.S | \
  	$(PERL) -ne 's/;\s+/;\n/g; print;' > [email protected]
  
 +t4_md5.o: asm/t4_md5.S
 +	as $(ASFLAGSYF) -o [email protected] asm/t4_md5.S
++	elfedit -e 'cap:hw1 -and -cmp vis vis3' [email protected]
 +
  files:
  	$(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
@@ -133,27 +134,29 @@
 ==================================================================
 diff -ru openssl-1.0.0d/crypto/sha/Makefile openssl-1.0.0d/crypto/sha/Makefile
 --- openssl-1.0.0d/crypto/sha/Makefile	2011-05-24 17:03:18.000000000 -0700
-+++ openssl-1.0.0d/crypto/sha/Makefile	2011-06-30 16:53:53.000000000 -0700
++++ openssl-1.0.0d/crypto/sha/Makefile	2011-08-27 16:01:49.000000000 -0700
 @@ -17,6 +17,10 @@
  ASFLAGS= $(INCLUDES) $(ASFLAG)
  AFLAGS= $(ASFLAGS)
  
 +BITS:=	$(shell if grep '^SHARED_LDFLAGS.*=.*-m32' ../../Makefile >/dev/null; \
 +		then echo 32; else echo 64; fi)
-+ASFLAGSYF= -xregsym=no -K pic -P -xarch=v9b -D_sparcv9 -D_ASM -Dsparc -m$(BITS)
++ASFLAGSYF= -xregsym=no -K pic -P -xarch=v9v -D_sparcv9 -D_ASM -Dsparc -m$(BITS)
 +
  GENERAL=Makefile
  TEST=shatest.c sha1test.c sha256t.c sha512t.c
  APPS=
[email protected]@ -76,6 +82,12 @@
[email protected]@ -76,6 +82,14 @@
  sha256-%.s:	asm/sha512-%.pl;	$(PERL) $< [email protected]
  sha512-%.s:	asm/sha512-%.pl;	$(PERL) $< [email protected]
  
 +t4_sha1.o: asm/t4_sha1.S
 +	as $(ASFLAGSYF) -o [email protected] asm/t4_sha1.S
++	elfedit -e 'cap:hw1 -and -cmp vis vis3' [email protected]
 +
 +t4_sha2.o: asm/t4_sha2.S
 +	as $(ASFLAGSYF) -o [email protected] asm/t4_sha2.S
++	elfedit -e 'cap:hw1 -and -cmp vis vis3' [email protected]
 +
  files:
  	$(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO