diff options
author | dzwdz | 2022-08-09 18:29:25 +0200 |
---|---|---|
committer | dzwdz | 2022-08-09 18:29:25 +0200 |
commit | 9438c2fdaf4e75c9218a5fde84f121a7a0abb457 (patch) | |
tree | 4ed0de6a19d2180198d939c042237aa43e751c3a /src/user/lib/crt0.s | |
parent | d51413be236c09f3946d390327595adc109fcf66 (diff) |
user/libc: preserve cwd through exec()
Diffstat (limited to 'src/user/lib/crt0.s')
-rw-r--r-- | src/user/lib/crt0.s | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/user/lib/crt0.s b/src/user/lib/crt0.s index dd9ab1b..3548264 100644 --- a/src/user/lib/crt0.s +++ b/src/user/lib/crt0.s @@ -8,7 +8,10 @@ _start: call elf_selfreloc mov %rbp, %rsp - /* pushed by _freejmp */ + + pop %rdi + call __setinitialcwd + pop %rdi pop %rsi pop %rdx |