ref: 161c6c97e8accf066479a9c217c9c6cad4259850
parent: 671e174caf52f96683cabb294f77623d55fbb91b
author: Ori Bernstein <ori@eigenstate.org>
date: Mon Dec 11 16:45:47 EST 2017
Undo the kbind call. It breaks dynamic linking.
--- a/rt/start-openbsd.s
+++ b/rt/start-openbsd.s
@@ -46,12 +46,11 @@
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 */