[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#448248: Fixes for SH4 targets



Package: libc6
Version: 2.6.1-6
Severity: wishlist
Tags: patch


Dear glibc maintainers,

Here are two patches to fix build on sh4 targets, I would be glad if
they could be merged in the main debian package since I'm working on the
sh4 port.


Here is a small repo with sh4 cross-compilers to test build:

deb http://people.dunnewind.net/arthur/sh4/cross/ ./

sudo aptitude install gcc-4.2-sh4-linux-gnu ...


I'll try to keep the sh4 patches up-to-date here:
http://people.dunnewind.net/arthur/sh4/patches/


Thanks,

Arthur.

--- sysdeps/unix/sysv/linux/check_pf.c	2007-10-16 14:05:26.798517293 +0000
+++ sysdeps/unix/sysv/linux/check_pf.c	2007-10-16 14:06:11.811066397 +0000
@@ -25,6 +25,8 @@
 #include <string.h>
 #include <time.h>
 #include <unistd.h>
+#include <alloca.h>
+#include <stdlib.h>
 #include <sys/socket.h>
 
 #include <asm/types.h>
--- sysdeps/unix/sysv/linux/sh/Versions	2007-10-16 14:23:47.553278705 +0000
+++ sysdeps/unix/sysv/linux/sh/Versions	2007-10-16 14:24:32.517804705 +0000
@@ -2,6 +2,7 @@
   GLIBC_2.2 {
     # functions used in other libraries
     __xstat64; __fxstat64; __lxstat64;
+    __fpscr_values;
 
     # a*
     alphasort64;
--- sysdeps/unix/sysv/linux/sh/sysdep.S	2007-10-16 14:23:56.151674031 +0000
+++ sysdeps/unix/sysv/linux/sh/sysdep.S	2007-10-16 14:26:10.525105917 +0000
@@ -32,3 +32,14 @@
 
 #define __syscall_error __syscall_error_1
 #include <sysdeps/unix/sh/sysdep.S>
+
+       .data
+       .align 3
+       .globl ___fpscr_values
+       .type ___fpscr_values, @object
+       .size ___fpscr_values, 8
+___fpscr_values:
+       .long 0
+       .long 0x80000
+weak_alias (___fpscr_values, __fpscr_values)
+

Attachment: signature.asc
Description: Digital signature


Reply to: