[uClibc-cvs] svn commit: trunk/uClibc/libc/sysdeps/linux/i386
jocke at uclibc.org
jocke at uclibc.org
Thu May 26 23:11:49 UTC 2005
Author: jocke
Date: 2005-05-26 17:11:49 -0600 (Thu, 26 May 2005)
New Revision: 10416
Log:
Clean it up a little.
Modified:
trunk/uClibc/libc/sysdeps/linux/i386/crt1.S
Changeset:
Modified: trunk/uClibc/libc/sysdeps/linux/i386/crt1.S
===================================================================
--- trunk/uClibc/libc/sysdeps/linux/i386/crt1.S 2005-05-26 23:05:31 UTC (rev 10415)
+++ trunk/uClibc/libc/sysdeps/linux/i386/crt1.S 2005-05-26 23:11:49 UTC (rev 10416)
@@ -89,14 +89,14 @@
#if defined L_Scrt1
/* Load PIC register. */
- call 1f
- addl $_GLOBAL_OFFSET_TABLE_, %ebx
+ call .L0
+.L0:
+ pop %ebx
+ addl $_GLOBAL_OFFSET_TABLE_+[.-.L0],%ebx
/* Push address of our own entry points to .fini and .init. */
- leal _fini at GOTOFF(%ebx), %eax
- pushl %eax
- leal _init at GOTOFF(%ebx), %eax
- pushl %eax
+ pushl _fini at GOT(%ebx)
+ pushl _init at GOT(%ebx)
pushl %ecx /* Push second argument: argv. */
pushl %esi /* Push first argument: argc. */
@@ -123,10 +123,6 @@
hlt /* Crash if somehow `exit' does return. */
-#if defined L_Scrt1
-1: movl (%esp), %ebx
- ret
-#endif
/* Define a symbol for the first piece of initialized data. */
.data
.globl __data_start
More information about the uClibc-cvs
mailing list