This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
[PATCH] sysdeps/m68k/dl-machine.h
- To: libc-alpha at sourceware dot cygnus dot com
- Subject: [PATCH] sysdeps/m68k/dl-machine.h
- From: Michael Fedrowitz <michael at fedrowitz dot de>
- Date: Fri, 13 Oct 2000 20:52:39 +0200
Hi,
the patch below fixes ld.so on m68k (_dl_start_user passed bogus arguments
to _dl_init causing all sorts of breakage).
-Michael
2000-10-13 Michael Fedrowitz <michael@fedrowitz.de>
* sysdeps/m68k/dl-machine.h (_dl_start_user): Pass correct arguments
to _dl_init.
diff -urN glibc-2.1.95.orig/sysdeps/m68k/dl-machine.h glibc-2.1.95/sysdeps/m68k/dl-machine.h
--- glibc-2.1.95.orig/sysdeps/m68k/dl-machine.h Fri May 26 21:38:36 2000
+++ glibc-2.1.95/sysdeps/m68k/dl-machine.h Thu Oct 12 13:49:26 2000
@@ -180,9 +180,9 @@
move.l %d1, -(%sp)
# Call _dl_init (struct link_map *main_map, int argc, char **argv, char **env)
pea 8(%sp, %d1*4)
- pea 4(%sp)
+ pea 8(%sp)
move.l %d1, -(%sp)
- move.l _dl_loaded@GOT.w(%a5), -(%sp)
+ move.l ([_dl_loaded@GOT.w, %a5]), -(%sp)
jbsr _dl_init@PLTPC
addq.l #8, %sp
addq.l #8, %sp