|
@@ -27,12 +27,8 @@ asm(
|
|
|
" subl %eax, %edx\n"
|
|
|
" # Push argc back on the stack.\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"
|
|
|
" 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"
|
|
|
" jmp *%r12\n"
|
|
|
" .size _start,.-_start\n"
|