VMS: modify crypto/bn/asm/ia64.S to build properly
authorRichard Levitte <levitte@openssl.org>
Tue, 13 Feb 2018 19:48:48 +0000 (20:48 +0100)
committerRichard Levitte <levitte@openssl.org>
Wed, 14 Feb 2018 16:13:53 +0000 (17:13 +0100)
On VMS, 'abort' is really 'decc$abort'

Reviewed-by: Andy Polyakov <appro@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/5357)

crypto/bn/asm/ia64.S

index 58f7628e81395ad9d12800be2fa58341499fa9a6..f03264d8d0cf3e065cd18f661be6bb3c08c178f7 100644 (file)
 #else
 #define        ADDP    add
 #endif
+#ifdef __VMS
+.alias abort, "decc$abort"
+#endif
 
 #if 1
 //
@@ -1428,6 +1431,7 @@ bn_div_words:
        mov             ar.ec=0         // don't rotate at exit
        mov             pr.rot=0        }
 { .mii;        mov             L=r33           // save l
+       mov             r25=r0          // needed if abort is called on VMS
        mov             r36=r0          };;
 
 .L_divw_shift: // -vv- note signed comparison