Эх сурвалжийг харах

remove unused instructions

Mike Frysinger 21 жил өмнө
parent
commit
f80ef6bcb8

+ 0 - 4
ldso/ldso/x86_64/dl-startup.h

@@ -27,12 +27,8 @@ asm(
 	"	subl %eax, %edx\n"
 	"	subl %eax, %edx\n"
 	"	# Push argc back on the stack.\n"
 	"	# Push argc back on the stack.\n"
 	"	pushq %rdx\n"
 	"	pushq %rdx\n"
-	"	# argc -> rsi\n"
-	"	movq %rdx, %rsi\n"
 	"	# Pass our finalizer function to the user in %rdx, as per ELF ABI.\n"
 	"	# Pass our finalizer function to the user in %rdx, as per ELF ABI.\n"
 	"	leaq _dl_fini(%rip), %rdx\n"
 	"	leaq _dl_fini(%rip), %rdx\n"
-	"	# And make sure %rsp points to argc stored on the stack.\n"
-	"	movq %r13, %rsp\n"
 	"	# Jump to the user's entry point.\n"
 	"	# Jump to the user's entry point.\n"
 	"	jmp *%r12\n"
 	"	jmp *%r12\n"
 	"	.size	_start,.-_start\n"
 	"	.size	_start,.-_start\n"