bug-glibc
[Top][All Lists]
Advanced

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

Patches to X-compile glibc 2.3.2 for Arm using gcc-3.3


From: Jonathan Marks
Subject: Patches to X-compile glibc 2.3.2 for Arm using gcc-3.3
Date: Thu, 07 Aug 2003 14:40:08 -0700
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4b) Gecko/20030507

Hi

Apply the attached patch to the unravelled tarball before running configure. Attached to avoid email client reformatting

Also once compilation is complete, you will need to remove the lines starting with "*** BUG . . . " from libc.so and libpthread.so

Hope this helps

Jonathan
--- ./sysdeps/unix/sysv/linux/arm/sysdep.h.orig 2003-02-20 12:22:10.000000000 
-0800
+++ ./sysdeps/unix/sysv/linux/arm/sysdep.h      2003-08-04 19:06:17.000000000 
-0700
@@ -158,7 +158,7 @@
        asm volatile ("swi      %1      @ syscall " #name       \
                     : "=r" (_a1)                               \
                     : "i" (SYS_ify(name)) ASM_ARGS_##nr        \
-                    : "a1", "memory");                         \
+                    : "memory");                               \
        _sys_result = _a1;                                      \
      }                                                         \
      (int) _sys_result; })
--- ./stdio-common/sscanf.c.orig        2003-08-04 19:27:34.000000000 -0700
+++ ./stdio-common/sscanf.c     2003-08-04 19:27:59.000000000 -0700
@@ -27,9 +27,7 @@
 /* Read formatted input from S, according to the format string FORMAT.  */
 /* VARARGS2 */
 int
-sscanf (s, format)
-     const char *s;
-     const char *format;
+sscanf (const char *s, const char *format, ...)
 {
   va_list arg;
   int done;
--- ./linuxthreads/sysdeps/unix/sysv/linux/arm/sysdep-cancel.h.orig     
2003-08-04 20:14:05.000000000 -0700
+++ ./linuxthreads/sysdeps/unix/sysv/linux/arm/sysdep-cancel.h  2003-08-04 
20:14:33.000000000 -0700
@@ -34,7 +34,7 @@
 # define PSEUDO(name, syscall_name, args)                              \
   .section ".text";                                                    \
     PSEUDO_PROLOGUE;                                                   \
-  ENTRY (name)                                                         \
+  ENTRY (name);                                                                
\
     SINGLE_THREAD_P_INT;                                               \
     bne .Lpseudo_cancel;                                               \
     DO_CALL (syscall_name, args);                                      \

reply via email to

[Prev in Thread] Current Thread [Next in Thread]