Attached is an updated patch.
Please use this one instead.
Thanks,
Helge
diff -up ./parisc/ftruncate64.S.org ./parisc/ftruncate64.S
--- ./parisc/ftruncate64.S.org	2014-11-11 22:57:52.780223897 +0100
+++ ./parisc/ftruncate64.S	2014-11-12 12:36:24.955628146 +0100
@@ -0,0 +1,12 @@
+#include "parisc/syscalls.h"
+
+.text
+.type __dietlibc_ftruncate64,@function
+.globl __dietlibc_ftruncate64
+.export __dietlibc_ftruncate64
+__dietlibc_ftruncate64:
+#if !defined(__LP64__)
+	copy %arg3,%arg1
+#endif
+	b __unified_syscall
+	ldi __NR_ftruncate64, %r20
diff -up ./parisc/truncate64.S.org ./parisc/truncate64.S
--- ./parisc/truncate64.S.org	2014-11-11 22:57:55.372223373 +0100
+++ ./parisc/truncate64.S	2014-11-12 12:46:14.223550888 +0100
@@ -0,0 +1,12 @@
+#include "parisc/syscalls.h"
+
+.text
+.type __dietlibc_truncate64,@function
+.globl __dietlibc_truncate64
+.export __dietlibc_truncate64
+__dietlibc_truncate64:
+#if !defined(__LP64__)
+	copy %arg3,%arg1
+#endif
+	b __unified_syscall
+	ldi __NR_truncate64, %r20
diff -up ./syscalls.s/ftruncate64.S.org ./syscalls.s/ftruncate64.S
--- ./syscalls.s/ftruncate64.S.org	2014-11-12 11:22:07.948940777 +0100
+++ ./syscalls.s/ftruncate64.S	2014-11-12 12:35:49.075635808 +0100
@@ -3,7 +3,7 @@
 
 #ifdef __NR_ftruncate64
 #ifdef WANT_LARGEFILE_BACKCOMPAT
-syscall(ftruncate64,__dietlibc_ftruncate64)
+syscall_weak(ftruncate64,__dietlibc_ftruncate64_syscall,__dietlibc_ftruncate64)
 #else
 syscall(ftruncate64,ftruncate64)
 #endif
diff -up ./syscalls.s/truncate64.S.org ./syscalls.s/truncate64.S
--- ./syscalls.s/truncate64.S.org	2014-11-12 11:12:09.413119022 +0100
+++ ./syscalls.s/truncate64.S	2014-11-12 12:47:49.519541811 +0100
@@ -3,7 +3,7 @@
 
 #ifdef __NR_truncate64
 #ifdef WANT_LARGEFILE_BACKCOMPAT
-syscall(truncate64,__dietlibc_truncate64)
+syscall_weak(truncate64,__dietlibc_truncate64_syscall,__dietlibc_truncate64)
 #else
 syscall(truncate64,truncate64)
 #endif

Reply via email to