summaryrefslogtreecommitdiff
path: root/rt
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2017-12-11 21:45:47 -0800
committerOri Bernstein <ori@eigenstate.org>2017-12-11 21:45:47 -0800
commit161c6c97e8accf066479a9c217c9c6cad4259850 (patch)
tree3809a39830184052aecf989f12feef46061e4b88 /rt
parent671e174caf52f96683cabb294f77623d55fbb91b (diff)
downloadmc-161c6c97e8accf066479a9c217c9c6cad4259850.tar.gz
Undo the kbind call.
It breaks dynamic linking.
Diffstat (limited to 'rt')
-rw-r--r--rt/start-openbsd.s11
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 */