aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/i386
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1998-06-10 08:10:00 +0000
committerUlrich Drepper <drepper@redhat.com>1998-06-10 08:10:00 +0000
commit95a99ee64c81a5001b1d91bf21ecbe31f1d73683 (patch)
treec987de6dda939056d3f422d6e402f0cfdaf1cbbb /sysdeps/i386
parent3fed58f8abb38ebae2214535aa0cd58cd68ebb48 (diff)
downloadglibc-95a99ee64c81a5001b1d91bf21ecbe31f1d73683.zip
glibc-95a99ee64c81a5001b1d91bf21ecbe31f1d73683.tar.gz
glibc-95a99ee64c81a5001b1d91bf21ecbe31f1d73683.tar.bz2
(_dl_start_user): Store stack address in the variable, not its GOT slot.
Diffstat (limited to 'sysdeps/i386')
-rw-r--r--sysdeps/i386/dl-machine.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sysdeps/i386/dl-machine.h b/sysdeps/i386/dl-machine.h
index 542c35f..fdc9e48 100644
--- a/sysdeps/i386/dl-machine.h
+++ b/sysdeps/i386/dl-machine.h
@@ -213,7 +213,8 @@ _dl_start_user:\n\
0: popl %ebx\n\
addl $_GLOBAL_OFFSET_TABLE_+[.-0b], %ebx\n\
# Store the highest stack address\n\
- movl %esp,__libc_stack_end@GOT(%ebx)\n\
+ movl __libc_stack_end@GOT(%ebx), %eax\n\
+ movl %esp, (%eax)\n\
# See if we were run as a command with the executable file\n\
# name as an extra leading argument.\n\
movl _dl_skip_args@GOT(%ebx), %eax\n\