components/openssl/common/patches/042-suppress_v8plus_abi_warnings.patch
changeset 4822 1fb8a14c6702
parent 4370 7043c27399f1
equal deleted inserted replaced
4821:54dafbe33fdb 4822:1fb8a14c6702
       
     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 @@ -75,6 +75,9 @@
       
    12  aest4-sparcv9.s: asm/aest4-sparcv9.pl ../perlasm/sparcv9_modes.pl
       
    13  	$(PERL) asm/aest4-sparcv9.pl $(CFLAGS) > $@
       
    14  
       
    15 +aest4-sparcv9.o: aest4-sparcv9.s
       
    16 +	$(AS) $(ASFLAGS) -Wa,-n -o $@ $^
       
    17 +
       
    18  aes-ppc.s:	asm/aes-ppc.pl
       
    19  	$(PERL) asm/aes-ppc.pl $(PERLASM_SCHEME) $@
       
    20  vpaes-ppc.s:	asm/vpaes-ppc.pl
       
    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 @@ -73,6 +73,8 @@
       
    24  sha1-sparcv9.S:	asm/sha1-sparcv9.pl;	$(PERL) asm/sha1-sparcv9.pl $@ $(CFLAGS)
       
    25  sha256-sparcv9.S:asm/sha512-sparcv9.pl;	$(PERL) asm/sha512-sparcv9.pl $@ $(CFLAGS)
       
    26  sha512-sparcv9.S:asm/sha512-sparcv9.pl;	$(PERL) asm/sha512-sparcv9.pl $@ $(CFLAGS)
       
    27 +sha512-sparcv9.o: sha512-sparcv9.S
       
    28 +	$(CC) $(CFLAGS) -Wa,-n -c -o $@ $^
       
    29  
       
    30  sha1-ppc.s:	asm/sha1-ppc.pl;	$(PERL) asm/sha1-ppc.pl $(PERLASM_SCHEME) $@
       
    31  sha256-ppc.s:	asm/sha512-ppc.pl;	$(PERL) asm/sha512-ppc.pl $(PERLASM_SCHEME) $@
       
    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) > $@
       
    36  vis3-mont.s:		asm/vis3-mont.pl
       
    37  	$(PERL) asm/vis3-mont.pl $(CFLAGS) > $@
       
    38 +vis3-mont.o:	vis3-mont.s
       
    39 +	$(AS) $(ASFLAGS) -Wa,-n -o $@ $^
       
    40  sparct4-mont.S:	asm/sparct4-mont.pl
       
    41  	$(PERL) asm/sparct4-mont.pl $(CFLAGS) > $@
       
    42 +sparct4-mont.o:	sparct4-mont.S
       
    43 +	$(CC) $(CFLAGS) -Wa,-n -c -o $@ $^
       
    44  sparcv9-gf2m.S:	asm/sparcv9-gf2m.pl
       
    45  	$(PERL) asm/sparcv9-gf2m.pl $(CFLAGS) > $@
       
    46  
       
    47 --- a/crypto/camellia/Makefile.orig        Fri Aug 21 14:51:49 2015rypto/camellia/Makef
       
    48 +++ b/crypto/camellia/Makefile     Fri Aug 21 14:53:18 2015.2d/crypto/camellia/Make
       
    49 @@ -51,6 +51,9 @@
       
    50  cmllt4-sparcv9.s: asm/cmllt4-sparcv9.pl ../perlasm/sparcv9_modes.pl
       
    51  	$(PERL) asm/cmllt4-sparcv9.pl $(CFLAGS) > $@
       
    52  
       
    53 +cmllt4-sparcv9.o: cmllt4-sparcv9.s
       
    54 +	$(AS) $(ASFLAGS) -Wa,-n -o $@ $^
       
    55 +
       
    56  files:
       
    57  	$(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
       
    58  
       
    59 --- a/crypto/modes/Makefile.orig       Fri Aug 21 15:22:37 2015
       
    60 +++ b/crypto/modes/Makefile    Fri Aug 21 15:26:12 2015
       
    61 @@ -54,6 +54,9 @@
       
    62  	$(PERL) asm/aesni-gcm-x86_64.pl $(PERLASM_SCHEME) > $@
       
    63  ghash-sparcv9.s:	asm/ghash-sparcv9.pl
       
    64  	$(PERL) asm/ghash-sparcv9.pl $@ $(CFLAGS)
       
    65 +ghash-sparcv9.o:	ghash-sparcv9.s
       
    66 +	$(AS) $(ASFLAGS) -Wa,-n -o $@ $^
       
    67 +
       
    68  ghash-alpha.s:	asm/ghash-alpha.pl
       
    69  	([email protected]; trap "rm $$preproc" INT; \
       
    70  	$(PERL) asm/ghash-alpha.pl > $$preproc && \