summaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2001-12-19 12:48:48 +0000
committerEric Andersen <andersen@codepoet.org>2001-12-19 12:48:48 +0000
commit6a56a9139b3cfd5242652a0135b2341ace43130e (patch)
treee95acf90a32c30232f9c81c83b632a59bb2f370d /libc
parent336f26dbe1cfffd17b465084bd87d027922467da (diff)
Use the asm version by default on x86. Tag _start as a function.
Diffstat (limited to 'libc')
-rw-r--r--libc/sysdeps/linux/i386/Makefile2
-rw-r--r--libc/sysdeps/linux/i386/crt0.S7
2 files changed, 6 insertions, 3 deletions
diff --git a/libc/sysdeps/linux/i386/Makefile b/libc/sysdeps/linux/i386/Makefile
index 822134ba9..531c78df9 100644
--- a/libc/sysdeps/linux/i386/Makefile
+++ b/libc/sysdeps/linux/i386/Makefile
@@ -20,7 +20,7 @@
# other sundry sources. Files within this library are copyright by their
# respective copyright holders.
-USE_CRT0_C=true
+USE_CRT0_C=false
TOPDIR=../../../../
include $(TOPDIR)Rules.mak
diff --git a/libc/sysdeps/linux/i386/crt0.S b/libc/sysdeps/linux/i386/crt0.S
index 0095e6c67..6b4d424ef 100644
--- a/libc/sysdeps/linux/i386/crt0.S
+++ b/libc/sysdeps/linux/i386/crt0.S
@@ -30,9 +30,12 @@ Cambridge, MA 02139, USA. */
NULL
*/
-.global _start
-
.text
+ .align 4
+
+.globl _start
+ .type _start,@function
+
_start:
/* First locate the start of the environment variables */
popl %ecx /* Store argc into %ecx */