This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Another ARM patch


Turns out I needed another patch too.  socket.S uses SINGLE_THREAD_P_PIC
with reg == r3, instead of the normal reg == lr.  But we added the GOT
pointer to LR anyway.  With this fix and the last one, glibc 2.3.2 appears
to work on ARM.

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer

2003-03-21  Daniel Jacobowitz  <drow at mvista dot com>

	* sysdeps/unix/sysv/linux/arm/sysdep-cancel.h
	(SINGLE_THREAD_P_PIC): Use "reg" instead of "lr".

--- libc/linuxthreads/sysdeps/unix/sysv/linux/arm/sysdep-cancel.h.orig	2003-03-21 11:17:43.000000000 -0500
+++ libc/linuxthreads/sysdeps/unix/sysv/linux/arm/sysdep-cancel.h	2003-03-21 11:17:52.000000000 -0500
@@ -110,7 +110,7 @@
   ldr reg, 2b;								\
 3:									\
   add ip, pc, ip;							\
-  ldr ip, [ip, lr];							\
+  ldr ip, [ip, reg];							\
   teq ip, #0;
 #   define SINGLE_THREAD_P_INT						\
   str lr, [sp, $-4]!;							\


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]