summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog3
-rw-r--r--sysdeps/m68k/dl-machine.h5
2 files changed, 6 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index fcd7bedfd6..56143e375b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
Wed Sep 9 10:34:06 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
+ * sysdeps/m68k/dl-machine.h(RTLD_START): Push _dl_main_searchlist
+ instead of _dl_default_scope[2] as argument to _dl_init_next.
+
* sysdeps/m68k/fpu/bits/mathinline.h (isinf): Avoid conflict with
C9x macro.
diff --git a/sysdeps/m68k/dl-machine.h b/sysdeps/m68k/dl-machine.h
index b8911dccc7..a4affcc0f0 100644
--- a/sysdeps/m68k/dl-machine.h
+++ b/sysdeps/m68k/dl-machine.h
@@ -180,8 +180,9 @@ _dl_start_user:
lea (%sp, %d0*4), %sp
| Push back the modified argument count.
move.l %d1, -(%sp)
-0: | Push _dl_default_scope[2] as argument in _dl_init_next call below.
- move.l ([_dl_default_scope@GOT.w, %a5], 8), %d2
+0: | Push the searchlist of the main object as argument in
+ | the _dl_init_next call below.
+ move.l ([_dl_main_searchlist@GOT.w, %a5]), %d2
0: move.l %d2, -(%sp)
| Call _dl_init_next to return the address of an initializer
| function to run.