diff options
author | Ori Bernstein <ori@eigenstate.org> | 2017-12-11 21:45:47 -0800 |
---|---|---|
committer | Ori Bernstein <ori@eigenstate.org> | 2017-12-11 21:45:47 -0800 |
commit | 161c6c97e8accf066479a9c217c9c6cad4259850 (patch) | |
tree | 3809a39830184052aecf989f12feef46061e4b88 | |
parent | 671e174caf52f96683cabb294f77623d55fbb91b (diff) | |
download | mc-161c6c97e8accf066479a9c217c9c6cad4259850.tar.gz |
Undo the kbind call.
It breaks dynamic linking.
-rw-r--r-- | rt/start-openbsd.s | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/rt/start-openbsd.s b/rt/start-openbsd.s index d11dafa..9fd8610 100644 --- a/rt/start-openbsd.s +++ b/rt/start-openbsd.s @@ -46,12 +46,11 @@ _start: call cvt xorq %rbp,%rbp - /* done startup; call kbind */ - movq $0,%rdi /* param */ - movq $0,%rsi /* size */ - movq $0,%rdx /* cookie */ - movq $86,%rax /* Syskbind */ - syscall + /* + we're done startup, and we kind of want + to call kbind here, but this breaks + when we dynamically link in libc. + */ /* call pre-main initializers */ call __init__ /* enter the main program */ |