aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/crt-src/amd64/crt0.S
blob: d45d74c4e0d3e6c45cfe971bf60a21eaa246c0ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
.text
.globl _start

_start:
    xor %rbp, %rbp      // End of callstack

    pushq %rsi           // argv
    pushq %rdi           // argc
    call __libc_init

    popq %rdi
    popq %rsi
    ud2                 // TODO: Call exit()