pkgsrc/devel/gmp/patches/patch-ah
martin f4fcba57b4 In the VAX asm code: hide all local labels and make calculated jumps PIC,
so the shared library now works as well. Thanks to Matt Thomas for vax
asm help.
2010-05-28 13:50:25 +00:00

51 lines
891 B
Text

$NetBSD: patch-ah,v 1.3 2010/05/28 13:50:26 martin Exp $
--- mpn/vax/rshift.s.orig 2010-02-06 13:43:14.000000000 +0100
+++ mpn/vax/rshift.s 2010-05-25 10:05:24.000000000 +0200
@@ -28,27 +28,27 @@
.text
.align 1
-.globl ___gmpn_rshift
-___gmpn_rshift:
+.globl __gmpn_rshift
+__gmpn_rshift:
.word 0x1c0
- movl 4(ap),r7
- movl 8(ap),r6
- movl 12(ap),r1
- movl 16(ap),r8
+ movl 4(%ap),%r7
+ movl 8(%ap),%r6
+ movl 12(%ap),%r1
+ movl 16(%ap),%r8
- movl (r6)+,r2
- subl3 r8,$32,r8
- ashl r8,r2,r0
- decl r1
- jeql Lend
+ movl (%r6)+,%r2
+ subl3 %r8,$32,%r8
+ ashl %r8,%r2,%r0
+ decl %r1
+ jeql .Lend
-Loop: movl (r6)+,r3
- ashq r8,r2,r4
- movl r5,(r7)+
- movl r3,r2
- sobgtr r1,Loop
+.Loop: movl (%r6)+,%r3
+ ashq %r8,%r2,%r4
+ movl %r5,(%r7)+
+ movl %r3,%r2
+ sobgtr %r1,.Loop
-Lend: clrl r3
- ashq r8,r2,r4
- movl r5,(r7)
+.Lend: clrl %r3
+ ashq %r8,%r2,%r4
+ movl %r5,(%r7)
ret