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]

[PATCH] sysdeps/m68k/dl-machine.h


 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

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