diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2014-05-01 22:26:23 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2014-05-01 22:26:23 +0000 |
commit | 28caa327c2939773cbf481147eecf5fc22bb223c (patch) | |
tree | cd40cece312ebd7043bd36549a2102398e59b3fe | |
parent | 05a735493482ba7150075a6155c061def45a486e (diff) |
Do not output SOM-specific directives.
-rw-r--r-- | lib/libssl/src/crypto/aes/asm/aes-parisc.pl | 9 | ||||
-rw-r--r-- | lib/libssl/src/crypto/bn/asm/parisc-mont.pl | 6 | ||||
-rw-r--r-- | lib/libssl/src/crypto/modes/asm/ghash-parisc.pl | 6 | ||||
-rw-r--r-- | lib/libssl/src/crypto/pariscid.pl | 4 | ||||
-rw-r--r-- | lib/libssl/src/crypto/rc4/asm/rc4-parisc.pl | 9 | ||||
-rw-r--r-- | lib/libssl/src/crypto/sha/asm/sha1-parisc.pl | 9 | ||||
-rwxr-xr-x | lib/libssl/src/crypto/sha/asm/sha512-parisc.pl | 8 |
7 files changed, 48 insertions, 3 deletions
diff --git a/lib/libssl/src/crypto/aes/asm/aes-parisc.pl b/lib/libssl/src/crypto/aes/asm/aes-parisc.pl index c36b6a22705..f12a1c18ec2 100644 --- a/lib/libssl/src/crypto/aes/asm/aes-parisc.pl +++ b/lib/libssl/src/crypto/aes/asm/aes-parisc.pl @@ -64,8 +64,12 @@ $rounds="%r29"; $code=<<___; .LEVEL $LEVEL +#if 0 .SPACE \$TEXT\$ .SUBSPA \$CODE\$,QUAD=0,ALIGN=8,ACCESS=0x2C,CODE_ONLY +#else + .text +#endif .EXPORT AES_encrypt,ENTRY,ARGW0=GR,ARGW1=GR,ARGW2=GR .ALIGN 64 @@ -1002,6 +1006,8 @@ L\$AES_Td .BYTE 0xc8, 0xeb, 0xbb, 0x3c, 0x83, 0x53, 0x99, 0x61 .BYTE 0x17, 0x2b, 0x04, 0x7e, 0xba, 0x77, 0xd6, 0x26 .BYTE 0xe1, 0x69, 0x14, 0x63, 0x55, 0x21, 0x0c, 0x7d + + .data .STRINGZ "AES for PA-RISC, CRYPTOGAMS by <appro\@openssl.org>" ___ @@ -1015,7 +1021,8 @@ foreach (split("\n",$code)) { $SIZE_T==4 ? sprintf("extru%s,%d,8,",$1,31-$2) : sprintf("extrd,u%s,%d,8,",$1,63-$2)/e; - s/,\*/,/ if ($SIZE_T==4); + s/,\*/,/ if ($SIZE_T==4); + s/\bbv\b(.*\(%r2\))/bve$1/ if ($SIZE_T==8); print $_,"\n"; } close STDOUT; diff --git a/lib/libssl/src/crypto/bn/asm/parisc-mont.pl b/lib/libssl/src/crypto/bn/asm/parisc-mont.pl index c38cebd1568..baa19675ac3 100644 --- a/lib/libssl/src/crypto/bn/asm/parisc-mont.pl +++ b/lib/libssl/src/crypto/bn/asm/parisc-mont.pl @@ -126,8 +126,12 @@ $fni="%fr9"; $fnm0="%fr10"; $fnm1="%fr11"; $code=<<___; .LEVEL $LEVEL +#if 0 .SPACE \$TEXT\$ .SUBSPA \$CODE\$,QUAD=0,ALIGN=8,ACCESS=0x2C,CODE_ONLY +#else + .text +#endif .EXPORT bn_mul_mont,ENTRY,ARGW0=GR,ARGW1=GR,ARGW2=GR,ARGW3=GR .ALIGN 64 @@ -875,6 +879,8 @@ L\$abort .EXIT $POPMB -$FRAME(%sp),%r3 .PROCEND + + .data .STRINGZ "Montgomery Multiplication for PA-RISC, CRYPTOGAMS by <appro\@openssl.org>" ___ diff --git a/lib/libssl/src/crypto/modes/asm/ghash-parisc.pl b/lib/libssl/src/crypto/modes/asm/ghash-parisc.pl index 535af86befd..38c5e00a98d 100644 --- a/lib/libssl/src/crypto/modes/asm/ghash-parisc.pl +++ b/lib/libssl/src/crypto/modes/asm/ghash-parisc.pl @@ -81,8 +81,12 @@ $rem2="%r6"; # used in PA-RISC 2.0 code $code.=<<___; .LEVEL $LEVEL +#if 0 .SPACE \$TEXT\$ .SUBSPA \$CODE\$,QUAD=0,ALIGN=8,ACCESS=0x2C,CODE_ONLY +#else + .text +#endif .EXPORT gcm_gmult_4bit,ENTRY,ARGW0=GR,ARGW1=GR .ALIGN 64 @@ -617,6 +621,8 @@ L\$rem_4bit .WORD `0x7080<<16`,0,`0x6CA0<<16`,0,`0x48C0<<16`,0,`0x54E0<<16`,0 .WORD `0xE100<<16`,0,`0xFD20<<16`,0,`0xD940<<16`,0,`0xC560<<16`,0 .WORD `0x9180<<16`,0,`0x8DA0<<16`,0,`0xA9C0<<16`,0,`0xB5E0<<16`,0 + + .data .STRINGZ "GHASH for PA-RISC, GRYPTOGAMS by <appro\@openssl.org>" .ALIGN 64 ___ diff --git a/lib/libssl/src/crypto/pariscid.pl b/lib/libssl/src/crypto/pariscid.pl index 34c8619dff5..da74a2836ce 100644 --- a/lib/libssl/src/crypto/pariscid.pl +++ b/lib/libssl/src/crypto/pariscid.pl @@ -20,8 +20,12 @@ $rv="%r28"; $code=<<___; .LEVEL $LEVEL +#if 0 .SPACE \$TEXT\$ .SUBSPA \$CODE\$,QUAD=0,ALIGN=8,ACCESS=0x2C,CODE_ONLY +#else + .text +#endif .EXPORT OPENSSL_cpuid_setup,ENTRY .ALIGN 8 diff --git a/lib/libssl/src/crypto/rc4/asm/rc4-parisc.pl b/lib/libssl/src/crypto/rc4/asm/rc4-parisc.pl index 9165067080e..9eca69902e1 100644 --- a/lib/libssl/src/crypto/rc4/asm/rc4-parisc.pl +++ b/lib/libssl/src/crypto/rc4/asm/rc4-parisc.pl @@ -137,8 +137,12 @@ ___ $code=<<___; .LEVEL $LEVEL +#if 0 .SPACE \$TEXT\$ .SUBSPA \$CODE\$,QUAD=0,ALIGN=8,ACCESS=0x2C,CODE_ONLY +#else + .text +#endif .EXPORT RC4,ENTRY,ARGW0=GR,ARGW1=GR,ARGW2=GR,ARGW3=GR RC4 @@ -301,13 +305,16 @@ L\$pic .EXIT ldo L\$opts-L\$pic(%r28),%r28 .PROCEND + + .data .ALIGN 8 L\$opts .STRINGZ "rc4(4x,`$SZ==1?"char":"int"`)" .STRINGZ "RC4 for PA-RISC, CRYPTOGAMS by <appro\@openssl.org>" ___ $code =~ s/\`([^\`]*)\`/eval $1/gem; -$code =~ s/cmpib,\*/comib,/gm if ($SIZE_T==4); +$code =~ s/cmpib,\*/comib,/gm if ($SIZE_T==4); +$code =~ s/\bbv\b/bve/gm if ($SIZE_T==8); print $code; close STDOUT; diff --git a/lib/libssl/src/crypto/sha/asm/sha1-parisc.pl b/lib/libssl/src/crypto/sha/asm/sha1-parisc.pl index 6d7bf495b20..6cb46564224 100644 --- a/lib/libssl/src/crypto/sha/asm/sha1-parisc.pl +++ b/lib/libssl/src/crypto/sha/asm/sha1-parisc.pl @@ -146,8 +146,12 @@ ___ $code=<<___; .LEVEL $LEVEL +#if 0 .SPACE \$TEXT\$ .SUBSPA \$CODE\$,QUAD=0,ALIGN=8,ACCESS=0x2C,CODE_ONLY +#else + .text +#endif .EXPORT sha1_block_data_order,ENTRY,ARGW0=GR,ARGW1=GR,ARGW2=GR sha1_block_data_order @@ -250,10 +254,13 @@ $code.=<<___; .EXIT $POPMB -$FRAME(%sp),%r3 .PROCEND + + .data .STRINGZ "SHA1 block transform for PA-RISC, CRYPTOGAMS by <appro\@openssl.org>" ___ $code =~ s/\`([^\`]*)\`/eval $1/gem; -$code =~ s/,\*/,/gm if ($SIZE_T==4); +$code =~ s/,\*/,/gm if ($SIZE_T==4); +$code =~ s/\bbv\b/bve/gm if ($SIZE_T==8); print $code; close STDOUT; diff --git a/lib/libssl/src/crypto/sha/asm/sha512-parisc.pl b/lib/libssl/src/crypto/sha/asm/sha512-parisc.pl index e24ee58ae97..578e3f4daf2 100755 --- a/lib/libssl/src/crypto/sha/asm/sha512-parisc.pl +++ b/lib/libssl/src/crypto/sha/asm/sha512-parisc.pl @@ -159,8 +159,12 @@ ___ $code=<<___; .LEVEL $LEVEL +#if 0 .SPACE \$TEXT\$ .SUBSPA \$CODE\$,QUAD=0,ALIGN=8,ACCESS=0x2C,CODE_ONLY +#else + .text +#endif .ALIGN 64 L\$table @@ -682,6 +686,8 @@ $code.=<<___; .EXIT $POPMB -$FRAME(%sp),%r3 .PROCEND + + .data .STRINGZ "SHA`64*$SZ` block transform for PA-RISC, CRYPTOGAMS by <appro\@openssl.org>" ___ @@ -785,6 +791,8 @@ foreach (split("\n",$code)) { s/cmpb,\*/comb,/ if ($SIZE_T==4); + s/\bbv\b/bve/ if ($SIZE_T==8); + print $_,"\n"; } |