Another ARM patch
Daniel Jacobowitz
drow@mvista.com
Fri Mar 21 17:50:00 GMT 2003
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@mvista.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]!; \
More information about the Libc-alpha
mailing list