From 6a56a9139b3cfd5242652a0135b2341ace43130e Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Wed, 19 Dec 2001 12:48:48 +0000 Subject: Use the asm version by default on x86. Tag _start as a function. --- libc/sysdeps/linux/i386/Makefile | 2 +- libc/sysdeps/linux/i386/crt0.S | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) (limited to 'libc/sysdeps/linux') 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 */ -- cgit v1.2.3