This is the mail archive of the
libc-hacker@sourceware.cygnus.com
mailing list for the glibc project.
Patch to sysdeps/arm/dl-machine.h
- To: libc-hacker@cygnus.com
- Subject: Patch to sysdeps/arm/dl-machine.h
- From: Scott Bambrough <scottb@corelcomputer.com>
- Date: Thu, 03 Dec 1998 10:59:53 -0500
- Organization: Corel Computer Corporation
Thu Dec 03 09:58:33 EST Scott Bambrough <scottb@corelcomputer.com>
* sysdeps/arm/dl-machine.h (dl_start_user): Incorrect address
for _dl_main_searchlist passed to _dl_init_next.
This patch fixes a problem where ld-linux.so.2 crashes when looking up a symbol
when building sunrpc/others on the NetWinder. Ulrich, I hope the changelog
entry is ok. Let me know if it isn't.
Scott
--- gnusrc/glibc-2.0.105/sysdeps/arm/dl-machine.h Fri Nov 27 13:01:00 1998
+++ projects/glibc-2.0.105/sysdeps/arm/dl-machine.h Thu Dec 3 09:29:18 1998
@@ -284,6 +284,7 @@
@ now we enter a _dl_init_next loop
ldr r4, .L_MAIN_SEARCHLIST
ldr r4, [sl, r4]
+ ldr r4, [r4]
@ call _dl_init_next to get the address of an initalizer
0: mov r0, r4
bl _dl_init_next(PLT)