aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/i386/elf/start.S
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2004-07-16 17:56:45 +0000
committerUlrich Drepper <drepper@redhat.com>2004-07-16 17:56:45 +0000
commitf17ed1a9ee9116a4792d22763a8c5912e5076473 (patch)
tree638a6046bfc19a736e675d6ef96db68d52b8aec8 /sysdeps/i386/elf/start.S
parent290639c3b42dda0d6245d7a56740a89da07eca4c (diff)
downloadglibc-f17ed1a9ee9116a4792d22763a8c5912e5076473.zip
glibc-f17ed1a9ee9116a4792d22763a8c5912e5076473.tar.gz
glibc-f17ed1a9ee9116a4792d22763a8c5912e5076473.tar.bz2
[BZ #262]
Update. 2004-07-15 Jakub Jelinek <jakub@redhat.com> [BZ #262] * sysdeps/i386/elf/start.S (_start): Use @GOT instead of @GOTOFF for main. * elf/Makefile: Add rules to build and run tst-pie1. * elf/tst-pie1.c: New test. * elf/tst-piemod1.c: New file.
Diffstat (limited to 'sysdeps/i386/elf/start.S')
-rw-r--r--sysdeps/i386/elf/start.S6
1 files changed, 3 insertions, 3 deletions
diff --git a/sysdeps/i386/elf/start.S b/sysdeps/i386/elf/start.S
index 8a4fc36..bb9cabc 100644
--- a/sysdeps/i386/elf/start.S
+++ b/sysdeps/i386/elf/start.S
@@ -1,5 +1,6 @@
/* Startup code compliant to the ELF i386 ABI.
- Copyright (C) 1995-1998,2000,2001,2002,2003 Free Software Foundation, Inc.
+ Copyright (C) 1995, 1996, 1997, 1998, 2000, 2001, 2002, 2003, 2004
+ Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -81,8 +82,7 @@ _start:
pushl %ecx /* Push second argument: argv. */
pushl %esi /* Push first argument: argc. */
- leal BP_SYM (main)@GOTOFF(%ebx), %eax
- pushl %eax
+ pushl BP_SYM (main)@GOT(%ebx)
/* Call the user's main function, and exit with its value.
But let the libc call main. */