From 794fe95b6cd960250f772bc2e561dc92d9cebe0c Mon Sep 17 00:00:00 2001
From: Mike Frysinger <vapier@gentoo.org>
Date: Sat, 9 Jul 2005 00:27:42 +0000
Subject: setting envp is pointless since no other arch does it

---
 libc/sysdeps/linux/x86_64/crt1.S | 4 ----
 1 file changed, 4 deletions(-)

(limited to 'libc')

diff --git a/libc/sysdeps/linux/x86_64/crt1.S b/libc/sysdeps/linux/x86_64/crt1.S
index ddd1e5683..f6e76cd02 100644
--- a/libc/sysdeps/linux/x86_64/crt1.S
+++ b/libc/sysdeps/linux/x86_64/crt1.S
@@ -96,10 +96,6 @@ _start:
 	movq %rdx, %r9   /* Address of the shared library termination function. */
 	popq %rsi        /* Pop the argument count. */
 	movq %rsp, %rdx  /* argv starts just at the current stack top. */
-	movq %rsi, %rbx  /* now we calc envp ... envp = argc */
-	addq $8, %rbx
-	shl  $0x3, %rbx  /* envp *= 8 */
-	addq %rdx, %rbx  /* envp += argv */
 
 	/* Align the stack to a 16 byte boundary to follow the ABI. */
 	andq $~15, %rsp
-- 
cgit v1.2.3