Call __libc_start_main with extra argument.
authordrepper <drepper>
Sun, 7 Jun 1998 13:59:49 +0000 (13:59 +0000)
committerdrepper <drepper>
Sun, 7 Jun 1998 13:59:49 +0000 (13:59 +0000)
sysdeps/i386/elf/start.S

index 95f74ed..019e749 100644 (file)
@@ -53,6 +53,11 @@ _start:
           boundary to avoid penalties from misaligned accesses.  Thanks
           to Edward Seidl <seidl@janed.com> for pointing this out.  */
        andl $0xfffffff8, %esp
+
+       /* Provide the highest stack address to the user code (for stacks
+          which grow downwards).  */
+       pushl %esp
+
        pushl %edx              /* Push address of the shared library
                                   termination function.  */