SOURCES (DEVEL): uClibc-sparc64_fixes.patch (NEW) - some hacks for...

sparky sparky at pld-linux.org
Fri Oct 27 21:53:32 CEST 2006


Author: sparky                       Date: Fri Oct 27 19:53:32 2006 GMT
Module: SOURCES                       Tag: DEVEL
---- Log message:
- some hacks for sparc64

---- Files affected:
SOURCES:
   uClibc-sparc64_fixes.patch (NONE -> 1.1.2.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/uClibc-sparc64_fixes.patch
diff -u /dev/null SOURCES/uClibc-sparc64_fixes.patch:1.1.2.1
--- /dev/null	Fri Oct 27 21:53:32 2006
+++ SOURCES/uClibc-sparc64_fixes.patch	Fri Oct 27 21:53:27 2006
@@ -0,0 +1,66 @@
+--- uClibc/ldso/ldso/dl-elf.c	2006-10-27 17:00:15.000000000 +0000
++++ uClibc.sparc64_fixes/ldso/ldso/dl-elf.c	2006-10-27 16:24:02.000000000 +0000
+@@ -31,6 +31,7 @@
+ 
+ 
+ #include "ldso.h"
++#include <sys/stat.h>
+ 
+ #ifdef __LDSO_CACHE_SUPPORT__
+ 
+--- uClibc/ldso/ldso/sparc/dl-startup.h	2006-10-27 07:10:09.000000000 +0000
++++ uClibc.sparc64_fixes/ldso/ldso/sparc/dl-startup.h	2006-10-27 16:27:38.000000000 +0000
+@@ -5,6 +5,7 @@
+  */
+ 
+ asm ("\
++	.register       %g2,#scratch\n\
+ 	.text\n\
+ 	.global _start\n\
+ 	.type   _start,%function\n\
+--- uClibc/libc/sysdeps/linux/sparc/__longjmp.S	2006-10-27 07:10:25.000000000 +0000
++++ uClibc.sparc64_fixes/libc/sysdeps/linux/sparc/__longjmp.S	2006-10-27 16:36:36.000000000 +0000
+@@ -18,6 +18,9 @@
+ 
+ #include <features.h>
+ #include <sys/syscall.h>
++# define JB_SP  0
++# define JB_FP  1
++# define JB_PC  2
+ 
+ #define _ASM 1
+ #define _SETJMP_H
+@@ -26,6 +29,9 @@
+ #define ST_FLUSH_WINDOWS 3
+ #define RW_FP [%fp + 0x48]
+ 
++.register %g2,#scratch
++.register %g3,#scratch
++
+ .global __longjmp
+ .type   __longjmp,%function
+ .align 4
+--- uClibc/libc/sysdeps/linux/sparc/setjmp.S	2006-10-27 07:10:25.000000000 +0000
++++ uClibc.sparc64_fixes/libc/sysdeps/linux/sparc/setjmp.S	2006-10-27 16:37:15.000000000 +0000
+@@ -22,6 +22,9 @@
+ #define _SETJMP_H
+ #include <bits/setjmp.h>
+ #define ST_FLUSH_WINDOWS 3
++# define JB_SP  0
++# define JB_FP  1
++# define JB_PC  2
+ 
+ .global _setjmp
+ .type   _setjmp,%function
+--- uClibc/libc/sysdeps/linux/sparc/_math_inc.h	2006-10-27 07:10:25.000000000 +0000
++++ uClibc.sparc64_fixes/libc/sysdeps/linux/sparc/_math_inc.h	2006-10-27 17:12:33.000000000 +0000
+@@ -7,7 +7,9 @@
+ #include <bits/wordsize.h>
+ 
+ #define __ASSEMBLY__
++#if !defined(__sparc__) || !defined(__arch64__)
+ #include <asm/traps.h>
++#endif
+ 
+ #if __WORDSIZE == 32
+ # define ENTRY_ALIGN 4
================================================================


More information about the pld-cvs-commit mailing list