diff options
author | skrll <skrll> | 2001-04-12 07:53:17 +0000 |
---|---|---|
committer | skrll <skrll> | 2001-04-12 07:53:17 +0000 |
commit | b14a8355d2b2fef98317675e7cbe9a8eb7400d90 (patch) | |
tree | 978e121c62093f0b9a28698e8204a1396ee4496f /devel/unproven-pthreads/patches | |
parent | 09bfb91390c26aecab19df6f3c8d6b7b887d066d (diff) | |
download | pkgsrc-b14a8355d2b2fef98317675e7cbe9a8eb7400d90.tar.gz |
Do the _C_LABEL thing for sparc here as well.
Hopefully fixes pkg/10785
Diffstat (limited to 'devel/unproven-pthreads/patches')
-rw-r--r-- | devel/unproven-pthreads/patches/patch-as | 109 | ||||
-rw-r--r-- | devel/unproven-pthreads/patches/patch-at | 24 |
2 files changed, 133 insertions, 0 deletions
diff --git a/devel/unproven-pthreads/patches/patch-as b/devel/unproven-pthreads/patches/patch-as new file mode 100644 index 00000000000..26c1e4b8a80 --- /dev/null +++ b/devel/unproven-pthreads/patches/patch-as @@ -0,0 +1,109 @@ +$NetBSD: patch-as,v 1.1 2001/04/12 07:53:18 skrll Exp $ + +--- machdep/syscall-sparc-netbsd-1.3.S.orig Thu Apr 12 08:33:16 2001 ++++ machdep/syscall-sparc-netbsd-1.3.S +@@ -10,10 +10,11 @@ + #endif + ++#include <machine/asm.h> + #include <sys/syscall.h> + + #define SYSCALL(x) \ +- .globl _machdep_sys_##x; \ ++ .globl _C_LABEL(machdep_sys_##x); \ + \ +-_machdep_sys_##x:; \ ++_C_LABEL(machdep_sys_##x):; \ + \ + mov SYS_##x, %g1; \ +@@ -44,7 +45,7 @@ + * machdep_sys_pipe() + */ +- .globl _machdep_sys_pipe ++ .globl _C_LABEL(machdep_sys_pipe) + +-_machdep_sys_pipe: ++_C_LABEL(machdep_sys_pipe): + mov %o0, %o2 + mov SYS_pipe, %g1 +@@ -60,7 +61,7 @@ + * machdep_sys_fork() + */ +- .globl _machdep_sys_fork; ++ .globl _C_LABEL(machdep_sys_fork); + +-_machdep_sys_fork:; ++_C_LABEL(machdep_sys_fork):; + + mov SYS_fork, %g1; +@@ -76,7 +77,7 @@ + * machdep_sys_sigprocmask() + */ +- .globl _machdep_sys_sigprocmask; ++ .globl _C_LABEL(machdep_sys_sigprocmask); + +-_machdep_sys_sigprocmask:; ++_C_LABEL(machdep_sys_sigprocmask):; + + ld [%o1], %o1; +@@ -93,7 +94,7 @@ + * machdep_sys_sigsuspend() + */ +- .globl _machdep_sys_sigsuspend; ++ .globl _C_LABEL(machdep_sys_sigsuspend); + +-_machdep_sys_sigsuspend:; ++_C_LABEL(machdep_sys_sigsuspend):; + + ld [%o0], %o0; +@@ -109,7 +110,7 @@ + * machdep_sys_fstat() + */ +- .globl _machdep_sys_fstat; ++ .globl _C_LABEL(machdep_sys_fstat); + +-_machdep_sys_fstat:; ++_C_LABEL(machdep_sys_fstat):; + + mov SYS___fstat13, %g1; +@@ -123,5 +124,5 @@ + * machdep_sys___syscall() + */ +-_machdep_sys___syscall:; ++_C_LABEL(machdep_sys___syscall):; + + mov SYS___syscall, %g1; +@@ -135,7 +136,7 @@ + * machdep_sys_lseek() + */ +- .global _machdep_sys_lseek ++ .global _C_LABEL(machdep_sys_lseek) + +-_machdep_sys_lseek: ++_C_LABEL(machdep_sys_lseek): + save %sp,-112,%sp + mov %i1,%o4 +@@ -145,5 +146,5 @@ + mov SYS_lseek,%o1 + mov %i0,%o2 +- call _machdep_sys___syscall,0 ++ call _C_LABEL(machdep_sys___syscall),0 + mov 0,%o3 + mov %o0,%i0 +@@ -155,7 +156,7 @@ + * machdep_sys_ftruncate() + */ +- .global _machdep_sys_ftruncate ++ .global _C_LABEL(machdep_sys_ftruncate) + +-_machdep_sys_ftruncate: ++_C_LABEL(machdep_sys_ftruncate): + save %sp,-104,%sp + mov %i1,%o4 +@@ -164,5 +165,5 @@ + mov SYS_ftruncate,%o1 + mov %i0,%o2 +- call _machdep_sys___syscall,0 ++ call _C_LABEL(machdep_sys___syscall),0 + mov 0,%o3 + mov %o0,%o1 diff --git a/devel/unproven-pthreads/patches/patch-at b/devel/unproven-pthreads/patches/patch-at new file mode 100644 index 00000000000..18c90238c0a --- /dev/null +++ b/devel/unproven-pthreads/patches/patch-at @@ -0,0 +1,24 @@ +$NetBSD: patch-at,v 1.1 2001/04/12 07:53:18 skrll Exp $ + +--- machdep/syscall-template-sparc-netbsd-1.3.S.orig Thu Apr 12 08:33:16 2001 ++++ machdep/syscall-template-sparc-netbsd-1.3.S +@@ -4,6 +4,7 @@ + * + */ + ++#include <machine/asm.h> + #include <sys/syscall.h> + + #ifdef SYS___sigsuspend14 +@@ -14,9 +15,9 @@ + #endif + + #define SYSCALL(x) \ +- .globl _machdep_sys_##x; \ ++ .globl _C_LABEL(machdep_sys_##x); \ + \ +-_machdep_sys_##x:; \ ++_C_LABEL(machdep_sys_##x):; \ + \ + mov SYS_##x, %g1; \ + ta 0; \ |