components/openssl/openssl-1.0.1/patches/40_suppress_v8plus_abi_warnings.patch
changeset 4240 44a396ca557c
equal deleted inserted replaced
4230:01298dcf1e20 4240:44a396ca557c
       
     1 #
       
     2 # Patch developed in-house. Solaris-specific; not suitable for upstream.
       
     3 #
       
     4 # Suppress warnings about sparcv8+ ABI violation
       
     5 # when building T4-specific modules as 32-bit:
       
     6 #    v8+ ABI violation: illegal use of %i or %l register as rs1 in "brnz,a" instruction
       
     7 # This has been confirmed as a valid usecase and is thus intentional.
       
     8 #
       
     9 --- a/crypto/aes/Makefile.orig	čt dub 30 03:15:03 2015
       
    10 +++ b/crypto/aes/Makefile	čt dub 30 03:19:32 2015
       
    11 @@ -72,6 +72,9 @@
       
    12  aest4-sparcv9.s: asm/aest4-sparcv9.pl
       
    13  	$(PERL) asm/aest4-sparcv9.pl $(CFLAGS) > [email protected]
       
    14  
       
    15 +aest4-sparcv9.o: aest4-sparcv9.s
       
    16 +	$(AS) $(ASFLAGS) -Wa,-n -o [email protected] $^
       
    17 +
       
    18  aes-ppc.s:	asm/aes-ppc.pl
       
    19  	$(PERL) asm/aes-ppc.pl $(PERLASM_SCHEME) [email protected]
       
    20  
       
    21 --- a/crypto/sha/Makefile.orig	čt dub 30 14:37:32 2015
       
    22 +++ b/crypto/sha/Makefile	čt dub 30 14:40:49 2015
       
    23 @@ -71,6 +71,8 @@
       
    24  sha1-sparcv9.S:	asm/sha1-sparcv9.pl;	$(PERL) asm/sha1-sparcv9.pl [email protected] $(CFLAGS)
       
    25  sha256-sparcv9.S:asm/sha512-sparcv9.pl;	$(PERL) asm/sha512-sparcv9.pl [email protected] $(CFLAGS)
       
    26  sha512-sparcv9.S:asm/sha512-sparcv9.pl;	$(PERL) asm/sha512-sparcv9.pl [email protected] $(CFLAGS)
       
    27 +sha512-sparcv9.o: sha512-sparcv9.S
       
    28 +	$(CC) $(CFLAGS) -Wa,-n -c -o [email protected] $^
       
    29  
       
    30  sha1-ppc.s:	asm/sha1-ppc.pl;	$(PERL) asm/sha1-ppc.pl $(PERLASM_SCHEME) [email protected]
       
    31  sha256-ppc.s:	asm/sha512-ppc.pl;	$(PERL) asm/sha512-ppc.pl $(PERLASM_SCHEME) [email protected]
       
    32 --- a/crypto/bn/Makefile.orig	čt dub 30 14:43:20 2015
       
    33 +++ b/crypto/bn/Makefile	čt dub 30 14:45:11 2015
       
    34 @@ -79,8 +79,12 @@
       
    35  	$(PERL) asm/sparcv9-mont.pl $(CFLAGS) > [email protected]
       
    36  vis3-mont.s:		asm/vis3-mont.pl
       
    37  	$(PERL) asm/vis3-mont.pl $(CFLAGS) > [email protected]
       
    38 +vis3-mont.o:	vis3-mont.s
       
    39 +	$(AS) $(ASFLAGS) -Wa,-n -o [email protected] $^
       
    40  sparct4-mont.S:	asm/sparct4-mont.pl
       
    41  	$(PERL) asm/sparct4-mont.pl $(CFLAGS) > [email protected]
       
    42 +sparct4-mont.o:	sparct4-mont.S
       
    43 +	$(CC) $(CFLAGS) -Wa,-n -c -o [email protected] $^
       
    44  sparcv9-gf2m.S:	asm/sparcv9-gf2m.pl
       
    45  	$(PERL) asm/sparcv9-gf2m.pl $(CFLAGS) > [email protected]
       
    46