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 58f7628..f03264d 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