Tue Jun 11 19:13:04 1996 Richard Henderson <rth@tamu.edu>
authorRoland McGrath <roland@gnu.org>
Wed, 12 Jun 1996 01:42:09 +0000 (01:42 +0000)
committerRoland McGrath <roland@gnu.org>
Wed, 12 Jun 1996 01:42:09 +0000 (01:42 +0000)
* elf/rtld.c (_dl_start): Don't rely on pointer-to-first-arg hack
for getting the argc/argv/envp block.  Instead, make it the argument.
sysdeps/i386/dl-machine.h (RTLD_START): Do that.
sysdeps/m68k/dl-machine.h (RTLD_START): Same.

sysdeps/m68k/dl-machine.h

index 415216b..ad3b6c3 100644 (file)
@@ -234,7 +234,9 @@ _dl_runtime_resolve:
 .globl _start
 .globl _dl_start_user
 _start:
+       move.l %sp, -(%sp)
        jbsr _dl_start
+       addq.l #4, %sp
 _dl_start_user:
        | Save the user entry point address in %a4.
        move.l %d0, %a4