This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Another ARM patch
- From: Daniel Jacobowitz <drow at mvista dot com>
- To: libc-alpha at sources dot redhat dot com
- Cc: philb at gnu dot org
- Date: Fri, 21 Mar 2003 12:50:12 -0500
- Subject: 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]!; \